Hi, we have setup OpenTelemetry plugin in Jenkins to send data to Dynatrace. According to the docs, opentelemetry-plugin/docs/job-traces.md at main · jenkinsci/opentelemetry-plugin · GitHub , there should be a set of jenkins.pipeline.step.* metrics sent to Dynatrace too. However, we can only see ci.pipeline.* metrics. Any suggestion please?
1 Like
@dynatrace_user I see ci.pipeline.* metrics and a bunch of jenkins.* metrics available on my side but don’t see any jenkins.pipeline.step.* metrics . I don’t see the reference to the metric that you are after in the below link too, could you please let me know where you have come across jenkins.pipeline.step.* metric?
1 Like
sorry @p_devulapalli , I had shared a wrong link. Please see this link for those metrics in Pipeline Step Spans table:
# Traces of Jobs and Pipeline Builds
## Traces, Spans and Span Attributes
The Jenkins OpenTelemetry integration collects comprehensive contextual attributes of the jobs and pipelines builds to:
* Provide build executions details in order to be an alternative to the Jenkins GUI if desired
* Enable troubleshooting CI problems slicing and dicing in any dimension
* Offer traceability and audit on CI/CD as part of the Software Lifecycle process integrity (see [Introducing SLSA, an End-to-End Framework for Supply Chain Integrity](https://security.googleblog.com/2021/06/introducing-slsa-end-to-end-framework.html)...)
The attributes of the traces and spans are normalized in order
### Enriching pipeline build traces with custom span attributes
[Attributes](https://opentelemetry.io/docs/reference/specification/common/#attribute) can be added to the spans associated with pipeline steps using one of the following pipeline steps:
* `withSpanAttribute(key, value[, type][, target])`
* `setSpanAttributes([spanAttribute(key, value[, type][, target])])`
* `withSpanAttributes([spanAttribute(key, value[, type][, target])])`
Example:
This file has been truncated. show original
@dynatrace_user thanks for clarifying , will revert back if I find something
Hello,
there was a recent change in the opentelemetry-plugin where a renaming of the metrics and span attributes happened. Maybe this could be the reason.
Please see this PR: Adopt OTel naming conventions by cyrille-leclerc · Pull Request #1024 · jenkinsci/opentelemetry-plugin · GitHub
2 Likes