#Open Telemetry SDK (Alpha)

1 messages · Page 1 of 1 (latest)

prisma ginkgo
#

Great implementation @vast forum . Thank you for your work 😃 . Do you think it's possible to send traces directly into Datadog ?

vast forum
prisma ginkgo
vast forum
#

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!

OpenTelemetry

The OpenTelemetry Project Site

GitHub

An Otel SDK for Cloudflare Workers. Contribute to RichiCoder1/opentelemetry-sdk-workers development by creating an account on GitHub.

south portal
#

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! MeowHeartCloudflare

vast forum
#

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 🙂

drowsy quarry
#

This is awesome! Glad to see more observability tooling coming to workers.

vast forum
#

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.

GitHub

This release majorly reorganized how exporters are constructed. If you weren't using an exporter directly, you shouldn't be affected.
It also adds 🪵 Log 🪵 support! It's currently opt in...