-
Notifications
You must be signed in to change notification settings - Fork 791
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
Support otlp_span and otlp_metric exporter config names #1253
Support otlp_span and otlp_metric exporter config names #1253
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@@ -91,6 +91,7 @@ private static MetricExporterFactory findMetricExporterFactory(String exporterNa | |||
if (metricExporterFactory | |||
.getClass() | |||
.getSimpleName() | |||
.replace("_", "") |
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.
Hmm - feels a bit magic but I guess it's fine 😃
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.
yeah, maybe the factories could have a method that returns a name and do the comparison based on that.
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.
I like the idea of SpanExporterFactory/MetricExporterFactory having a method Set<String> getNames()
(Set since e.g. OtlpSpanExporterFactory can be enabled via both otlp
and otlp_span
)
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.
I guess this is only applicable to our built-in exporters though, as opposed to someone building their own Exporter and using EXPORTER_JAR
, so maybe not. Also, I forget, now that we are Java 8, we can always add interface methods after GA 😁
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.
Yeah I think my idea before was to have a map of wellknown names, and only use the classname for custom exporters
Thanks! |
Signed-off-by: Pavol Loffay ploffay@redhat.com
Resolves #1250
cc) @malafeev