The option to query events is available only through a preview, but if you sign up, you can try out the Events API. If you'd like to participate in the preview, let us know in our CNCF Slack channel, #otel-newrelic.
OpenTelemetry recently introduced the experimental Events API in its specification. This API allows you to create an
EventLogger, which can emit
LogRecords containing two special attributes:
event.domain: The domain of the emitted events. It needs to be set during the creation of the
event.name: The event name. This attribute is what New Relic uses to map an OpenTelemetry event to a New Relic event type.
So, if your application emits an event with
event.name=ApiRequest, you will be able to find these events under the
ApiRequest event type in New Relic. Here's an example of how to view the data using query builder:
Note that both
event.domain need to be included in the OpenTelemetry events for them to become available as events in New Relic. The OpenTelemetry Events API already enforces this through the
Events constructor or factory method interfaces.
To learn about OpenTelemetry in other UI pages, see the UI overview.