GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OTLP export silently drops application name and labels · Issue #344 · grafana/pyroscope-java

OTLP export silently drops application name and labels #344

New issue
Copy link
New issue
Copy link
Closed
#348
Closed
OTLP export silently drops application name and labels#344
#348
Copy link
Assignees
arnabnandy7

Description

@korniltsev-grafanista
korniltsev-grafanista
opened on Aug 5, 2026
Issue body actions

Found while reviewing #335.

In OTLP mode (PYROSCOPE_FORMAT=otlp), PYROSCOPE_APPLICATION_NAME, static labels, PYROSCOPE_LABELS, and dynamic labels from Pyroscope.LabelsWrapper are all silently ignored. PyroscopeExporter sends the raw async-profiler OTLP payload, which does not include service.name, so profiles land under service_name="unknown_service". This is currently acknowledged only in a comment inside the integration test.

Suggested improvements:

  • Document this limitation in the README's OTLP section.
  • Log a warning at startup when an application name or labels are configured together with PYROSCOPE_FORMAT=otlp, so users aren't left wondering where their data went.
  • Relatedly, AsyncProfilerDelegate.dumpImpl still calls Pyroscope.LabelsWrapper.dump() in OTLP mode and the result is discarded. If draining the label state is intentional, fine; otherwise it is wasted work.

cc @arnabnandy7

Activity

  1. arnabnandy7 commented on Aug 5, 2026

    @arnabnandy7
    arnabnandy7
    on Aug 5, 2026
    Contributor
    More actions

    Please assign me I'll look into these findings in sometime.

  2. korniltsev-grafanista commented on Aug 5, 2026

    @korniltsev-grafanista
    korniltsev-grafanista
    on Aug 5, 2026
    ContributorAuthor
    More actions

    ping me when you start working on these. I also have not reviewed if these are valid - they are straight from Dario

  3. arnabnandy7 commented on Aug 5, 2026

    @arnabnandy7
    arnabnandy7
    on Aug 5, 2026
    Contributor
    More actions

    ping me when you start working on these. I also have not reviewed if these are valid - they are straight from Dario

    Sure, let me start with this one. I'll share you the findings first and then if we're agreed on proceedings then I'll implement. @korniltsev-grafanista hope that's fine with you.

  4. korniltsev-grafanista
    assigned
    arnabnandy7
    on Aug 5, 2026
  5. arnabnandy7 commented on Aug 5, 2026

    @arnabnandy7
    arnabnandy7
    on Aug 5, 2026
    Contributor
    More actions

    @korniltsev-grafanista I reviewed this, and the findings are valid.

    In OTLP mode, we forward async-profiler’s protobuf payload as-is. The application name and labels managed by the Java agent aren’t added to that payload, so profiles can end up under service_name="unknown_service".

    LabelsWrapper.dump() still serves a purpose because it cleans up closed scoped contexts. Removing it without disabling dynamic-label collection could cause those contexts to accumulate, so I think we should keep it and add a comment explaining why.

    For this issue, I suggest documenting the limitation in the README, logging a startup warning when OTLP is enabled, and adding a test for that warning. Adding the application name and labels to the OTLP payload would be a larger follow-up since it would require parsing and modifying async-profiler’s experimental protobuf output.

    If this scope sounds good, I’ll go ahead with the implementation.

  6. korniltsev-grafanista commented on Aug 5, 2026

    @korniltsev-grafanista
    korniltsev-grafanista
    on Aug 5, 2026
    ContributorAuthor
    More actions

    sounds good

    Reacted by Arnab Nandy
  7. korniltsev-grafanista
    closed this as completedin #348on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @arnabnandy7
    arnabnandy7

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.