Skip to content

fix(tracing): now when debug is enabled the otlp exporter still works#126

Merged
CptSchnitz merged 1 commit intomasterfrom
fix-tracing-debug
Mar 20, 2025
Merged

fix(tracing): now when debug is enabled the otlp exporter still works#126
CptSchnitz merged 1 commit intomasterfrom
fix-tracing-debug

Conversation

@CptSchnitz
Copy link
Collaborator

This pull request includes a change to the Tracing class in the src/tracing/tracing.ts file to improve the handling of span processors. The most important change is the modification of the processors variable to be a constant and the addition of a new processor instead of replacing the existing ones when in debug mode.

Improvements to span processor handling:

  • src/tracing/tracing.ts: Changed processors from a let to a const and updated the debug mode logic to push a new SimpleSpanProcessor to the existing array instead of replacing it.

@CptSchnitz CptSchnitz requested a review from syncush March 20, 2025 13:53
@github-actions
Copy link

Hi it is me, your friendly bot helper! 👋
I've packed this commit for you 😊
You can install it like this:

{
  "dependencies": {
      "@map-colonies/telemetry": "https://ghatmpstorage.blob.core.windows.net/npm-packages/telemetry-0b476a266eee437480f8a58735d1cabecb68b9da.tgz"
  }
}

The link will expire in a week ⌛

@CptSchnitz CptSchnitz merged commit 3364927 into master Mar 20, 2025
3 checks passed
@CptSchnitz CptSchnitz deleted the fix-tracing-debug branch March 20, 2025 14:00
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