With the release of .NET Agent version v9.0.0.0, upon agent upgrade, customers will now have Distributed Tracing on by default. This eliminates the need to configure the agent in order to have access to distributed traces. Distributed Tracing gives software teams working in modern environments an easy way to capture, visualize, and analyze traces through complex architectures, including architectures that use both monoliths and microservices.
What’s the impact?
With this change, customers will see distributed traces immediately upon upgrading to .NET version v9.0.0.0. Distributed Tracing on by default provides more data and better visibility for cross-application requests.
If you do not need this feature, it can be turned off in the .NET agent configuration file by setting distributed_tracing.enabled=false
OR by setting the environment variable NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=false
.
If you need more traces and are experiencing dropped spans, the agent reservoir can be expanded to accommodate more spans. To do so, set environment variable or config item called span_events.max_samples_stored
to a value greater than 2,000 up to a maximum value of 10,000. Note that increasing this value may impact memory usage.
With Distributed Tracing on by default, Cross Application Tracing (CAT) will now be deprecated and will be removed in a future version of the agent. Customers on CAT will now see distributed traces instead. Customers who would like to revert back to CAT can do so in the configuration file by setting cross_application_tracer.enabled = true
. It is however recommended to stay using distributed tracing, given that CAT will be removed in the future.