Skip to content

Add support for partial success in an OTLP export response [2]#2696

Merged
jmacd merged 10 commits intoopen-telemetry:mainfrom
dynatrace-oss-contrib:feature/otlp-partial-success-2
Aug 2, 2022
Merged

Add support for partial success in an OTLP export response [2]#2696
jmacd merged 10 commits intoopen-telemetry:mainfrom
dynatrace-oss-contrib:feature/otlp-partial-success-2

Conversation

@joaopgrassi
Copy link
Copy Markdown
Member

@joaopgrassi joaopgrassi commented Jul 26, 2022

Fixes #2454, Closes #2636

This is a second take on #2636. It's basically the same changes, except it uses rejected_<signal> semantics instead of accepted_<signal> as discussed in the PRs and in the spec meeting on 7/19/2022.

Changes

This PR adds guidance around how servers can signal a partial success to clients. It indicates in which situations servers can respond with a partial success and how the fields introduced in opentelemetry-proto #414 should be populated.

I also refactored the OTLP/gRPC Response section a bit, to make it consistent with the HTTP one. The main inconsistency I found was that the gRPC section did not have clear sections for Success, Failure as the HTTP does. Now both share the same sections and the wording should be consistent between the two.

Related
Proto change: open-telemetry/opentelemetry-proto#414

cc @tigrannajaryan @jmacd @jsuereth @jack-berg @reyang @yurishkuro

@joaopgrassi joaopgrassi requested review from a team July 26, 2022 11:18
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md
Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
@joaopgrassi
Copy link
Copy Markdown
Member Author

Hi all, just an update on the current state of this PR:

All discussions are solved and I think we should be good to go!

The last thing to be solved (here) was around using the partial success to convey warnings/suggestions to clients when ALL the data was accepted.

This is useful, for example, when the server did some massaging on the data (character normalization) and wants to send a "warning" to clients that this happened. Another usage would be to signal suggestions to clients, e.g. "hey you are sending the data via a less efficient/secure way, you should do xyz" like @reyang suggested here.

Let me know your thoughts.

Comment thread specification/protocol/otlp.md Outdated
Comment thread specification/protocol/otlp.md Outdated
@jmacd
Copy link
Copy Markdown
Contributor

jmacd commented Aug 2, 2022

@joaopgrassi please rebase (or otherwise resolve "This branch is out-of-date with the base branch")?

@joaopgrassi
Copy link
Copy Markdown
Member Author

@jmacd rebased and also allowed edits from maintainers on the branch, in case it needs again and I'm away.

@jmacd jmacd merged commit dbea54d into open-telemetry:main Aug 2, 2022
@arminru arminru deleted the feature/otlp-partial-success-2 branch August 2, 2022 16:09
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
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.

Add ability for OTLP response to signal partial acceptance of data

8 participants