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

Manually instrument backend.Backend #13268

Merged
merged 13 commits into from
Jun 11, 2022
Merged

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jun 7, 2022

Adds a trace.Tracer to the backend.Reporter
wrapper so that all bakend.Backend implementations
can be traced. Further instrumentation of each specific
backend will be added at a later date to see how long
each sql query, or call to dynamo/etcd took within
each backend operation.

#12241

Adds a `trace.Tracer` to the `backend.Reporter`
wrapper so that all `bakend.Backend` implementations
can be traced. Further instrumentation of each specific
backend will be added at a later date to see how long
each sql query, or call to dynamo/etcd took within
each backend operation.
@github-actions github-actions bot requested review from atburke and nklaassen June 7, 2022 22:09
attribute.String("name", watch.Name),
),
)
defer span.End()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure how tracing fits in with watchers, as they are long running background tasks, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is only tracing the creation of a watcher. I was on the fence about including this as I wasn't sure how useful it would really be. But, I figured it was better to have it and not need it, than to not have it and wish we did.

@rosstimothy rosstimothy requested a review from zmb3 June 9, 2022 15:54
@rosstimothy rosstimothy enabled auto-merge (squash) June 10, 2022 14:21
@rosstimothy rosstimothy merged commit 652e089 into master Jun 11, 2022
rosstimothy added a commit that referenced this pull request Jul 5, 2022
Adds a `trace.Tracer` to the `backend.Reporter`
wrapper so that all `bakend.Backend` implementations
can be traced. Further instrumentation of each specific
backend will be added at a later date to see how long
each sql query, or call to dynamo/etcd took within
each backend operation.

#12241
@rosstimothy rosstimothy deleted the tross/backend_instrumentation branch July 6, 2022 21:21
reedloden pushed a commit that referenced this pull request Aug 15, 2022
Manually instrument `backend.Backend` (#13268)

Adds a `trace.Tracer` to the `backend.Reporter`
wrapper so that all `bakend.Backend` implementations
can be traced. Further instrumentation of each specific
backend will be added at a later date to see how long
each sql query, or call to dynamo/etcd took within
each backend operation.

#12241
hydridity pushed a commit to hydridity/teleport that referenced this pull request Aug 26, 2022
Manually instrument `backend.Backend` (gravitational#13268)

Adds a `trace.Tracer` to the `backend.Reporter`
wrapper so that all `bakend.Backend` implementations
can be traced. Further instrumentation of each specific
backend will be added at a later date to see how long
each sql query, or call to dynamo/etcd took within
each backend operation.

gravitational#12241
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