Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): remove public OTEL trace API #26854

Merged
merged 4 commits into from
Nov 18, 2024
Merged

feat(runtime): remove public OTEL trace API #26854

merged 4 commits into from
Nov 18, 2024

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Nov 13, 2024

This PR removes the public Deno.tracing.Span API.
We are not confident we can ship an API that is
better than the @opentelemetry/api API, because
V8 CPED does not support us using using to
manage span context. If this changes, we can
revisit this decision. For now, users wanting
custom spans can instrument their code using
the @opentelemetry/api API and @deno/otel.

This PR also speeds up the OTEL trace generation
by a 30% by using Uint8Array instead of
strings for the trace ID and span ID.

runtime/js/telemetry.js Outdated Show resolved Hide resolved
runtime/js/telemetry.js Outdated Show resolved Hide resolved
runtime/ops/otel.rs Outdated Show resolved Hide resolved
This PR removes the public Deno.tracing.Span API.
We are not confident we can ship an API that is
better than the `@opentelemetry/api` API, because
V8 CPED does not support us using `using` to
manage span context. If this changes, we can
revisit this decision. For now, users wanting
custom spans can instrument their code using
the `@opentelemetry/api` API and `@deno/otel`.

This PR also speeds up the OTEL trace generation
by a little bit by using Uint8Array instead of
strings for the trace ID and span ID.
@lucacasonato lucacasonato changed the title perf: speed up otel trace generation feat(runtime): remove public OTEL trace API Nov 18, 2024
@lucacasonato lucacasonato enabled auto-merge (squash) November 18, 2024 23:21
@lucacasonato lucacasonato merged commit 594a998 into main Nov 18, 2024
17 checks passed
@lucacasonato lucacasonato deleted the improvements branch November 18, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants