Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Proposal: Separate Layer for Context Propagation #66

Merged
merged 79 commits into from
Jan 18, 2020

Conversation

tedsuo
Copy link
Contributor

@tedsuo tedsuo commented Nov 15, 2019

This proposal provides a high level description of OpenTelemetry, which shows how context propagation, observability, and baggage could be cleanly decoupled.

This is a second draft of the OTEP originally submitted in #42. It is resubmitted as a new PR, as much has changed. Link to a readable version of the latest draft can be found here.

Changes from the first draft:

  • Use language from aspect-oriented programming to describe cross-cutting concerns (the term "distributed application" was too confusing).
  • Removed detailed descriptions of the observability APIs, they were too distracting.
  • Focused less on correlations, as this OTEP does not intent to define the details of that API.
  • Added links to prototypes in four languages: Go, Java, Python, and Ruby.
  • Added examples in pseudocode.
  • General cleanup in response to feedback.

A couple of notes on terminology:

In this doc, I refer to TagMap as Correlations, and Tags as Labels. There can be a separate discussion for what to name this, but since Tag has repeatedly come up as a contentious name for this feature, I tried to use something "similar but different" to avoid this debate. I actually feel that the term correlation contains a more accurate meaning than tag, so it may be an improvement.

The goal with this spec proposal is to find a way to describe these public APIs as simple as possible, but no simpler. This description is meant to be high level, but not inaccurate. If a detail appears to be missing, it is intentional - presumably handled at the SDK layer. Possibly, it should be present. Please review this document with this in mind.

tedsuo and others added 30 commits September 9, 2019 18:04
Co-Authored-By: Christian Neumüller <[email protected]>
Co-Authored-By: Reiley Yang <[email protected]>
Co-Authored-By: Reiley Yang <[email protected]>
Co-Authored-By: Reiley Yang <[email protected]>
* Remove registry concept
* Add explicit chaining
@kbrockhoff
Copy link
Member

I think the overall concept of this proposal is great. Providing a universal, reliable mechanism for transmitting context throughout a system could make OpenTelemetry attractive to development teams currently not using an observability framework.

@tedsuo
Copy link
Contributor Author

tedsuo commented Jan 17, 2020

@bogdandrutu @SergeyKanzhelev since this has approval, and is primarily meant to describe the high-level goals, I would like to go ahead and merge it. We can continue discussion about the API details in spec PRs, based on the prototypes.

Copy link
Member

@c24t c24t left a comment

Choose a reason for hiding this comment

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

LGTM to move this forward to specs.

@tedsuo tedsuo merged commit 322da45 into open-telemetry:master Jan 18, 2020
@tedsuo tedsuo deleted the context-prop-2 branch January 18, 2020 00:10
carlosalberto pushed a commit to carlosalberto/oteps that referenced this pull request Oct 23, 2024
* Proposal to separate context propagation from observability

* cleanup description for Extract

* commas

Co-Authored-By: Christian Neumüller <[email protected]>

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* RFC proposal: A layered approach to data formats

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* Capitalization

Co-Authored-By: Reiley Yang <[email protected]>

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* CleanBaggage -> ClearBaggage

* move function descriptions to new line

* Add Optional subheader

* cleanup rough edits

* clean up advice on pre-existing context implementations

* Better context descriptions

* remove data format file

* remove git diff message

* improved code sytnax

* stop stuttering

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Reiley Yang <[email protected]>

* spacing

* Refine propagation

* Remove registry concept
* Add explicit chaining

* Add RFC ID number from PR

* remove RFC status line

* slight calrification for GetHTTPExtractor

* add global propagators

* Clean up motivation

* Clean up explanbation intro

* Clarify context types

* Fix ChainHTTPInjector and ChainHTTPExtractor

* typo

* Reference Trace-Context, not just traceparent

* Bagge context cleanup

* stronger language around context access

* Update text/0042-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* clean up tradeoffs

* v2.0 of this OTEP

* Update OTEP number for new submission

* remove image file for unused diagram

* Update text/0066-separate-context-propagation.md

Co-Authored-By: alrex <[email protected]>

* Link to Erlang prototype

* whitespace

* ToC

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tristan Sloughter <[email protected]>

* more context examples

* typo

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yusuke Tsutsumi <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Yuri Shkuro <[email protected]>

* Renamed aspects to "cross-cutting concerns"

* injectors are a list instead of chained

* clean up API representation

* cleanup examples

* typo

* remove correlations from proposal

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yuri Shkuro <[email protected]>

* remove the term "chaining"

* remove the terms  upstream and downstream

* improved architecturural explanation

* whitespace

* update link to Go prototype

* Removed the Baggage API; replaced it with Correlations.

* Fix the intro paragraph for Correlations

* git merges ate my homework
* some sentences were out of order

* Clarify that correltions must be propagated

* Clarify risks

* removed extra header

* Clarify definition of aspect-oriented programming

* Fix RemoveCorrelation

* Spelling

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Sergey Kanzhelev <[email protected]>

* Clarifying details

* Update python prototype

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Clarify that the APIs and example code are not meant as final.  Add C# prototype

* Inject returns headers, not context

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Mauricio Vásquez <[email protected]>

* spelling

* remove spurious go comment

Co-authored-by: Christian Neumüller <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: alrex <[email protected]>
Co-authored-by: Tristan Sloughter <[email protected]>
Co-authored-by: Yusuke Tsutsumi <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mauricio Vásquez <[email protected]>
carlosalberto pushed a commit to carlosalberto/oteps that referenced this pull request Oct 23, 2024
* Proposal to separate context propagation from observability

* cleanup description for Extract

* commas

Co-Authored-By: Christian Neumüller <[email protected]>

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* RFC proposal: A layered approach to data formats

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* Capitalization

Co-Authored-By: Reiley Yang <[email protected]>

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* CleanBaggage -> ClearBaggage

* move function descriptions to new line

* Add Optional subheader

* cleanup rough edits

* clean up advice on pre-existing context implementations

* Better context descriptions

* remove data format file

* remove git diff message

* improved code sytnax

* stop stuttering

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Reiley Yang <[email protected]>

* spacing

* Refine propagation

* Remove registry concept
* Add explicit chaining

* Add RFC ID number from PR

* remove RFC status line

* slight calrification for GetHTTPExtractor

* add global propagators

* Clean up motivation

* Clean up explanbation intro

* Clarify context types

* Fix ChainHTTPInjector and ChainHTTPExtractor

* typo

* Reference Trace-Context, not just traceparent

* Bagge context cleanup

* stronger language around context access

* Update text/0042-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* clean up tradeoffs

* v2.0 of this OTEP

* Update OTEP number for new submission

* remove image file for unused diagram

* Update text/0066-separate-context-propagation.md

Co-Authored-By: alrex <[email protected]>

* Link to Erlang prototype

* whitespace

* ToC

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tristan Sloughter <[email protected]>

* more context examples

* typo

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yusuke Tsutsumi <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Yuri Shkuro <[email protected]>

* Renamed aspects to "cross-cutting concerns"

* injectors are a list instead of chained

* clean up API representation

* cleanup examples

* typo

* remove correlations from proposal

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yuri Shkuro <[email protected]>

* remove the term "chaining"

* remove the terms  upstream and downstream

* improved architecturural explanation

* whitespace

* update link to Go prototype

* Removed the Baggage API; replaced it with Correlations.

* Fix the intro paragraph for Correlations

* git merges ate my homework
* some sentences were out of order

* Clarify that correltions must be propagated

* Clarify risks

* removed extra header

* Clarify definition of aspect-oriented programming

* Fix RemoveCorrelation

* Spelling

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Sergey Kanzhelev <[email protected]>

* Clarifying details

* Update python prototype

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Clarify that the APIs and example code are not meant as final.  Add C# prototype

* Inject returns headers, not context

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Mauricio Vásquez <[email protected]>

* spelling

* remove spurious go comment

Co-authored-by: Christian Neumüller <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: alrex <[email protected]>
Co-authored-by: Tristan Sloughter <[email protected]>
Co-authored-by: Yusuke Tsutsumi <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mauricio Vásquez <[email protected]>
carlosalberto pushed a commit to carlosalberto/oteps that referenced this pull request Oct 30, 2024
* Proposal to separate context propagation from observability

* cleanup description for Extract

* commas

Co-Authored-By: Christian Neumüller <[email protected]>

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* RFC proposal: A layered approach to data formats

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* Capitalization

Co-Authored-By: Reiley Yang <[email protected]>

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* CleanBaggage -> ClearBaggage

* move function descriptions to new line

* Add Optional subheader

* cleanup rough edits

* clean up advice on pre-existing context implementations

* Better context descriptions

* remove data format file

* remove git diff message

* improved code sytnax

* stop stuttering

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Reiley Yang <[email protected]>

* spacing

* Refine propagation

* Remove registry concept
* Add explicit chaining

* Add RFC ID number from PR

* remove RFC status line

* slight calrification for GetHTTPExtractor

* add global propagators

* Clean up motivation

* Clean up explanbation intro

* Clarify context types

* Fix ChainHTTPInjector and ChainHTTPExtractor

* typo

* Reference Trace-Context, not just traceparent

* Bagge context cleanup

* stronger language around context access

* Update text/0042-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* clean up tradeoffs

* v2.0 of this OTEP

* Update OTEP number for new submission

* remove image file for unused diagram

* Update text/0066-separate-context-propagation.md

Co-Authored-By: alrex <[email protected]>

* Link to Erlang prototype

* whitespace

* ToC

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tristan Sloughter <[email protected]>

* more context examples

* typo

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yusuke Tsutsumi <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Yuri Shkuro <[email protected]>

* Renamed aspects to "cross-cutting concerns"

* injectors are a list instead of chained

* clean up API representation

* cleanup examples

* typo

* remove correlations from proposal

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yuri Shkuro <[email protected]>

* remove the term "chaining"

* remove the terms  upstream and downstream

* improved architecturural explanation

* whitespace

* update link to Go prototype

* Removed the Baggage API; replaced it with Correlations.

* Fix the intro paragraph for Correlations

* git merges ate my homework
* some sentences were out of order

* Clarify that correltions must be propagated

* Clarify risks

* removed extra header

* Clarify definition of aspect-oriented programming

* Fix RemoveCorrelation

* Spelling

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Sergey Kanzhelev <[email protected]>

* Clarifying details

* Update python prototype

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Clarify that the APIs and example code are not meant as final.  Add C# prototype

* Inject returns headers, not context

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Mauricio Vásquez <[email protected]>

* spelling

* remove spurious go comment

Co-authored-by: Christian Neumüller <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: alrex <[email protected]>
Co-authored-by: Tristan Sloughter <[email protected]>
Co-authored-by: Yusuke Tsutsumi <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mauricio Vásquez <[email protected]>
carlosalberto pushed a commit to open-telemetry/opentelemetry-specification that referenced this pull request Nov 8, 2024
…s#66)

* Proposal to separate context propagation from observability

* cleanup description for Extract

* commas

Co-Authored-By: Christian Neumüller <[email protected]>

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* RFC proposal: A layered approach to data formats

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* Capitalization

Co-Authored-By: Reiley Yang <[email protected]>

* whitespace

Co-Authored-By: Reiley Yang <[email protected]>

* CleanBaggage -> ClearBaggage

* move function descriptions to new line

* Add Optional subheader

* cleanup rough edits

* clean up advice on pre-existing context implementations

* Better context descriptions

* remove data format file

* remove git diff message

* improved code sytnax

* stop stuttering

* Update text/0000-separate-context-propagation.md

Co-Authored-By: Reiley Yang <[email protected]>

* spacing

* Refine propagation

* Remove registry concept
* Add explicit chaining

* Add RFC ID number from PR

* remove RFC status line

* slight calrification for GetHTTPExtractor

* add global propagators

* Clean up motivation

* Clean up explanbation intro

* Clarify context types

* Fix ChainHTTPInjector and ChainHTTPExtractor

* typo

* Reference Trace-Context, not just traceparent

* Bagge context cleanup

* stronger language around context access

* Update text/0042-separate-context-propagation.md

Co-Authored-By: Christian Neumüller <[email protected]>

* clean up tradeoffs

* v2.0 of this OTEP

* Update OTEP number for new submission

* remove image file for unused diagram

* Update text/0066-separate-context-propagation.md

Co-Authored-By: alrex <[email protected]>

* Link to Erlang prototype

* whitespace

* ToC

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tristan Sloughter <[email protected]>

* more context examples

* typo

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yusuke Tsutsumi <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Yuri Shkuro <[email protected]>

* Renamed aspects to "cross-cutting concerns"

* injectors are a list instead of chained

* clean up API representation

* cleanup examples

* typo

* remove correlations from proposal

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Yuri Shkuro <[email protected]>

* remove the term "chaining"

* remove the terms  upstream and downstream

* improved architecturural explanation

* whitespace

* update link to Go prototype

* Removed the Baggage API; replaced it with Correlations.

* Fix the intro paragraph for Correlations

* git merges ate my homework
* some sentences were out of order

* Clarify that correltions must be propagated

* Clarify risks

* removed extra header

* Clarify definition of aspect-oriented programming

* Fix RemoveCorrelation

* Spelling

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Sergey Kanzhelev <[email protected]>

* Clarifying details

* Update python prototype

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Tyler Yahn <[email protected]>

* Clarify that the APIs and example code are not meant as final.  Add C# prototype

* Inject returns headers, not context

* Update text/0066-separate-context-propagation.md

Co-Authored-By: Mauricio Vásquez <[email protected]>

* spelling

* remove spurious go comment

Co-authored-by: Christian Neumüller <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: alrex <[email protected]>
Co-authored-by: Tristan Sloughter <[email protected]>
Co-authored-by: Yusuke Tsutsumi <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mauricio Vásquez <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.