Skip to content

Add rolldice reference application (FastAPI)#5244

Open
reggied wants to merge 4 commits into
open-telemetry:mainfrom
reggied:reference_app
Open

Add rolldice reference application (FastAPI)#5244
reggied wants to merge 4 commits into
open-telemetry:mainfrom
reggied:reference_app

Conversation

@reggied
Copy link
Copy Markdown

@reggied reggied commented May 21, 2026

Description

Implements the OpenTelemetry reference application specification [1] with both uninstrumented and instrumented versions of a FastAPI dice-rolling service. The instrumented version uses declarative (file-based) YAML configuration for the telemetry pipeline with OTLP HTTP and console exporters for all three signal types (traces, metrics, logs).

[1] https://opentelemetry.io/docs/getting-started/reference-application-specification/

Fixes # #5167

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 21, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

Implements the OpenTelemetry reference application specification [1] with
both uninstrumented and instrumented versions of a FastAPI dice-rolling
service. The instrumented version uses declarative (file-based) YAML
configuration for the telemetry pipeline with OTLP HTTP and console
exporters for all three signal types (traces, metrics, logs).

[1] https://opentelemetry.io/docs/getting-started/reference-application-specification/

Assisted-by: Claude Opus 4.6
reggied and others added 2 commits May 28, 2026 08:34
Add OS resource detector, OTEL_LOG_LEVEL diagnostic verbosity control,
dynamic OTEL_SERVICE_NAME support via env var substitution, and a CI
workflow that smoke-tests both the instrumented and uninstrumented
variants of the rolldice application.

Co-Authored-By: Claude Opus 4.6 (1M context)
Update all license headers to the SPDX two-line format, fix import
sorting and formatting per ruff, and add a towncrier changelog fragment.
@reggied reggied marked this pull request as ready for review May 28, 2026 17:48
@reggied reggied requested a review from a team as a code owner May 28, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant