EventStore / EventStoreDB-Client-Java

Official Asynchronous Java 8+ Client Library for EventStoreDB 20.6+
https://eventstore.com
Apache License 2.0
63 stars 20 forks source link

Extract tracing metadata from Event not OriginalEvent #284

Closed w1am closed 1 month ago

w1am commented 1 month ago

Changed: Extract tracing metadata from Event

We were previously extracting trace context from the OriginalEvent. This means we will not be able to extract the trace information when consuming events from a category stream. This PR extracts the trace information from the Event itself. This applies to both regular and persistent subscriptions.

Also improved test testTracingContextInjectionIsIgnoredAsExpectedWhenUserMetadataIsNonNullAndNotAJsonObject to ensure no span is created in subscription for events with non-json metadata.