Skip to content

docs: add OTLP exporter configuration examples#1262

Open
S-anskriti wants to merge 3 commits intojenkinsci:mainfrom
S-anskriti:docs/otlp-exporter-configuration-options
Open

docs: add OTLP exporter configuration examples#1262
S-anskriti wants to merge 3 commits intojenkinsci:mainfrom
S-anskriti:docs/otlp-exporter-configuration-options

Conversation

@S-anskriti
Copy link
Copy Markdown

Summary

Expands the OTLP exporter configuration section in
docs/setup-and-configuration.md with practical, copy-paste-ready
examples that were previously missing.

Motivation

Issue #1026 highlights that the OTLP exporter configuration options
are unclear. Users know the plugin supports OTLP but have no concrete
examples showing how to configure gRPC vs HTTP, per-signal exporters,
authentication, or TLS — leading to repeated support questions.

Changes

Added a new "OTLP exporter configuration" subsection covering:

  • gRPC (default, port 4317) vs HTTP/Protobuf (port 4318) transport
  • Sending only specific signals via OTLP (traces/metrics/logs independently)
  • Bearer token authentication via OTEL_EXPORTER_OTLP_HEADERS
  • Custom TLS certificate via OTEL_EXPORTER_OTLP_CERTIFICATE
  • Logging exporter for troubleshooting with a warning against production use
  • service.name and resource attributes via OTEL_RESOURCE_ATTRIBUTES
    with a note on precedence rules

Testing

Documentation only — no functional changes.

Related issues

Contributes to #1026


Note: I am a GSoC 2026 applicant interested in the
Use OpenTelemetry for Jenkins Jobs on ci.jenkins.io
project.

Expand the OTLP exporter configuration section with practical
examples covering:
- gRPC (default) vs HTTP/Protobuf transport
- Sending only specific signals (traces/metrics/logs)
- Bearer token authentication via environment variables
- Custom TLS certificate configuration
- Logging exporter for troubleshooting
- service.name and resource attributes via OTEL_RESOURCE_ATTRIBUTES

Contributes to jenkinsci#1026
@S-anskriti S-anskriti requested a review from a team as a code owner March 19, 2026 17:59
Expand the OTLP exporter configuration section with practical
examples covering:
- gRPC (default) vs HTTP/Protobuf transport
- Sending only specific signals (traces/metrics/logs)
- Bearer token authentication via environment variables
- Custom TLS certificate configuration
- Logging exporter for troubleshooting
- service.name and resource attributes via OTEL_RESOURCE_ATTRIBUTES

Contributes to jenkinsci#1026
Expand the environment variables section with practical examples covering:
- gRPC (default) vs HTTP/Protobuf transport
- Sending only specific signals (traces/metrics/logs)
- Bearer token authentication via environment variables
- Custom TLS certificate configuration
- Logging exporter for troubleshooting
- service.name and resource attributes via OTEL_RESOURCE_ATTRIBUTES

Contributes to jenkinsci#1026
otel.exporter.otlp.protocol=http/protobuf
```

## OTLP exporter configuration options
Copy link
Copy Markdown
Contributor

@kuisathaverat kuisathaverat Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Configuration with environment variables conflicts with the configuration made in the plugin. These environment variables can be used for a rare configuration not supported in the plugin. Adding this to the documentation can mislead users.

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