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

feat: Add log record exporter interface #1666

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Jul 31, 2024

This PR adds the duck type for the log record exporter.

Spec: https://opentelemetry.io/docs/specs/otel/logs/sdk/#logrecordexporter

Closes: #1487

@@ -7,6 +7,9 @@
module OpenTelemetry
module SDK
module Logs
ExportError = Class.new(OpenTelemetry::Error)
Copy link
Member

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:

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

Copy link
Contributor Author

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

Comment on lines +10 to +11
# The Export module contains the built-in exporters and log record
# processors for the OpenTelemetry reference implementation.
Copy link
Contributor Author

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.

@mwear mwear merged commit 79aa07b into open-telemetry:main Aug 14, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logs SDK - LogRecordExporter
2 participants