-
Notifications
You must be signed in to change notification settings - Fork 535
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
Distributor shim: add test verifying receiver works (including metrics) #4477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, have you tested that the metrics are still exposed, using the docker-compose example for instance?
_ metric.Float64ObservableUpDownCounter = Float64ObservableUpDownCounter{} | ||
_ metric.Int64Observer = Int64Observer{} | ||
_ metric.Float64Observer = Float64Observer{} | ||
_ metric.MeterProvider = &MeterProvider{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if we need the pointer? I think we can keep the value receivers, none of the methods modify the struct state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I've pushed a new commit with just value receivers. Works just as well.
What this PR does:
Adds a test that runs the OTel receiver shim and tries to write traces in various formats. It also checks the spans_received/spans_refused metrics are set correctly.
I have also refactored some code:
noop.Meter
and remove all empty methodsI'm adding this because updating OTel dependencies is breaking the metrics and we only have slow integration tests to catch this 😞
Which issue(s) this PR fixes:
Fixes #Checklist
Documentation addedNot neededCHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]