-
Notifications
You must be signed in to change notification settings - Fork 262
feat: Add log record exporter interface #1666
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
Conversation
@@ -7,6 +7,9 @@ | |||
module OpenTelemetry | |||
module SDK | |||
module Logs | |||
ExportError = Class.new(OpenTelemetry::Error) |
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.
In order for this to match the convention in traces, this should be a Logs::Export::ExportError
(needs to be nested under the Export module).
see:
opentelemetry-ruby/sdk/lib/opentelemetry/sdk/trace/export.rb
Lines 9 to 14 in 92748f2
module Trace | |
# The Export module contains the built-in exporters and span processors for the OpenTelemetry | |
# reference implementation. | |
module Export | |
# Raised when an export fails; spans are available via :spans accessor | |
class ExportError < OpenTelemetry::Error |
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.
Thank you! Fixed in 425ab1c
# The Export module contains the built-in exporters and log record | ||
# processors for the OpenTelemetry reference implementation. |
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.
This more closely matches the description of the Trace Export module.
This PR adds the duck type for the log record exporter.
Spec: https://opentelemetry.io/docs/specs/otel/logs/sdk/#logrecordexporter
Closes: #1487