Comments (3)
I would love PRs. I am really looking to make this a project that can work even when I donβt have as much time to work on.
It is too important for the ecosystem to let things slip π
from otel-cf-workers.
Awesome! I can also share my use case here in case anyone comes across this issue with a similar one.
We have a Worker that receives an HTTP request generated by our users. That HTTP request may have a traceparent
header from their app's instrumentation. We then do some work with that request and forward it to another system, but need to preserve the original traceparent
value that we received. We use otel-cf-workers to capture traces from within our Worker, but need to essentially disable the context tracking from external requests in or out. The automatic instrumentation is currently overriding the traceparent
of the outbound request.
With #24, we will be able to either disable the outbound trace context completely or intelligently with a snippet like:
const config: ResolveConfigFn = (env: Env, trigger) => {
return {
exporter: {
// ...
},
fetch: {
includeTraceContext(request) {
// disable context propagation if the request has an existing traceparent
return !request.headers.has("traceparent");
}
},
service: {
// ...
},
}
}
from otel-cf-workers.
Thanks for the PR.. that is greatly appreciated :)
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.