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

Capability to add "logs" to spans #92

Closed
cyrille-leclerc opened this issue May 5, 2021 · 1 comment
Closed

Capability to add "logs" to spans #92

cyrille-leclerc opened this issue May 5, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@cyrille-leclerc
Copy link
Contributor

cyrille-leclerc commented May 5, 2021

Problem Description

I want to manually add "events" / "logs" to my spans in my pipeline, similar to manually creating span events or log messages when instrumenting applications with distributed tracing.

Desire to enable more logs without modifying the pipeline.

Example use cases

  • ...

Example with the OpenTelemetry APIs for Java

Span currentSpan = Span.current();
currentSpan.addEvent("my event", ...); // TODO realistic example

See Other Problem Statements

See also

Proposed Solutions

Correlate pipeline logs with traces

  • Enrich Jenkins pipeline logs with the trace_id and span_id + let the observability backend correlated logs and traces

addSpanEvent pipeline step

Similar to the OpenTelemetry API io.opentelemetry.api.trace.Span#addEvent(java.lang.String, io.opentelemetry.api.common.Attributes)

@cyrille-leclerc cyrille-leclerc added the enhancement New feature or request label May 6, 2021
@cyrille-leclerc cyrille-leclerc added this to the Later milestone Nov 16, 2021
@cyrille-leclerc
Copy link
Contributor Author

Duplicate of #245

@cyrille-leclerc cyrille-leclerc marked this as a duplicate of #245 Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant