Skip to content

Add metrics to ZipkinSpanExporter#4501

Merged
jack-berg merged 5 commits intoopen-telemetry:mainfrom
Donnerbart:add-metrics-to-zipkin-span-exporter
Aug 12, 2022
Merged

Add metrics to ZipkinSpanExporter#4501
jack-berg merged 5 commits intoopen-telemetry:mainfrom
Donnerbart:add-metrics-to-zipkin-span-exporter

Conversation

@Donnerbart
Copy link
Copy Markdown
Contributor

@Donnerbart Donnerbart commented May 28, 2022

This is a follow-up to #4487 to complete the metrics for span exporters story.

I'm not sure if you like the distinct transport name for HTTP/JSON encoding in the instrumentationScopeName. This will change the existing metric names for OkHttpExporter when JSON encoding is used. I made that part an extra commit which can easily be dropped, if that change is not wanted.

@Donnerbart Donnerbart requested a review from a user May 28, 2022 00:01
@Donnerbart Donnerbart requested a review from Oberon00 as a code owner May 28, 2022 00:01
@codecov
Copy link
Copy Markdown

codecov bot commented May 29, 2022

Codecov Report

Merging #4501 (7d990b3) into main (77be2e0) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #4501      +/-   ##
============================================
+ Coverage     90.08%   90.11%   +0.02%     
- Complexity     5074     5077       +3     
============================================
  Files           584      584              
  Lines         15667    15682      +15     
  Branches       1504     1506       +2     
============================================
+ Hits          14114    14132      +18     
+ Misses         1100     1099       -1     
+ Partials        453      451       -2     
Impacted Files Coverage Δ
...entelemetry/exporter/internal/ExporterMetrics.java 100.00% <100.00%> (ø)
...metry/exporter/internal/okhttp/OkHttpExporter.java 95.45% <100.00%> (+0.21%) ⬆️
...ntelemetry/exporter/zipkin/ZipkinSpanExporter.java 89.16% <100.00%> (+1.55%) ⬆️
...try/exporter/zipkin/ZipkinSpanExporterBuilder.java 100.00% <100.00%> (ø)
...metry/sdk/metrics/export/PeriodicMetricReader.java 90.00% <0.00%> (+2.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Donnerbart
Copy link
Copy Markdown
Contributor Author

Donnerbart commented May 29, 2022

I think the public field baseLogger and the package-private method produceLocalIp() in ZipkinSpanExporter should be private. This change would break the binary compatibility, but I think it's very unlikely that someone is using these anyway. Is there a way to do this change without failing the exporters:zipkin:jApiCmp check or can't this be changed anymore?

@jkwatson
Copy link
Copy Markdown
Contributor

I think the public field baseLogger and the package-private method produceLocalIp() in ZipkinSpanExporter should be private. This change would break the binary compatibility, but I think it's very unlikely that someone is using these anyway. Is there a way to do this change without failing the exporters:zipkin:jApiCmp check or can't this be changed anymore?

Unfortunately, we're stuck with that mistake. :(

@github-actions
Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 29, 2022
@Donnerbart
Copy link
Copy Markdown
Contributor Author

Hey, is there anything I can do to move this forward?

@github-actions github-actions bot removed the Stale label Jun 29, 2022
@jack-berg
Copy link
Copy Markdown
Member

Sorry for not responding sooner. I've been hesitant to accept this because it introduces a new transitive dependency for the :exporters:zipkin module on com.squareup.okhttp3:okhttp. More generally, the :exporters:otlp:common artifact is becoming a home for utility methods used by a variety of exporters, which feels sloppy.

Maybe we can move the truly common classes to a new module :exporters:common, and merge remaining shared otlp utilities into :exporters:otlp:all. Thoughts @anuraaga / @jkwatson?

@anuraaga
Copy link
Copy Markdown
Contributor

@jack-berg A module split would definitely be a good idea I think. I don't know if it blocks this PR - doesn't the zipkin exporter already depend on okhttp via the zipkin sender?

@jack-berg
Copy link
Copy Markdown
Member

It shades in okhttp io.zipkin.reporter2:zipkin-sender-okhttp3.

@github-actions
Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added Stale and removed Stale labels Jul 14, 2022
@github-actions
Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 29, 2022
@jack-berg jack-berg removed the Stale label Jul 29, 2022
@jack-berg
Copy link
Copy Markdown
Member

This is unblocked now that #4575 is merged. I've pushed a commit to rebase. Thanks @Donnerbart!

@jack-berg
Copy link
Copy Markdown
Member

@jkwatson any additional thoughts before I merge this?

Copy link
Copy Markdown
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

🚢

@jack-berg jack-berg merged commit 323174a into open-telemetry:main Aug 12, 2022
@Donnerbart Donnerbart deleted the add-metrics-to-zipkin-span-exporter branch February 9, 2023 22:45
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.

4 participants