Closed brotherhorse closed 3 weeks ago
like this:
Messages<byte[]> msg = await consumer.ReceiveAsync(cancellationToken).ConfigureAwait(false);
using (var activity=Activity.Current?.Source.StartActivity("MyBusiness")) { activity?.SetTag("business", "mybusiness"); _log.LogInformation("Hello world"); }
Hi! You can check out the example and the source code of the interceptor.
I Got it, var parentContext = Propagators.DefaultTextMapPropagator.Extract(default, p.Properties, Getter);
like this:
Messages<byte[]> msgs = await consumer.BatchReceiveAsync(cancellationToken).ConfigureAwait(false);
using (var activity=Activity.Current?.Source.StartActivity("MyBusiness")) { activity?.SetTag("business", "mybusiness"); _log.LogInformation("Hello world");
}