Ask Your Question
0

Using OpenTelemetry, what is the method to compute the time interval between a specific location P1 on Trace T1 and a different location P2 on Trace T2 in ElasticSearch?

asked 2023-04-05 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-08-31 17:00:00 +0000

devzero gravatar image

To compute the time interval between a specific location P1 on Trace T1 and a different location P2 on Trace T2 in ElasticSearch using OpenTelemetry, you can follow these steps:

  1. Set up OpenTelemetry to collect tracing data from your application.

  2. Use the OpenTelemetry API to annotate your traces with metadata about the specific location P1 and P2.

  3. Export your OpenTelemetry traces to ElasticSearch.

  4. Use an ElasticSearch query to search for Trace T1 and find the span representing location P1.

  5. Use the start and end timestamps of the span to calculate the time interval.

  6. Use another ElasticSearch query to search for Trace T2 and find the span representing location P2.

  7. Use the start and end timestamps of the span to calculate the time interval.

  8. Compare the two time intervals to get the overall time interval between location P1 on Trace T1 and location P2 on Trace T2.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-04-05 11:00:00 +0000

Seen: 7 times

Last updated: Aug 31 '22