Skip to content

Docs: docs to cover x-ot-span-context header#521

Merged
RomanDzhabarov merged 4 commits intomasterfrom
docs_on_span_context
Mar 2, 2017
Merged

Docs: docs to cover x-ot-span-context header#521
RomanDzhabarov merged 4 commits intomasterfrom
docs_on_span_context

Conversation

@RomanDzhabarov
Copy link
Copy Markdown
Member

No description provided.

_________________

The *x-ot-span-context* HTTP header is used by Envoy to establish proper parent-child relationships
between tracing spans. Envoy relies on data from *x-ot-span-context* header to extract the parent
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data from the x-ot-span-context

The *x-ot-span-context* HTTP header is used by Envoy to establish proper parent-child relationships
between tracing spans. Envoy relies on data from *x-ot-span-context* header to extract the parent
context for the current span. For example, an egress span is a child of ingress span (if there was an ingress call).
Envoy injects the *x-ot-span-context* header on ingress call and passes it to the local service and
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this sentence is too long. I would say:

Envoy injects the x-ot-span-context header on ingress requests and forwards it in the request to the local service. Envoy relies on the application to propagate x-ot-span-context on the egress call to an upstream.

See more on tracing :ref:`here <arch_overview_tracing>`.
between tracing spans. Envoy relies on data from the *x-ot-span-context* header to extract the parent
context for the current span. For example, an egress span is a child of an ingress
span (if there was the ingress span). Envoy injects the *x-ot-span-context* header on ingress requests and
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there was an ingress span

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "the" as I've already mentioned that span in "child of an ingress span"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but if there was ... is not correct with the. You could say (if the ingress span was present). I think the likely explanation for the phrase not working with the, is that the phrase expresses ambiguity of existence even though the object is explicit in the rest of the sentence.

Copy link
Copy Markdown
Member

@junr03 junr03 Feb 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I am not a linguist, so my favored explanation is that it doesn't sound right with the :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll redo to avoid confusion :)


.. _config_http_conn_man_headers_x-ot-span-context:

x-ot-span-context
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth documenting that the actual format of this is base64 "binary OT carrier?" This is quite LS specific currently. I guess I would probably mention that this is LS specific and when Zipkin support is added we can update the docs to cover the differences between the 2 providers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, it def makes sense and it's LS specific

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@RomanDzhabarov RomanDzhabarov merged commit 59e09f9 into master Mar 2, 2017
@mattklein123 mattklein123 deleted the docs_on_span_context branch March 4, 2017 03:07
lizan pushed a commit to lizan/envoy that referenced this pull request Jun 9, 2020
envoyproxy#521)

* Move control of the in-VM context lifecycle to the host specific code.

Signed-off-by: John Plevyak <jplevyak@gmail.com>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Updates to utilize the options exposed in envoyproxy/envoy-mobile#520 to prevent unnecessarily buffering requests that will never be retried. This can be especially useful for preventing buffering of long-lived [gRPC] streams, for example.

We discussed having a full fledged platform level struct to parallel `envoy_stream_options`, but decided that while we only expose one option we can leave the API as a boolean argument.

Matching Android functionality is being tracked here: envoyproxy/envoy-mobile#524.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Description: android parallel to #521.
Risk Level: low - matching ios functionality
Testing: unit tests

Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Updates to utilize the options exposed in envoyproxy/envoy-mobile#520 to prevent unnecessarily buffering requests that will never be retried. This can be especially useful for preventing buffering of long-lived [gRPC] streams, for example.

We discussed having a full fledged platform level struct to parallel `envoy_stream_options`, but decided that while we only expose one option we can leave the API as a boolean argument.

Matching Android functionality is being tracked here: envoyproxy/envoy-mobile#524.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Description: android parallel to #521.
Risk Level: low - matching ios functionality
Testing: unit tests

Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants