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(unstable): no config npm:@opentelemetry/api integration #27541

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Jan 3, 2025

After this PR, one does not need to import jsr:@deno/otel anymore.

Depends on #27473

This commit adds the needed configuration to let npm:@opentelemetry/api pick up trace, metrics, and context providers automatically.
@@ -1102,6 +1107,19 @@ export function bootstrap(
default:
break;
}

if (TRACING_ENABLED || METRICS_ENABLED) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these are turned off, does this turn all otel usage into noops, or does it raise an error about them being missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noops

@lucacasonato lucacasonato merged commit f483996 into denoland:main Jan 6, 2025
17 checks passed
@lucacasonato lucacasonato deleted the no_config_otel branch January 6, 2025 16:00
dsherret pushed a commit that referenced this pull request Jan 9, 2025
After this PR, one does not need to import `jsr:@deno/otel` anymore.
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