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

Add service.instance.id for all resource detectors #2065

Closed
4 tasks
maryliag opened this issue Mar 28, 2024 · 1 comment
Closed
4 tasks

Add service.instance.id for all resource detectors #2065

maryliag opened this issue Mar 28, 2024 · 1 comment

Comments

@maryliag
Copy link
Contributor

maryliag commented Mar 28, 2024

Is your feature request related to a problem? Please describe

service.instance.id is a recommended attribute, and some resource detectors are already setting the value, but it's still missing from some.

Describe the solution you'd like to see

Set service.instance.id for the missing cloud providers detectors:

  • Alibaba
  • AWS
  • Azure
  • GCP

Additional context

I've started the work on this

@maryliag maryliag changed the title Add service.instance.id for all cloud resource detectors Add service.instance.id for all resource detectors Mar 29, 2024
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…e detection

`service.instance.id` is a recommended value. This commit adds it to the alibaba resource detector.
It uses the `serial-number` value from the instance metadata, which has the description:
```
The serial number of the instance.
Example: 4acd2b47-b328-4762-852f-998****
```
Which alignes with the definition for `service.instance.id` from [here](open-telemetry/semantic-conventions#312)

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…e detection

`service.instance.id` is a recommended value. This commit adds it to the alibaba resource detector.
It uses the `serial-number` value from the instance metadata, which has the description:
```
The serial number of the instance.
Example: 4acd2b47-b328-4762-852f-998****
```
Which alignes with the definition for `service.instance.id` from [here](open-telemetry/semantic-conventions#312)

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…ction

`service.instance.id` is a recommended value.
Implements `service.instance.id` from [here](open-telemetry/semantic-conventions#312). Uses `randomUUID` as is similar implemented
on other languages, such as the Java SDK.

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…e detection

`service.instance.id` is a recommended value. This commit adds it to the alibaba resource detector.
It uses the `serial-number` value from the instance metadata, which has the description:
```
The serial number of the instance.
Example: 4acd2b47-b328-4762-852f-998****
```
Which alignes with the definition for `service.instance.id` from [here](open-telemetry/semantic-conventions#312)

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…e detection

`service.instance.id` is a recommended value. This commit adds it to the alibaba resource detector.
It uses the `serial-number` value from the instance metadata, which has the description:
```
The serial number of the instance.
Example: 4acd2b47-b328-4762-852f-998****
```
Which alignes with the definition for `service.instance.id` from [here](open-telemetry/semantic-conventions#312)

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
maryliag added a commit to maryliag/opentelemetry-js-contrib that referenced this issue Apr 3, 2024
…ction

`service.instance.id` is a recommended value.
Implements `service.instance.id` from [here](open-telemetry/semantic-conventions#312). Uses `randomUUID` as is similar implemented
on other languages, such as the Java SDK.

Part Of open-telemetry#2065

Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
@maryliag
Copy link
Contributor Author

maryliag commented Apr 4, 2024

Closing this, because I couldn't find something better than random for all of them, so instead the SDK itself should be the one setting the value as random, when nothing else is set.

@maryliag maryliag closed this as completed Apr 4, 2024
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

No branches or pull requests

1 participant