You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm currently trying to create spans from within the tests. The idea is to achieve it by having the build level trace as the parent. Unfortunately, because I'm using Otel libraries (opentelemetry-js to be specific), the existing TRACE_ID and SPAN_ID doesn't pass its validation.
Describe the solution you'd like
The current Trace_ID is really good and has all the relevant information while debugging, etc. But it would be great to have an option to set custom trace and span IDs.
One option is for the user to override TRACE_ID and SPAN_ID from the build scripts. This way, a new trace_id or span_id is created will only be created only if these variables doesn't exist.
This is just one option that came to my mind. Happy to take other suggestions.
Describe alternatives you've considered
The other option is to use the generic buildevents library directly to pass in trace and span IDs directly, but that would be repeating the work this action does.
The text was updated successfully, but these errors were encountered:
I also realised that the core buildevents library also doesn't provide otel compliant TRACE and SPAN ids. So as a workaround, I found https://github.com/equinix-labs/otel-cli to temporarily create my own spans and traces manually.
Is your feature request related to a problem? Please describe.
I'm currently trying to create spans from within the tests. The idea is to achieve it by having the build level trace as the parent. Unfortunately, because I'm using Otel libraries (opentelemetry-js to be specific), the existing TRACE_ID and SPAN_ID doesn't pass its validation.
Otel validation for trace and span ID
(Current TRACE_ID setup - https://github.com/honeycombio/gha-buildevents/blob/main/src/index.ts#L104)
Describe the solution you'd like
The current Trace_ID is really good and has all the relevant information while debugging, etc. But it would be great to have an option to set custom trace and span IDs.
One option is for the user to override TRACE_ID and SPAN_ID from the build scripts. This way, a new trace_id or span_id is created will only be created only if these variables doesn't exist.
This is just one option that came to my mind. Happy to take other suggestions.
Describe alternatives you've considered
The other option is to use the generic buildevents library directly to pass in trace and span IDs directly, but that would be repeating the work this action does.
The text was updated successfully, but these errors were encountered: