Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lenoch7
Copy link
Contributor

@lenoch7 lenoch7 commented Jun 30, 2025

Fixes #1431 issue, where shaded exposition-formats/exported-opentelemetry artifacts depends on "no shaded" protobuf/otel dependency (caused by #1293).

See details in #1431 issue.

Fixes #1431 issue, where shaded exposition-formats/exported-opentelemetry
artifacts depends on "no shaded" protobuf/otel dependency (caused by #1293).

Signed-off-by: Radek Kraus <[email protected]>
@lenoch7 lenoch7 force-pushed the fix/1431/shaded-protobuf_and_otel branch from 944945a to 9ab4203 Compare June 30, 2025 16:44
Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

Thanks a lot for helping out here!

<dependencies>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>prometheus-metrics-exporter-opentelemetry-no-otel</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

This dependency also has java classes that are missing now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am sorry, but I didn't catch the point.

The classes from prometheus-metrics-exporter-opentelemetry-no-otel artifact (module directory prometheus-metrics-exporter-opentelemetry) are copied by maven-resources-plugin (see execution copy-metrics-exporter-opentelemetry-main) and then are relocated by maven-shade-plugin.

I see all classes (using correct "shaded" import statements) in io.prometheus:prometheus-metrics-exporter-opentelemetry artifact.

Copy link
Member

Choose a reason for hiding this comment

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

now I get it - that's a really nice solution!

<dependencies>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>prometheus-metrics-exposition-formats-no-protobuf</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

This dependency also has java classes that are missing now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am sorry, but I didn't catch the point.

The classes from prometheus-metrics-exposition-formats-no-protobuf artifact (module directory prometheus-metrics-exposition-formats) are copied by maven-resources-plugin ( see execution copy-metrics-exposition-formats-main) and then are relocated by maven-shade-plugin.

I see all classes (using shaded correct "shaded" import statement) in io.prometheus:prometheus-metrics-exposition-formats artifact.

@zeitlinger zeitlinger merged commit b13854d into prometheus:main Jul 4, 2025
7 checks passed
@lenoch7 lenoch7 deleted the fix/1431/shaded-protobuf_and_otel branch July 14, 2025 07:36
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.

Consider shading protobuf-java to avoid conflicts
2 participants