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

POR-1756: add telemetry to pr creation endpoint #3598

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

jose-fully-ported
Copy link
Contributor

What does this PR do?

I'm submitting calls to the api to create a PR for a repo and getting errors. At the moment, this endpoint doesn't show any metrics in honeycomb, making it difficult to debug. This PR adds some telemetry so we can see where exactly things are failing.

Comment on lines +92 to +94
err = fmt.Errorf("error generating secret: %w", err)
err := telemetry.Error(ctx, span, err, err.Error())
c.HandleAPIError(w, r, apierrors.NewErrInternal(err))

Choose a reason for hiding this comment

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

same thing here, also prefer passing all error messages to client and obfuscating if necessary on client-side

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above.

At the moment, this endpoint doesn't show any metrics in honeycomb, making it difficult to debug.

Refs POR-1756
@jose-fully-ported jose-fully-ported force-pushed the jose-fully-ported/telemetry-for-prs branch from 0b96763 to 7041cd6 Compare September 19, 2023 16:10
@jose-fully-ported jose-fully-ported enabled auto-merge (squash) September 19, 2023 16:11
@jose-fully-ported jose-fully-ported merged commit af3ef69 into master Sep 19, 2023
8 checks passed
@jose-fully-ported jose-fully-ported deleted the jose-fully-ported/telemetry-for-prs branch September 19, 2023 16:17
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