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

[BUG]: tracer init option tracePropagationStyle typed as propagationStyle #5187

Open
derekcicerone opened this issue Feb 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@derekcicerone
Copy link

Tracer Version(s)

5.33.1

Node.js Version(s)

22.13.1

Bug Report

The tracer init function looks for tracePropagationStyle but the type definition specifies propagationStyle.

Reproduction Code

This doesn't work:

  tracer.init({
    profiling: !!process.env.HTTP_ENVIRONMENT,
    propagationStyle: ["tracecontext", "baggage"],
  });

This works:

  tracer.init({
    profiling: !!process.env.HTTP_ENVIRONMENT,
    // @ts-expect-error: workaround typing issue
    tracePropagationStyle: ["tracecontext", "baggage"],
  });

Error Logs

No response

Tracer Config

No response

Operating System

No response

Bundling

ESBuild

@derekcicerone derekcicerone added the bug Something isn't working label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant