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

Use a unique target for request spans #615

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

jamesbornholt
Copy link
Member

Description of change

These spans are emitted at a high level (WARN), which is annoying for clients that want to use an adapter to the log facade, where tracing will emit an event whenever a span is created. To help these clients filter out these span events, let's use a unique target for them.

I verified that log messages for requests are still emitting this span metadata when Mountpoint requests log, so this only affects clients that aren't using tracing.

Does this change impact existing behavior?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

These spans are emitted at a high level (WARN), which is annoying for
clients that want to use an adapter to the `log` facade, where `tracing`
will emit an event whenever a span is created. To help these clients
filter out these span events, let's use a unique target for them.

I verified that log messages for requests are still emitting this span
metadata when Mountpoint requests log, so this only affects clients that
aren't using `tracing`.

Signed-off-by: James Bornholt <[email protected]>
@jamesbornholt jamesbornholt temporarily deployed to PR integration tests November 20, 2023 16:41 — with GitHub Actions Inactive
@jamesbornholt jamesbornholt temporarily deployed to PR integration tests November 20, 2023 16:41 — with GitHub Actions Inactive
@jamesbornholt jamesbornholt temporarily deployed to PR integration tests November 20, 2023 16:41 — with GitHub Actions Inactive
@jamesbornholt jamesbornholt temporarily deployed to PR integration tests November 20, 2023 16:41 — with GitHub Actions Inactive
@jamesbornholt jamesbornholt marked this pull request as ready for review November 20, 2023 17:43
Copy link
Contributor

@passaro passaro left a comment

Choose a reason for hiding this comment

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

LGTM

@jamesbornholt jamesbornholt added this pull request to the merge queue Nov 21, 2023
Merged via the queue into awslabs:main with commit 3d9b8a9 Nov 21, 2023
18 checks passed
@jamesbornholt jamesbornholt deleted the tracing-target branch November 21, 2023 15:22
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.

2 participants