-
Notifications
You must be signed in to change notification settings - Fork 564
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
use faas.instance instead of faas.id in gcp detector #4198
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4198 +/- ##
=====================================
Coverage 79.4% 79.4%
=====================================
Files 166 166
Lines 10363 10363
=====================================
+ Hits 8230 8233 +3
+ Misses 1998 1996 -2
+ Partials 135 134 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this is a stable detector, is there something we need to do according to the semconv world to provide backward compatibility here?
I think this would be covered by https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md#semantic-conventions-stability. It says:
That would seem to imply we are required to publish a schema file with this detector describing the change. But then it also contradicts that with:
It does say we are bound by our VERSIONING.md file in otel-go. The otel-go versioning policy doesn't seem to say anything about detectors except that they are a module, and follow semver. We shouldn't have made this package stable given it implements the detection experimental semantic conventions, but that ship sailed... Options I can think of:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving forward with option (4) based on SIG discussion
Discussed in the Sig meeting. We will go with option 4. We need to update to not break users: #4261 (comment). |
What's delaying the merge of this PR at this point? |
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Context: GoogleCloudPlatform/opentelemetry-operations-go#679
faas.id
is being removed in newer versions of the semantic conventions.faas.id
is meant to be the URI of the google cloud resource (e.g.projects/my-project/locations/us-central1/functions/my-function
), but we were using it to store the instance id.The correct resource attribute to use in this case is the
faas.instance
attribute, which has the description:That matches what the instance ID is in GAE, Google Cloud Run, and Google Cloud Functions.
Since
faas.id
has been removed, we will need to undergo a breaking change regardless. It is probably better to do so now, rather than wait until contrib is updated.