Coder Social home page Coder Social logo

Comments (7)

evanderkoogh avatar evanderkoogh commented on June 6, 2024 1

@jokull, I have tried the queue example myself and that worked just fine. Once you are back, could you try the latest version to check and make a new issue if it is still not working?

from otel-cf-workers.

evanderkoogh avatar evanderkoogh commented on June 6, 2024

Apologies for the delay, been a crazy couple of days, but could you give me a bit more information on what you are trying to do and what actually happens?

from otel-cf-workers.

jokull avatar jokull commented on June 6, 2024

I think I figured it out. If you import instrument without calling it, fetch is undefined until instrument is called.

Now I'm doing:

if (ENV === "production") {
  const instrument = (await import("@microlabs/otel-cf-workers")).instrument;
  handler = instrument(handler, config);
}

from otel-cf-workers.

jokull avatar jokull commented on June 6, 2024

With both RC6 and 7 my queue does not get processed. I'm using scheduled tasks to add to the queue and then consumer on the same worker code. I'm on holiday so I don't have a lot of spare time to create minimal reproductions, sorry about that, but thought I'd report this anyhow. I've removed otel for now - looking forward to having another look when I get back from my road trip.

from otel-cf-workers.

evanderkoogh avatar evanderkoogh commented on June 6, 2024

Hmm.. the fetch being undefined when we import instrument, but not use it is certainly a bug. Will have a look at that.

And Iโ€™ll have a look at the queue thing as well. Thanks for reporting and enjoy the rest of the road trip!

from otel-cf-workers.

evanderkoogh avatar evanderkoogh commented on June 6, 2024

You are correct that there was an issue if you imported instrument, but didn't actually use it. Found the culprit and should have fixed it.

from otel-cf-workers.

jokull avatar jokull commented on June 6, 2024

Will do! Thanks for looking into this

from otel-cf-workers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.