Comments (7)
@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.
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.
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.
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.
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.
You are correct that there was an issue if you import
ed instrument
, but didn't actually use it. Found the culprit and should have fixed it.
from otel-cf-workers.
Will do! Thanks for looking into this
from otel-cf-workers.
Related Issues (20)
- for wrangler 3.7, the trace API call is not working (still not working HOT 4
- @changesets/cli should be dev dependency HOT 1
- 'Fetcher is not defined' when accessing string environment variable in handler HOT 4
- Missing spans HOT 7
- New service bindings support triggers errors when service bindings not in use
- HTTP span name isnโt compliant with the OTel spec
- Update opentelemetry-js semantic conventions which differ from spec HOT 3
- CF browser rendering breaks when using instrumentDO HOT 5
- }0
- Protobuffer support HOT 8
- Exported handler with `instrument` using AI service returns "Invalid URL string" HOT 1
- Pages function support HOT 3
- Browser Rendering API Breaks When Instrumenting HOT 5
- The global tracer is not of type WorkerTracer and can not export spans HOT 3
- getActiveConfig() returns null HOT 8
- [Question] Does this also intercept logs and send it? HOT 1
- cache.hit attribute is the opposite
- feature request: export const unwrappedFetch = unwrap(fetch)
- [Question] Support for sending traces to other tracing backends/vendors? HOT 4
- [feature request/question] support without node dependencies HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from otel-cf-workers.