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

add demo for otel-collector for metrics #2796

Conversation

fatsheep9146
Copy link
Contributor

fix #2161
Signed-off-by: Ziqi Zhao zhaoziqi9146@gmail.com

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: fatsheep9146 / name: Ziqi Zhao (22c928f)

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
@fatsheep9146 fatsheep9146 force-pushed the otel-controller-demo-for-metrics branch from 561f58c to 22c928f Compare April 19, 2022 05:45
)

var (
meterProvider metric.MeterProvider
Copy link
Member

Choose a reason for hiding this comment

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

I have seen the same example in the collector repo. Should we avoid using "globals" and simply return the provider as the initProvider() return value, and use that instance to create a meter and stop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I will fix like that.

@codecov
Copy link

codecov bot commented Apr 21, 2022

Codecov Report

Merging #2796 (05d7f63) into main (776accd) will increase coverage by 0.0%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2796   +/-   ##
=====================================
  Coverage   75.7%   75.7%           
=====================================
  Files        179     179           
  Lines      11818   11818           
=====================================
+ Hits        8951    8953    +2     
+ Misses      2634    2632    -2     
  Partials     233     233           
Impacted Files Coverage Δ
sdk/trace/batch_span_processor.go 82.1% <0.0%> (+0.9%) ⬆️

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
@pellared
Copy link
Member

Closing as this PR is outdated and the issue was solved by #5283

@pellared pellared closed this May 22, 2024
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.

otel-collector example does not use metrics
4 participants