#Open Telemetry SDK (Alpha)
1 messages · Page 1 of 1 (latest)
@prisma ginkgo You can, Sort Of ™️. DataDog does natively support OTLP: https://docs.datadoghq.com/tracing/trace_collection/open_standards/. However, you'll need to have an agent to forward traces to Datadog, or Datadog (or another enterprising dev) will need to write an exporter for my lib
So it would be just easier to spawn a OTEL collector and use this url endpoints, than trying to send the protobuff request directly to Datadog( https://trace.agent.datadoghq.com/api/v0.2/traces)
Either an OTEL Collector or a Datadog Agent would work as a forwarding agent, yup. As far as I'm aware (YMMV), Datadog doesn't presently natively support OTLP.
Howdy! I've started work on an Open Telemetry SDK for Cloudflare Workers!
For some background, Open Telemetry is an open-source and vendor-agnostic set of tools, APIs, and SDKs for gathering telemetry data like metrics, logs, and traces. https://opentelemetry.io/
Because Cloudflare Workers is such a unique environment, however, the standard JavaScript tooling doesn't work with Workers.
As a result, I've created a (currently Alpha) SDK for instrumenting workers with Open Telemetry: https://github.com/RichiCoder1/opentelemetry-sdk-workers
It uses Open Telemetry's OTLP/HTTP JSON support, and I'm hoping to have it provide a vendor agnostic way to add tracing and, eventually, logging to workers in a standard way!
I'd not recommend using it in production today as it's not remotely ready, but if you have any questions, feedback, or would like to contribute absolutely let me know!
Oh this is amazing! New Relic uses OpenTelemetry and I've tried getting their JSON endpoints to work in Workers once before without much luck (standard "Workers is not Node" stuff), excited to try this! 
A small update on this is I've got basic spans and subrequests working! https://www.npmjs.com/package/opentelemetry-sdk-workers
I'd still like to refine the UX and get some form of logging integrated, but that should at least may it cover 90% of cases 🙂
Open Telemetry Cloudflare Workers Library. Provides a basic sdk for instrumenting workers.. Latest version: 0.3.0, last published: 2 minutes ago. Start using opentelemetry-sdk-workers in your project by running npm i opentelemetry-sdk-workers. There are no other projects in the npm registry using opentelemetry-sdk-workers.
This is awesome! Glad to see more observability tooling coming to workers.
One more update:
I've released v0.4.0 which adds support for OTLP/HTTP Protobuf Encoding, OTLP/HTTP gzip compression, and 🪵 Logging! 🪵
https://github.com/RichiCoder1/opentelemetry-sdk-workers/releases/tag/opentelemetry-sdk-workers%400.4.0
More or feature complete, just planning to cleanup the docs, add tests (and do more testing generally), and sync with the Otel JS upstream before doing a 1.x release.