Skip to content

Add support for java agent file format 0.3 in explorer db#211

Open
jaydeluca wants to merge 4 commits intoopen-telemetry:mainfrom
jaydeluca:java-agent-file-format-update
Open

Add support for java agent file format 0.3 in explorer db#211
jaydeluca wants to merge 4 commits intoopen-telemetry:mainfrom
jaydeluca:java-agent-file-format-update

Conversation

@jaydeluca
Copy link
Copy Markdown
Member

@jaydeluca jaydeluca commented Apr 6, 2026

Adds support in the database builder for the new 0.3 file format, which changed the metric type to data_type and added instrument.

Another note, I am deleting the ecosystem-registry entries for the metadata for versions below the latest (2.26.1). The reason for this is because 2.26.1 is the release where I finished populating the base metadata for everything, and I would like to actually use 2.27.0 as the floor of the versions we track and support for the website, since that's when the data will be the most complete.

After this is merged, I will re-run the db builder pipeline with the --clean flag to nuke earlier versions in the database (ecosystem-explorer/public/data/javaagent).

Eventually we can delete some of the transformation code in the java agent watcher and db builder, but we can leave it for now in case we decide we do want to support older versions for some reason.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 6, 2026

Deploy Preview for otel-ecosystem-explorer ready!

Name Link
🔨 Latest commit 6dc8082
🔍 Latest deploy log https://app.netlify.com/projects/otel-ecosystem-explorer/deploys/69d4202e2008c60008a91da8
😎 Deploy Preview https://deploy-preview-211--otel-ecosystem-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the explorer and DB builder to align with the Java agent registry file_format: 0.3 metric schema (renaming the metric field from type to data_type and introducing instrument), and adjusts related UI/test fixtures accordingly.

Changes:

  • Update frontend Java agent metric typings and UI rendering to use instrument/data_type.
  • Update frontend tests to use the new metric shape.
  • Extend the DB builder instrumentation transformer/tests to recognize file_format: 0.3 and transform older formats toward 0.3.

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ecosystem-explorer/src/types/javaagent.ts Updates Metric shape from type to instrument + data_type.
ecosystem-explorer/src/features/java-agent/utils/badge-info.test.ts Updates test fixtures to the new metric shape.
ecosystem-explorer/src/features/java-agent/java-instrumentation-list-page.test.tsx Updates list-page test fixtures to new metric fields.
ecosystem-explorer/src/features/java-agent/components/telemetry-section.tsx Renders metric badge using metric.instrument instead of metric.type.
ecosystem-explorer/src/features/java-agent/components/telemetry-section.test.tsx Updates telemetry-section tests to use new metric fields.
ecosystem-explorer/src/features/java-agent/components/instrumentation-group-card.test.tsx Updates group-card fixtures and version expectations.
ecosystem-explorer/src/features/java-agent/components/instrumentation-card.test.tsx Updates card fixtures to new metric fields.
ecosystem-explorer/src/features/java-agent/components/configuration-selector.test.tsx Updates selector fixtures to new metric fields.
ecosystem-automation/explorer-db-builder/tests/test_instrumentation_transformer.py Updates transformer tests for 0.3 passthrough + 0.2/0.1 upgrade path.
ecosystem-automation/explorer-db-builder/src/explorer_db_builder/instrumentation_transformer.py Adds 0.2→0.3 transform and 0.3 passthrough logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jaydeluca jaydeluca marked this pull request as ready for review April 6, 2026 21:07
@jaydeluca jaydeluca requested review from a team as code owners April 6, 2026 21:07
@jaydeluca jaydeluca changed the title Add support for java agent 0.3 in explorer db Add support for java agent file format 0.3 in explorer db Apr 6, 2026
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