Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues.","sortDate":"2023-11-30","headlineUrl":"https://aws.amazon.com/what-is/distributed-tracing/?trk=faq_card","id":"faq-hub#what-is-distributed-tracing","category":"Developer Tools","primaryCTA":"https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?pg=what_is_header","headline":"What is Distributed Tracing?"},"metadata":{"tags":[{"id":"GLOBAL#tech-category#devtools","name":"Developer Tools","namespaceId":"GLOBAL#tech-category","description":"Developer Tools","metadata":{}},{"id":"faq-hub#faq-type#what-is","name":"what-is","namespaceId":"faq-hub#faq-type","description":"
what-is","metadata":{}}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/distributed-tracing/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"289765ed09","what-is-header.js":"251923df8a","what-is-header.rtl.css":"ccf4035484","what-is-header.css":"ce47058367","what-is-header.css.js":"004a4704e8","what-is-header.rtl.css.js":"f687973e4f"},"settings":{"templateMappings":{"category":"category","headline":"headline","primaryCTA":"primaryCTA","primaryCTAText":"primaryCTAText","primaryBreadcrumbText":"primaryBreadcrumbText","primaryBreadcrumbURL":"primaryBreadcrumbURL"}}}
Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues.","id":"seo-faq-pairs#what-is-distributed-tracing","customSort":"1"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the benefits of distributed tracing?","faqAnswer":"
Software developers can implement distributed tracing systems in almost any cloud-native environment, as well as record distributed traces that the cloud applications generate. Moreover, tracing tools support numerous programming languages and software stacks, allowing software teams to monitor and collect performance data for different applications on the same platform. \n
Development teams use distributed tracing to improve observability, as well as solve performance issues that conventional software debugging and monitoring tools can’t help with. \n
The following are more benefits of distributed tracing. \n
Accelerate software troubleshooting \nModern applications rely on numerous microservices to exchange data and fulfill service requests across distributed systems. Troubleshooting performance issues in a microservice-based architecture is significantly more challenging than in a monolithic software application. Unlike a monolithic application, the root cause of a specific software problem might not be apparent—the overlapping and complex interactions between multiple software modules can make it difficult to diagnose issues. \n
With distributed tracing, software teams can monitor data that passes through complex paths connecting various microservices and data storage. Using distributed tracing tools, software teams track requests and visualize data propagation paths with precision. Software teams can solve performance issues promptly and minimize service disruptions. \n
Improve developer collaboration \nSeveral developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production. \n
Reduce time to market \nOrganizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness. ","id":"seo-faq-pairs#benefits-of-distributed-tracing","customSort":"2"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the different types of distributed tracing? ","faqAnswer":"
Software teams use distributed tracing tools to monitor, analyze, and optimize applications. \n
Code tracing \nCode tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time. \n
Program tracing \nProgram tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations. \n
End-to-end tracing \nWith end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.","id":"seo-faq-pairs#different-type-distributed-tracing","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How does end-to-end distributed tracing work in microservices architecture? ","faqAnswer":"
When using applications, users initiate service requests and different application components process the request. \n
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to: \n \n - Microservice A that validates the user-entered data. \n
- Microservice B that takes the data from A and creates a record in the customer database. \n
- Microservice C that takes the data from B and validates payment. \n
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data. \n
- Microservice E that takes the data from D and creates a formatted ticket PDF file. \n \n
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex. \n
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with. \n
Span \nWhen processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request. \n
Trace ID \nThe distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects. \n
Metric collection \nAs each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected. \n
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs). \n
","id":"seo-faq-pairs#how-does-distributed-tracing-work","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are distributed tracing standards? ","faqAnswer":"
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in. \n
The following sections describe standards introduced to enable interoperability when performing distributed tracing. \n
OpenTracing \nOpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies. \n
OpenCensus \nOpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries. \n
OpenTelemetry \nOpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly. \n
","id":"seo-faq-pairs#distributed-tracing-standards","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What’s the difference between distributed tracing and logging? ","faqAnswer":"
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging: \n
\n - Centralized logging collects all recorded activities and stores them in a single location. \n
- Distributed logging stores log files in separate locations on the cloud. \n \n
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request. ","id":"seo-faq-pairs#distributed-tracing-difference","customSort":"6"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the challenges of distributed tracing? ","faqAnswer":"
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools. \n
Manual instrumentation \nSome tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection. \n
Limited frontend coverage \nDevelopers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session. \n
Random sampling \nSome tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool. ","id":"seo-faq-pairs#distributed-tracing-challenges","customSort":"7"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS help with your distributed tracing requirements? ","faqAnswer":"
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can: \n \n - Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk. \n
- Set the appropriate sampling rate to provide end-to-end visibility for the traces. \n
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates. \n \n
Get started with distributed tracing on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-help-distributed-tracing","customSort":"8"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"distributed-tracing","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/distributed-tracing/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is distributed tracing?
Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues.
What are the benefits of distributed tracing?
Software developers can implement distributed tracing systems in almost any cloud-native environment, as well as record distributed traces that the cloud applications generate. Moreover, tracing tools support numerous programming languages and software stacks, allowing software teams to monitor and collect performance data for different applications on the same platform.
Development teams use distributed tracing to improve observability, as well as solve performance issues that conventional software debugging and monitoring tools can’t help with.
The following are more benefits of distributed tracing.
Accelerate software troubleshooting
Modern applications rely on numerous microservices to exchange data and fulfill service requests across distributed systems. Troubleshooting performance issues in a microservice-based architecture is significantly more challenging than in a monolithic software application. Unlike a monolithic application, the root cause of a specific software problem might not be apparent—the overlapping and complex interactions between multiple software modules can make it difficult to diagnose issues.
With distributed tracing, software teams can monitor data that passes through complex paths connecting various microservices and data storage. Using distributed tracing tools, software teams track requests and visualize data propagation paths with precision. Software teams can solve performance issues promptly and minimize service disruptions.
Improve developer collaboration
Several developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production.
Reduce time to market
Organizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness.
What are the different types of distributed tracing?
Software teams use distributed tracing tools to monitor, analyze, and optimize applications.
Code tracing
Code tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time.
Program tracing
Program tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations.
End-to-end tracing
With end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.
How does end-to-end distributed tracing work in microservices architecture?
When using applications, users initiate service requests and different application components process the request.
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to:
- Microservice A that validates the user-entered data.
- Microservice B that takes the data from A and creates a record in the customer database.
- Microservice C that takes the data from B and validates payment.
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data.
- Microservice E that takes the data from D and creates a formatted ticket PDF file.
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex.
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with.
Span
When processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request.
Trace ID
The distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects.
Metric collection
As each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected.
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs).
What are distributed tracing standards?
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in.
The following sections describe standards introduced to enable interoperability when performing distributed tracing.
OpenTracing
OpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies.
OpenCensus
OpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries.
OpenTelemetry
OpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly.
What’s the difference between distributed tracing and logging?
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging:
- Centralized logging collects all recorded activities and stores them in a single location.
- Distributed logging stores log files in separate locations on the cloud.
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request.
What are the challenges of distributed tracing?
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools.
Manual instrumentation
Some tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection.
Limited frontend coverage
Developers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session.
Random sampling
Some tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool.
How can AWS help with your distributed tracing requirements?
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can:
- Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk.
- Set the appropriate sampling rate to provide end-to-end visibility for the traces.
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates.
Get started with distributed tracing on AWS by creating an account today.
Several developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production. \n
Reduce time to market \nOrganizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness. ","id":"seo-faq-pairs#benefits-of-distributed-tracing","customSort":"2"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the different types of distributed tracing? ","faqAnswer":"
Software teams use distributed tracing tools to monitor, analyze, and optimize applications. \n
Code tracing \nCode tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time. \n
Program tracing \nProgram tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations. \n
End-to-end tracing \nWith end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.","id":"seo-faq-pairs#different-type-distributed-tracing","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How does end-to-end distributed tracing work in microservices architecture? ","faqAnswer":"
When using applications, users initiate service requests and different application components process the request. \n
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to: \n \n - Microservice A that validates the user-entered data. \n
- Microservice B that takes the data from A and creates a record in the customer database. \n
- Microservice C that takes the data from B and validates payment. \n
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data. \n
- Microservice E that takes the data from D and creates a formatted ticket PDF file. \n \n
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex. \n
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with. \n
Span \nWhen processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request. \n
Trace ID \nThe distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects. \n
Metric collection \nAs each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected. \n
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs). \n
","id":"seo-faq-pairs#how-does-distributed-tracing-work","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are distributed tracing standards? ","faqAnswer":"
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in. \n
The following sections describe standards introduced to enable interoperability when performing distributed tracing. \n
OpenTracing \nOpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies. \n
OpenCensus \nOpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries. \n
OpenTelemetry \nOpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly. \n
","id":"seo-faq-pairs#distributed-tracing-standards","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What’s the difference between distributed tracing and logging? ","faqAnswer":"
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging: \n
\n - Centralized logging collects all recorded activities and stores them in a single location. \n
- Distributed logging stores log files in separate locations on the cloud. \n \n
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request. ","id":"seo-faq-pairs#distributed-tracing-difference","customSort":"6"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the challenges of distributed tracing? ","faqAnswer":"
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools. \n
Manual instrumentation \nSome tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection. \n
Limited frontend coverage \nDevelopers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session. \n
Random sampling \nSome tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool. ","id":"seo-faq-pairs#distributed-tracing-challenges","customSort":"7"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS help with your distributed tracing requirements? ","faqAnswer":"
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can: \n \n - Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk. \n
- Set the appropriate sampling rate to provide end-to-end visibility for the traces. \n
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates. \n \n
Get started with distributed tracing on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-help-distributed-tracing","customSort":"8"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"distributed-tracing","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/distributed-tracing/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is distributed tracing?
Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues.
What are the benefits of distributed tracing?
Software developers can implement distributed tracing systems in almost any cloud-native environment, as well as record distributed traces that the cloud applications generate. Moreover, tracing tools support numerous programming languages and software stacks, allowing software teams to monitor and collect performance data for different applications on the same platform.
Development teams use distributed tracing to improve observability, as well as solve performance issues that conventional software debugging and monitoring tools can’t help with.
The following are more benefits of distributed tracing.
Accelerate software troubleshooting
Modern applications rely on numerous microservices to exchange data and fulfill service requests across distributed systems. Troubleshooting performance issues in a microservice-based architecture is significantly more challenging than in a monolithic software application. Unlike a monolithic application, the root cause of a specific software problem might not be apparent—the overlapping and complex interactions between multiple software modules can make it difficult to diagnose issues.
With distributed tracing, software teams can monitor data that passes through complex paths connecting various microservices and data storage. Using distributed tracing tools, software teams track requests and visualize data propagation paths with precision. Software teams can solve performance issues promptly and minimize service disruptions.
Improve developer collaboration
Several developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production.
Reduce time to market
Organizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness.
What are the different types of distributed tracing?
Software teams use distributed tracing tools to monitor, analyze, and optimize applications.
Code tracing
Code tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time.
Program tracing
Program tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations.
End-to-end tracing
With end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.
How does end-to-end distributed tracing work in microservices architecture?
When using applications, users initiate service requests and different application components process the request.
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to:
- Microservice A that validates the user-entered data.
- Microservice B that takes the data from A and creates a record in the customer database.
- Microservice C that takes the data from B and validates payment.
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data.
- Microservice E that takes the data from D and creates a formatted ticket PDF file.
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex.
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with.
Span
When processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request.
Trace ID
The distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects.
Metric collection
As each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected.
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs).
What are distributed tracing standards?
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in.
The following sections describe standards introduced to enable interoperability when performing distributed tracing.
OpenTracing
OpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies.
OpenCensus
OpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries.
OpenTelemetry
OpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly.
What’s the difference between distributed tracing and logging?
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging:
- Centralized logging collects all recorded activities and stores them in a single location.
- Distributed logging stores log files in separate locations on the cloud.
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request.
What are the challenges of distributed tracing?
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools.
Manual instrumentation
Some tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection.
Limited frontend coverage
Developers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session.
Random sampling
Some tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool.
How can AWS help with your distributed tracing requirements?
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can:
- Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk.
- Set the appropriate sampling rate to provide end-to-end visibility for the traces.
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates.
Get started with distributed tracing on AWS by creating an account today.
Code tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time. \n
Program tracing \nProgram tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations. \n
End-to-end tracing \nWith end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.","id":"seo-faq-pairs#different-type-distributed-tracing","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How does end-to-end distributed tracing work in microservices architecture? ","faqAnswer":"
When using applications, users initiate service requests and different application components process the request. \n
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to: \n \n - Microservice A that validates the user-entered data. \n
- Microservice B that takes the data from A and creates a record in the customer database. \n
- Microservice C that takes the data from B and validates payment. \n
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data. \n
- Microservice E that takes the data from D and creates a formatted ticket PDF file. \n \n
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex. \n
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with. \n
Span \nWhen processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request. \n
Trace ID \nThe distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects. \n
Metric collection \nAs each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected. \n
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs). \n
","id":"seo-faq-pairs#how-does-distributed-tracing-work","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are distributed tracing standards? ","faqAnswer":"
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in. \n
The following sections describe standards introduced to enable interoperability when performing distributed tracing. \n
OpenTracing \nOpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies. \n
OpenCensus \nOpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries. \n
OpenTelemetry \nOpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly. \n
","id":"seo-faq-pairs#distributed-tracing-standards","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What’s the difference between distributed tracing and logging? ","faqAnswer":"
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging: \n
\n - Centralized logging collects all recorded activities and stores them in a single location. \n
- Distributed logging stores log files in separate locations on the cloud. \n \n
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request. ","id":"seo-faq-pairs#distributed-tracing-difference","customSort":"6"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the challenges of distributed tracing? ","faqAnswer":"
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools. \n
Manual instrumentation \nSome tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection. \n
Limited frontend coverage \nDevelopers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session. \n
Random sampling \nSome tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool. ","id":"seo-faq-pairs#distributed-tracing-challenges","customSort":"7"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS help with your distributed tracing requirements? ","faqAnswer":"
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can: \n \n - Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk. \n
- Set the appropriate sampling rate to provide end-to-end visibility for the traces. \n
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates. \n \n
Get started with distributed tracing on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-help-distributed-tracing","customSort":"8"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"distributed-tracing","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/distributed-tracing/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is distributed tracing?
Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues.
What are the benefits of distributed tracing?
Software developers can implement distributed tracing systems in almost any cloud-native environment, as well as record distributed traces that the cloud applications generate. Moreover, tracing tools support numerous programming languages and software stacks, allowing software teams to monitor and collect performance data for different applications on the same platform.
Development teams use distributed tracing to improve observability, as well as solve performance issues that conventional software debugging and monitoring tools can’t help with.
The following are more benefits of distributed tracing.
Accelerate software troubleshooting
Modern applications rely on numerous microservices to exchange data and fulfill service requests across distributed systems. Troubleshooting performance issues in a microservice-based architecture is significantly more challenging than in a monolithic software application. Unlike a monolithic application, the root cause of a specific software problem might not be apparent—the overlapping and complex interactions between multiple software modules can make it difficult to diagnose issues.
With distributed tracing, software teams can monitor data that passes through complex paths connecting various microservices and data storage. Using distributed tracing tools, software teams track requests and visualize data propagation paths with precision. Software teams can solve performance issues promptly and minimize service disruptions.
Improve developer collaboration
Several developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production.
Reduce time to market
Organizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness.
What are the different types of distributed tracing?
Software teams use distributed tracing tools to monitor, analyze, and optimize applications.
Code tracing
Code tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time.
Program tracing
Program tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations.
End-to-end tracing
With end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.
How does end-to-end distributed tracing work in microservices architecture?
When using applications, users initiate service requests and different application components process the request.
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to:
- Microservice A that validates the user-entered data.
- Microservice B that takes the data from A and creates a record in the customer database.
- Microservice C that takes the data from B and validates payment.
- Microservice D that takes the data from C, allocates a seat, and generates movie ticket data.
- Microservice E that takes the data from D and creates a formatted ticket PDF file.
A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex.
Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with.
Span
When processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request.
Trace ID
The distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects.
Metric collection
As each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected.
For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs).
What are distributed tracing standards?
Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in.
The following sections describe standards introduced to enable interoperability when performing distributed tracing.
OpenTracing
OpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies.
OpenCensus
OpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries.
OpenTelemetry
OpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly.
What’s the difference between distributed tracing and logging?
Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging:
- Centralized logging collects all recorded activities and stores them in a single location.
- Distributed logging stores log files in separate locations on the cloud.
Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request.
What are the challenges of distributed tracing?
Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools.
Manual instrumentation
Some tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection.
Limited frontend coverage
Developers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session.
Random sampling
Some tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool.
How can AWS help with your distributed tracing requirements?
AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can:
- Integrate with all applications running on Amazon Elastic Compute Cloud (EC2), Amazon EC2 Container Service (Amazon ECS), AWS Lambda, and AWS Elastic Beanstalk.
- Set the appropriate sampling rate to provide end-to-end visibility for the traces.
- Visualize aggregated data with a service map, displaying key metrics such as latency and failure rates.
Get started with distributed tracing on AWS by creating an account today.
With end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application.","id":"seo-faq-pairs#different-type-distributed-tracing","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":"
distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How does end-to-end distributed tracing work in microservices architecture? ","faqAnswer":"
When using applications, users initiate service requests and different application components process the request. \n
Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to: \n A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex. \n Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with. \n When processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request. \n The distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects. \n As each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected. \n For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs). \n ","id":"seo-faq-pairs#how-does-distributed-tracing-work","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":" distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are distributed tracing standards? ","faqAnswer":" Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in. \n The following sections describe standards introduced to enable interoperability when performing distributed tracing. \n OpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies. \n OpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries. \n OpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly. \n ","id":"seo-faq-pairs#distributed-tracing-standards","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":" distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What’s the difference between distributed tracing and logging? ","faqAnswer":" Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging: \n Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request. ","id":"seo-faq-pairs#distributed-tracing-difference","customSort":"6"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":" distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"What are the challenges of distributed tracing? ","faqAnswer":" Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools. \n Some tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection. \n Developers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session. \n Some tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool. ","id":"seo-faq-pairs#distributed-tracing-challenges","customSort":"7"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":" distributed-tracing","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS help with your distributed tracing requirements? ","faqAnswer":" AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can: \n Get started with distributed tracing on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-help-distributed-tracing","customSort":"8"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#distributed-tracing","name":"distributed-tracing","namespaceId":"seo-faq-pairs#faq-collections","description":" distributed-tracing","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/distributed-tracing/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
Distributed tracing is observing data requests as they flow through a distributed system. Modern microservices architecture often has multiple small independent components—these components constantly communicate and exchange data using APIs to do complex work. With distributed tracing, developers can trace—or visually follow—a request path across different microservices. This visibility helps troubleshoot errors or fix bugs and performance issues. Software developers can implement distributed tracing systems in almost any cloud-native environment, as well as record distributed traces that the cloud applications generate. Moreover, tracing tools support numerous programming languages and software stacks, allowing software teams to monitor and collect performance data for different applications on the same platform. Development teams use distributed tracing to improve observability, as well as solve performance issues that conventional software debugging and monitoring tools can’t help with. The following are more benefits of distributed tracing. Modern applications rely on numerous microservices to exchange data and fulfill service requests across distributed systems. Troubleshooting performance issues in a microservice-based architecture is significantly more challenging than in a monolithic software application. Unlike a monolithic application, the root cause of a specific software problem might not be apparent—the overlapping and complex interactions between multiple software modules can make it difficult to diagnose issues. With distributed tracing, software teams can monitor data that passes through complex paths connecting various microservices and data storage. Using distributed tracing tools, software teams track requests and visualize data propagation paths with precision. Software teams can solve performance issues promptly and minimize service disruptions. Several developers are often involved in building a cloud application, with each responsible for one or several microservices. The software development process slows down if developers cannot trace data exchanged by microservices. With distributed tracing systems developers can collaborate by providing telemetry data, such as logs and traces, for every service request the microservice makes. Developers can accurately respond to bugs and other software issues discovered during testing and production. Organizations deploying distributed tracing platforms can streamline and accelerate efforts to release software applications for end users. Software teams review distributed traces to gain insight that speeds up software development, minimizes development costs, understands user behaviors, and improves market readiness. Software teams use distributed tracing tools to monitor, analyze, and optimize applications. Code tracing is a software process that inspects the flow of source codes in an application when performing a specific function. It helps developers understand the logical flow of the code and identify unknown issues. For example, developers use code tracing to validate that the service request has invoked steps to query a database. If some software functions fail to reply, the tracing system will collect the appropriate error status and draw attention to the response time. Program tracing is a method wherein developers can examine the addresses of instructions and variables called by an active application. When a software application runs, it processes each line of code that resides in a specific allocated memory space. The application also processes variables stored in the machine memory. Inspecting changes in program and data memories is challenging without an automated tool. With program tracing, software teams can diagnose deep-rooted performance issues like memory overflow, excessive resource consumption, and blocking logic operations. With end-to-end tracing development teams can track data transformation along the service request path. When an application initiates a request, it sends data to other software components for further processing. Developers use tracing tools to track and compile changes that critical data undergo from end to end. It gives an application-centric view of requests flowing through the application. When using applications, users initiate service requests and different application components process the request. Consider a user making a ticket booking in an online movie booking application. The user enters their contact details, movie details, and payment information and chooses Book Now. A request is created that goes to: A response containing the ticket PDF is then returned back up the chain of microservices from E to D to C to B to A, until it eventually reaches the user. The above example is simple—a request often passes through several dozen microservices and even chains of third-party software components outside the application. This makes the process increasingly complex. Distributed tracing systems track these interactions of service requests with other microservices and software components in the distributed computing environment. A distributed trace represents the timeline and all the actions that occur between request generation and response receipt. Software teams use the trace to follow data movement through multiple microservices that the initial request interacts with. When processing a service request, an application might take several actions. These actions are represented as spans in distributed tracing. For example, a span might be an API call, user authentication, or enabling storage access. If a single request results in several actions, the initial (or parent) span may branch into several child spans. These nested layers of parent and child spans form a continuous logical representation of steps taken to accomplish the service request. The distributed tracing system assigns a unique ID to every request in order to track it. Each span inherits the same trace ID from the original request it belongs to. Spans are also tagged with a unique span ID that helps the tracing system consolidate the metadata, logs, and metrics it collects. As each span passes through different microservices, it appends metrics that provide developers with deep and precise insights into the software behavior. You can collect error rate, timestamp, response time, and other metadata with the spans. After the trace completes an entire cycle, the distributed tracing tool consolidates all data collected. For example, an API call is evaluated with response time, error status, and breakdown of secondary functions fulfilled by multiple third-party services. The tracing tool turns the data into visual forms, highlighting key indicators and performance summaries. This way, site reliability engineers can rapidly identify errors, inspect critical data elements, and collaborate with development teams to remediate performance issues and ensure compliance with Service Level Agreements (SLAs). Distributed tracing standards provide a common framework and software tools for developers. These standards monitor, visualize, and analyze service requests in modern application environments. By standardizing distributed tracing workflow, software teams can instrument request-tracing without being subjected to vendor lock-in. The following sections describe standards introduced to enable interoperability when performing distributed tracing. OpenTracing is an open source distributed tracing standard developed by the Cloud Native Computing Foundation (CNCF). OpenTracing focuses on enabling developers to generate traces with an instrumentation API. This allows developers to generate distributed traces from different parts of the code base, library, or other dependencies. OpenCensus consists of multi-language libraries capable of extracting software metrics and sending them to backend systems for analysis. Developers can use the provided API to manage how traces are generated and collected. Unlike OpenTracing, developers work with OpenCensus from a single project repository instead of individual code bases and libraries. OpenTelemetry unifies OpenTracing and OpenCensus. It combines the best features of both standards to provide a comprehensive distributed tracing framework. OpenTelemetry provides extensive software development kits, APIs, libraries, and other instrumentation tools for implementing distributed tracing more effortlessly. Logging is a practice of recording specific events that occur when an application runs. Logging tools collect timestamped events—such as system errors, user interactions, communication statuses, and other metrics—to help development teams detect system anomalies. Generally, there are two types of logging: Both logging methods provide a static overview of incidents that show developers what happened in the application. In contrast, distributed tracing provides an audit trail that clarifies why an incident occurred by correlating various telemetry data collected throughout a service request's period. Distributed tracing may use logging and other data collection methods for tracing a specific service request. Distributed tracing has simplified the efforts of developers in diagnosing, debugging, and fixing software issues. Despite that, the following challenges remain that software teams must be mindful of when choosing tracing tools. Some tracing tools require software teams to manually instrument their codes to generate the necessary traces. When developers modify codes to trace requests, there are risks of coding errors that affect production releases. Moreover, the lack of automation complicates tracing, resulting in delays and possibly inaccurate data collection. Developers may not be able to gain complete oversight of performance issues if their tracing tools are restricted to backend analysis. In some cases, the distributed tracing system only starts collecting data when the first backend service receives the request. This means developers cannot detect and inspect issues arising from frontend services during the corresponding user session. Some tools don't allow software teams to prioritize tracing, limiting observability to randomly-sampled traces. With limited sample data, organizations need additional software troubleshooting approaches to capture major issues that escape the tracing tool. AWS X-Ray is a distributed tracing platform that helps software developers trace user requests and identify bottlenecks in their cloud applications. Organizations use X-Ray to visualize application metrics and improve workload availability. With AWS X-Ray you can: Get started with distributed tracing on AWS by creating an account today. \n
Span \n
Trace ID \n
Metric collection \n
OpenTracing \n
OpenCensus \n
OpenTelemetry \n
\n
Manual instrumentation \n
Limited frontend coverage \n
Random sampling \n
\n
What is distributed tracing?
What are the benefits of distributed tracing?
Accelerate software troubleshooting
Improve developer collaboration
Reduce time to market
What are the different types of distributed tracing?
Code tracing
Program tracing
End-to-end tracing
How does end-to-end distributed tracing work in microservices architecture?
Span
Trace ID
Metric collection
What are distributed tracing standards?
OpenTracing
OpenCensus
OpenTelemetry
What’s the difference between distributed tracing and logging?
What are the challenges of distributed tracing?
Manual instrumentation
Limited frontend coverage
Random sampling
How can AWS help with your distributed tracing requirements?