Skip to content

Conversation

@lmolkova
Copy link
Member

@lmolkova lmolkova commented Oct 8, 2024

Moves emit-event (with a bit of convenience) into Logs API and makes it user-facing, see open-telemetry/oteps#265 and open-telemetry/opentelemetry-specification#4236 for the context.

This is an early prototype to drive discussions, high-level API feedback is very welcome.

@lmolkova lmolkova force-pushed the public-logs-api-events branch from 38acfc3 to 87c2b08 Compare December 7, 2024 05:44
@abstractmethod
def emit(
self,
name: str = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the spec missing the name parameter
https://opentelemetry.io/docs/specs/otel/logs/api/#emit-a-logrecord ? BTW in the sdk you are using event_name

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just got merged - open-telemetry/opentelemetry-specification#4320 will be released soon

BTW in the sdk you are using event_name

Good catch!

@lmolkova lmolkova force-pushed the public-logs-api-events branch from 23b1945 to 3c09ed0 Compare December 12, 2024 04:16
@codefromthecrypt
Copy link
Contributor

when you feel ready, can you put a diff of the old vs new into the PR desc or make a self-comment on a line that shows the high level change. It is a little harder to guess which part of this diff are the important end user parts, and I'd love to tell give feedback on the presumably better experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants