SigNoz
Docs
PricingCustomers
Get Started - Free
Docs
IntroductionContributingMigrate from DatadogSigNoz API
OpenTelemetry
What is OpenTelemetryOpenTelemetry Collector GuideOpenTelemetry Demo
Community
Support
Slack
X
Launch Week
Changelog
Dashboard Templates
DevOps Wordle
Newsletter
KubeCon, Atlanta 2025
More
SigNoz vs DatadogSigNoz vs New RelicSigNoz vs GrafanaSigNoz vs Dynatrace
Careers
AboutTermsPrivacySecurity & Compliance
SigNoz - Open Source Datadog Alternative
SigNoz
All systems operational
HIPAASOC-2
  1. ...
  2. Docs
  3. CI/CD Monitoring
  4. Jenkins
  5. Jenkins Tracing

Jenkins Tracing

SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Host - This page applies to self-hosted SigNoz editions.

Overview

This integration helps you to monitor and observe Jenkins with OpenTelemetry by visualizing jenkins jobs and pipelines executions as distributed traces in SigNoz To know more about tracing refer here

Prerequisites

  • Jenkins [>2.479.3]
  • Administrative access to Jenkins controller

Setup

Step 1: Install and Configure Jenkins OpenTelemetry plugin

  • For installing the plugin, please refer to this documentation.

Step 2: Set the OTLP Endpoint

Navigate to Manage Jenkins -> System -> OpenTelemetry section

In the OTLP Endpoint section, add your SigNoz ingestion endpoint ingest.<region>.signoz.cloud Set the <region> to match your SigNoz Cloud region.

Step 3: Set the Authentication headers

In the same section click on Authentication and select Header Authentication

Add Header key as signoz-ingestion-key and create a Jenkins credential of type Secret text and store the SigNoz_Ingestion_Key

Jenkins OTel plugin configuration for SigNoz cloud

Jenkins OTel plugin configuration for SigNoz cloud

Now, navigate to Manage Jenkins -> System -> OpenTelemetry section

Jenkins OTel plugin configuration for Self-Hosted SigNoz

Jenkins OTel plugin configuration for Self-Hosted SigNoz

Enter the SigNoz self-hosted endpoint in the OTLP endpoint textbox and set No Authentication

Visualize Traces in SigNoz

In your SigNoz UI, head over to the Traces Tab, and you should be able to see your traces. You can use the trace explorer to filter and analyze your traces.

Jenkins pipelines traces on SigNoz UI

Jenkins pipelines traces on SigNoz UI

Custom Spans in Jenkinsfile

With the OTel plugin installed, you can enhance your Jenkins pipelines with custom observability by adding span attributes, creating custom spans, and enriching trace data.

Adding Custom Span Attributes

The following example shows how to add custom attributes to the current span within your Jenkins pipeline:

  pipeline {
    agent any
    stages {
      stage('Add Custom Span Attribute') {
          steps {
            script {
              withSpanAttribute(
                  key: 'my-error-prone-span',
                  value: 'new-traces',
                  type: 'STRING',
                  target: 'CURRENT_SPAN'
              )
              echo 'Custom span attribute added'
            }
          }
        }
    }
  }

What this code does:

  • withSpanAttribute(): A Jenkins OTel plugin function that adds custom key-value metadata to spans
  • key: 'my-error-prone-span': The attribute name that will appear in your trace data
  • value: 'new-traces': The attribute value associated with the key
  • type: 'STRING': Specifies the data type of the attribute (can be STRING, LONG, DOUBLE, or BOOLEAN)
  • target: 'CURRENT_SPAN': Indicates that the attribute should be added to the currently active span (the stage span in this case)

Last updated: May 27, 2026

Edit on GitHub

Was this page helpful?

Your response helps us improve this page.

Prev
Metrics
Next
Traces
On this page
Overview
Prerequisites
Setup
Step 1: Install and Configure Jenkins OpenTelemetry plugin
Step 2: Set the OTLP Endpoint
Step 3: Set the Authentication headers
Visualize Traces in SigNoz
Custom Spans in Jenkinsfile
Adding Custom Span Attributes

Is this page helpful?

Your response helps us improve this page.