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

airbyte-server: tag span of additional OAuth routes #20610

Merged

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Dec 16, 2022

What

I forgot to add tags from additional OAuth routes after this initial PR.

How

Tag the root span with definition and workspace id on complete_oauth + get_consent_url for sources and destinations.

@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/server labels Dec 16, 2022
@alafanechere alafanechere marked this pull request as ready for review December 16, 2022 21:13
@alafanechere alafanechere requested review from evantahler and a team December 16, 2022 21:13
Comment on lines +167 to +168
final Map<String, Object> traceTags = Map.of(WORKSPACE_ID_KEY, completeSourceOauthRequest.getWorkspaceId(), SOURCE_DEFINITION_ID_KEY,
completeSourceOauthRequest.getSourceDefinitionId());
Copy link
Contributor

Choose a reason for hiding this comment

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

should we have some sort of helper like getOAuthTraceTags or getDestinationTraceTags to make sure they're consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll definitely consider more helper if we trace more things in the future 😄

@alafanechere alafanechere temporarily deployed to more-secrets December 16, 2022 21:24 — with GitHub Actions Inactive
@alafanechere alafanechere temporarily deployed to more-secrets December 16, 2022 21:24 — with GitHub Actions Inactive
@alafanechere alafanechere merged commit 8af748e into master Dec 16, 2022
@alafanechere alafanechere deleted the augustin/airbyte-server/trace-oauth-error-on-destinations branch December 16, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants