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

Contextual tracer from multi-tenancy #769

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Contextual tracer from multi-tenancy #769

merged 2 commits into from
Oct 18, 2023

Conversation

xnyo
Copy link
Member

@xnyo xnyo commented Oct 13, 2023

What this PR does / why we need it:

Adds tenant_id span attribute to all spans created by the default tracer.

Which issue(s) this PR fixes:

Fixes to #724

Special notes for your reviewer:

@xnyo xnyo self-assigned this Oct 13, 2023
Copy link
Member

@marefr marefr left a comment

Choose a reason for hiding this comment

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

LGTM

@xnyo xnyo changed the title POC: WIP: Contextual tracer from multi-tenancy Contextual tracer from multi-tenancy Oct 17, 2023
@xnyo xnyo marked this pull request as ready for review October 17, 2023 11:27
@xnyo xnyo requested a review from a team as a code owner October 17, 2023 11:27
@xnyo xnyo requested review from wbrowne, andresmgot and oshirohugo and removed request for a team October 17, 2023 11:27
)

const (
attributeNameTenantID = "tenant_id"
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yeah fair 👍 We can update that in the runner side, and maybe keep stackID/stackId for the logs

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

👍

@xnyo xnyo added the enhancement New feature or request label Oct 18, 2023
@xnyo xnyo enabled auto-merge (squash) October 18, 2023 12:07
@xnyo xnyo disabled auto-merge October 18, 2023 12:07
@xnyo xnyo enabled auto-merge (squash) October 18, 2023 12:08
@xnyo xnyo merged commit fa2e978 into main Oct 18, 2023
2 checks passed
@xnyo xnyo deleted the giuseppe/tracing-tenant-id branch October 18, 2023 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants