You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use this changelog template to create an entry for release notes.
2
+
#
3
+
# If your change doesn't affect end users you should instead start
4
+
# your pull request title with [chore] or use the "Skip Changelog" label.
5
+
6
+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
7
+
change_type: enhancement
8
+
9
+
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
10
+
component: service
11
+
12
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
13
+
note: "`service.peer.name` and `service.peer.namespace` have been introduced as the replacement for `peer.service` to describe remote services that use both a name and a namespace."
14
+
15
+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
16
+
# The values here must be integers.
17
+
issues: [2945]
18
+
19
+
# (Optional) One or more lines of additional information to render under the primary note.
20
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
21
+
# Use pipe (|) for multiline entries.
22
+
subtext: The `peer.service` attribute could not fully represent the `service.{name|namespace}` resource attributes; `service.peer.name` and `service.peer.namespace` provide a more complete representation.
@@ -349,7 +351,32 @@ For `Unix` and `pipe`, since the connection goes over the file system instead of
349
351
350
352
## General remote service attributes
351
353
352
-
This attribute may be used for any operation that accesses some remote service.
354
+
### Service Peer
355
+
356
+
Attributes of the `service.peer.*` namespace may also be used for any operation that accesses some remote service.
357
+
Users can define what the name of a service is based on their particular semantics in their distributed system.
358
+
Instrumentations SHOULD provide a way for users to configure this name.
359
+
360
+
<!-- semconv service.peer -->
361
+
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
362
+
<!-- see templates/registry/markdown/snippet.md.j2 -->
363
+
<!-- prettier-ignore-start -->
364
+
365
+
**Attributes:**
366
+
367
+
| Key | Stability |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)| Value Type | Description | Example Values |
368
+
| --- | --- | --- | --- | --- | --- |
369
+
|[`service.peer.name`](/docs/registry/attributes/service.md)||`Recommended`| string | Logical name of the service on the other side of the connection. SHOULD be equal to the actual [`service.name`](/docs/resource/README.md#service) resource attribute of the remote service if any. |`shoppingcart`|
370
+
|[`service.peer.namespace`](/docs/registry/attributes/service.md)||`Recommended`| string | A namespace for `service.peer.name`. |`Shop`|
371
+
372
+
<!-- prettier-ignore-end -->
373
+
<!-- END AUTOGENERATED TEXT -->
374
+
<!-- endsemconv -->
375
+
376
+
### Peer namespace
377
+
378
+
Attributes of the `peer.*` namespace are deprecated, and they used to provide a way to describe any operation that accesses some remote service.
379
+
The `peer.service` attribute harkens back from OpenTracing, and has not been updated to match the `service.name` and `service.namespace` resource attributes to describe a service.
353
380
Users can define what the name of a service is based on their particular semantics in their distributed system.
354
381
Instrumentations SHOULD provide a way for users to configure this name.
355
382
@@ -362,7 +389,7 @@ Instrumentations SHOULD provide a way for users to configure this name.
362
389
363
390
| Key | Stability |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)| Value Type | Description | Example Values |
364
391
| --- | --- | --- | --- | --- | --- |
365
-
|[`peer.service`](/docs/registry/attributes/peer.md)||`Recommended`| string | The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. [1]|`AuthTokenCache`|
392
+
|[`peer.service`](/docs/registry/attributes/peer.md)|<br>Replaced by `service.peer.name`.|`Recommended`| string | The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. [1]|`AuthTokenCache`|
366
393
367
394
**[1]`peer.service`:** Examples of `peer.service` that users may specify:
Copy file name to clipboardExpand all lines: docs/registry/attributes/service.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
4
4
# Service
5
5
6
+
-[Service Attributes](#service-attributes)
7
+
-[Service Attributes for Peer Services](#service-attributes-for-peer-services)
8
+
6
9
## Service Attributes
7
10
8
11
A service instance.
@@ -46,3 +49,14 @@ port.
46
49
**[2]`service.name`:** MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.
47
50
48
51
**[3]`service.namespace`:** A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace.
52
+
53
+
## Service Attributes for Peer Services
54
+
55
+
How to describe the service on the other side of a request.
56
+
57
+
**Attributes:**
58
+
59
+
| Key | Stability | Value Type | Description | Example Values |
60
+
| --- | --- | --- | --- | --- |
61
+
| <aid="service-peer-name"href="#service-peer-name">`service.peer.name`</a> || string | Logical name of the service on the other side of the connection. SHOULD be equal to the actual [`service.name`](/docs/resource/README.md#service) resource attribute of the remote service if any. |`shoppingcart`|
62
+
| <aid="service-peer-namespace"href="#service-peer-namespace">`service.peer.namespace`</a> || string | A namespace for `service.peer.name`. |`Shop`|
0 commit comments