Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove core processor from the mn opentelemetry http library #559

Merged
merged 2 commits into from
May 3, 2024

Conversation

timyates
Copy link
Contributor

@timyates timyates commented May 2, 2024

Closes #553

The Micronaut OpenTelemetry Http plugin was exposing an API dependency on the processor classes. This in turn pulled in 7Mb of unrequired dependencies.

This PR fixes this issue, and does a tiny bit of cleanup.

In general, this module seems to have an excessive use of api for dependencies. But I don't think we can do much more without causing downstream breakages.

I ran the guide mentioned in the issue, and then re-ran it with a snapshot version of this PR, the following Build Scans were the result:

bookcatalog

bookinventory

bookrecommendation

Closes #553

The Micronaut OpenTelemetry Http plugin was exposing an API dependency on the processor classes.
This in turn pulled in 7Mb of unrequired dependencies.

This PR fixes this issue, and does a tiny bit of cleanup.

In general, this module seems to have an excessive use of `api` for dependencies.
But I don't think we can do much more without causing downstream breakages.

I ran the guide mentioned in the issue, and then re-ran it with a snapshot version of this PR, the following Build Scans were the result:

`bookcatalog`
- before https://ge.micronaut.io/s/ofkuix744eine
- after https://ge.micronaut.io/s/s6wap7cgohfzs

`bookinventory`
- before https://ge.micronaut.io/s/vokg7vtiyhztg
- after https://ge.micronaut.io/s/67p35n6pkovce

`bookrecommendation`
- before https://ge.micronaut.io/s/6ozkmgcfwtgb4
- after https://ge.micronaut.io/s/i3hi5u2iwgjzs
@timyates timyates added type: bug Something isn't working relates-to: build label for issues related to the build file or CI labels May 2, 2024
@timyates timyates added this to the 6.5.2 milestone May 2, 2024
@timyates timyates self-assigned this May 2, 2024
@timyates timyates linked an issue May 2, 2024 that may be closed by this pull request
Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@timyates timyates requested a review from n0tl3ss May 3, 2024 09:33
@sdelamo sdelamo merged commit 62b3f82 into 6.5.x May 3, 2024
11 checks passed
@sdelamo sdelamo deleted the dependency-spaghetti branch May 3, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: build label for issues related to the build file or CI type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

MN OTel HTTP add API dependencies on the annotation processor libraries
3 participants