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.
|[`service.peer.name`](/docs/registry/attributes/service.md)| 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`|`Recommended`||
376
+
|[`service.peer.namespace`](/docs/registry/attributes/service.md)| string | A namespace for `service.peer.name`. |`Shop`|`Recommended`||
377
+
378
+
<!-- markdownlint-restore -->
379
+
<!-- prettier-ignore-end -->
380
+
<!-- END AUTOGENERATED TEXT -->
381
+
<!-- endsemconv -->
382
+
383
+
### Peer namespace
384
+
385
+
Attributes of the `peer.*` namespace are deprecated, and they used to provide a way to describe any operation that accesses some remote service.
386
+
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.
359
387
Users can define what the name of a service is based on their particular semantics in their distributed system.
360
388
Instrumentations SHOULD provide a way for users to configure this name.
361
389
@@ -368,7 +396,7 @@ Instrumentations SHOULD provide a way for users to configure this name.
|[`peer.service`](/docs/registry/attributes/peer.md)| 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. |`AuthTokenCache`|`Recommended`||
399
+
|[`peer.service`](/docs/registry/attributes/peer.md)| 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. |`AuthTokenCache`|`Recommended`|<br>Replaced by `service.peer.name`.|
Copy file name to clipboardExpand all lines: docs/registry/attributes/service.md
+12Lines changed: 12 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.
@@ -44,3 +47,12 @@ port.
44
47
**[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`.
45
48
46
49
**[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.
50
+
51
+
## Service Attributes for Peer Services
52
+
53
+
How to describe the service on the other side of a request.
| <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`||
58
+
| <aid="service-peer-namespace"href="#service-peer-namespace">`service.peer.namespace`</a> | string | A namespace for `service.peer.name`. |`Shop`||
0 commit comments