With the release of Python Agent version v22.214.171.124, upon agent upgrade, customers will now have Distributed Tracing on by default. This update 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 Python version v126.96.36.199. 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 Python agent configuration file by setting
distributed_tracing.enabled=false OR by setting the environment variable
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.