-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 debug exporter #8375
add debug exporter #8375
Conversation
Pinging @jpkrohling as you'd reviewed the PR this replaces |
4be8194
to
8053951
Compare
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
cd4bddd
to
2243391
Compare
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.
LGTM. A minor comment on how to migrate from one component to another, but it can be done in a follow-up PR.
func NewFactoryWithName(s component.Type) exporter.Factory { | ||
return exporter.NewFactory( | ||
s, | ||
createDefaultConfig, |
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.
Instead of introducing the exported function NewFactoryWithName
and keep it for a year, maybe we can move createDefaultConfig
to exporter/internal/
package and have both debug and logging exporters use it?
It probably should be done along with Config
struct. logging and debug exporter should have aliases to that Config
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.
Let me try that. I'll move this PR back to draft while I try this out.
The loggingexporter module has a public type |
Superseeded by #8378 |
This PR does the following:
debug
instead oflogging
I would suggest to move forward w/ this, we could release v0.85.0 w/ both exporters.
FIxes #7769