Skip to content

Discussion: Regression and Process Improvements (Ref: PR #389) #441

@sinhasubham

Description

@sinhasubham

Hi team,

I'm opening this issue to discuss a recent regression that impacted clients (like google-cloud-spanner) and to explore how we can improve our processes to prevent similar breaking changes in the future.

Context
The Change: PR #389 ("Cleanup the resource detector code a bit") was merged, which refactored the GoogleCloudResourceDetector and deprecated the old one.

The Bug: This refactor appears to have introduced a TypeError. The new resource detector's code was attempting to access attributes on an OpenTelemetry Resource object using dictionary-style access (e.g., resource['key']) instead of the correct attribute-style access (e.g., resource.attributes['key']).

The Impact: This regression introduced a runtime TypeError that broke downstream clients. For example, here are the google-cloud-spanner library reported failures: https://github.com/googleapis/python-spanner/issues.

The Fix: A subsequent PR was merged (fix PR) that correctly changed the access pattern back to resource.attributes['key'], resolving the TypeError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions