Skip to content

docs(demo): add tail-based sampling example using service.criticality#9468

Open
bachgarash wants to merge 1 commit intoopen-telemetry:mainfrom
bachgarash:demo/add-sample-configurations-dir
Open

docs(demo): add tail-based sampling example using service.criticality#9468
bachgarash wants to merge 1 commit intoopen-telemetry:mainfrom
bachgarash:demo/add-sample-configurations-dir

Conversation

@bachgarash
Copy link
Copy Markdown

@bachgarash bachgarash commented Mar 21, 2026

This PR adds documentation for opentelemetry-demo which includes newly introduced semantic convention attribute service.criticality

Summary

  • Add a new "Sample Configurations" section under the demo docs
  • Document a tail-based sampling example using the service.criticality resource attribute introduced in SemConv 1.40.0
  • Include collector configuration with sampling policies based on service criticality levels (critical, high, medium, low)

Context

This documentation accompanies open-telemetry/opentelemetry-demo#2950, which adds service.criticality as a resource attribute to all demo services. The example was originally included in the
demo's otelcol-config-extras.yml and moved here per reviewer feedback.

semconv PR

  • I have read and followed the Contributing docs, especially the "First-time contributing?" section.
  • This PR has content that I did not fully write myself.
  • I have the experience and knowledge necessary to understand, review, and validate all content in this PR.1

Footnotes

  1. Yes, I can answer maintainer questions about the content of this PR, without using AI.

  Add sample collector configuration demonstrating a better
  tail-based sampling policies based on the service.criticality
  resource attribute introduced in SemConv 1.40.0.

  Ref: open-telemetry/opentelemetry-demo#2950
@bachgarash bachgarash requested a review from a team as a code owner March 21, 2026 09:03
@otelbot-docs otelbot-docs bot requested a review from a team March 21, 2026 09:03
@otelbot-docs otelbot-docs bot added missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer missing:sig-approval Co-owning SIG didn't provide an approval labels Mar 21, 2026
@theletterf
Copy link
Copy Markdown
Member

@open-telemetry/demo-maintainers Please have a look, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer missing:sig-approval Co-owning SIG didn't provide an approval sig:demo

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants