Skip to content

feat(bigquery): added error attributes to span tracing#12115

Open
ldetmer wants to merge 7 commits intomainfrom
error-attr-span
Open

feat(bigquery): added error attributes to span tracing#12115
ldetmer wants to merge 7 commits intomainfrom
error-attr-span

Conversation

@ldetmer
Copy link
Contributor

@ldetmer ldetmer commented Mar 19, 2026

This adds capture of error attributes to BigQuery span tracing.

Example with GoogleJsonResponseException
Example with exception
see note here about exception.type mapping to error/name

@ldetmer ldetmer marked this pull request as ready for review March 19, 2026 17:44
@ldetmer ldetmer requested review from a team as code owners March 19, 2026 17:44
Comment on lines +104 to +105
span.setAttribute(
BigQueryTelemetryTracer.STATUS_MESSAGE, errorResponse.getDetails().getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

Per @westarle's comment in googleapis/java-bigquery#4126 (comment), I'm thinking we would need to document this in the enablement site, as this attribute is not part of OpenTelemetry semconv. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, thanks for pointing that out, let me look into how we do that and will update comment

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