Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent forwarding traces to servers which don't support tracing #14281

Merged
merged 5 commits into from
Jul 11, 2022

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jul 9, 2022

Tracing clients can detect if a server doesn't support tracing by
checking for a trace.NotImplented error in response to an
UploadTraces request. Since the grpc.Conn used is
to be bound to that server for the duration of its life
it doesn't make sense to keep trying to forward traces. Instead
the client now remembers that a server doesn't support tracing
and will silently drop any spans.

Part of #12241

Tracing clients can detect if a server doesn't support tracing by
checking for a trace.NotImplented error in response to an
UploadTraces request. Since the grpc.Conn used by the client is
likely to be bound to that server for the duration of its life
it doesn't make sense to keep trying to forward traces. Instead
the client now remembers that a server doesn't support tracing
and will drop any spans.

Part of #12241
@rosstimothy rosstimothy marked this pull request as ready for review July 11, 2022 12:24
@github-actions github-actions bot requested review from espadolini and Tener July 11, 2022 12:24
Copy link
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

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

Might be worth doublechecking that anything that's using *tracing.Client is not using it across multiple reconnects and over time (potentially Teleport Connect?)

api/observability/tracing/client.go Outdated Show resolved Hide resolved
api/observability/tracing/client.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy merged commit ad1d9b1 into master Jul 11, 2022
@github-actions
Copy link

@rosstimothy See the table below for backport results.

Branch Result
branch/v10 Create PR

logand22 pushed a commit that referenced this pull request Aug 19, 2022
…#15480)

Prevent forwarding traces to servers which don't support tracing (#14281)

* Prevent forwarding traces to servers which don't support tracing

Tracing clients can detect if a server doesn't support tracing by
checking for a trace.NotImplented error in response to an
UploadTraces request. Since the grpc.Conn used by the client is
likely to be bound to that server for the duration of its life
it doesn't make sense to keep trying to forward traces. Instead
the client now remembers that a server doesn't support tracing
and will drop any spans.

Part of #12241
hydridity pushed a commit to hydridity/teleport that referenced this pull request Aug 26, 2022
…gravitational#15479)

Prevent forwarding traces to servers which don't support tracing (gravitational#14281)

* Prevent forwarding traces to servers which don't support tracing

Tracing clients can detect if a server doesn't support tracing by
checking for a trace.NotImplented error in response to an
UploadTraces request. Since the grpc.Conn used by the client is
likely to be bound to that server for the duration of its life
it doesn't make sense to keep trying to forward traces. Instead
the client now remembers that a server doesn't support tracing
and will drop any spans.

Part of gravitational#12241
@zmb3 zmb3 deleted the tross/trace_client_not_implemented branch September 9, 2022 18:55
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