Skip to content

Commit

Permalink
update CHANGELOG.md and README.md for redis resource semantic convention
Browse files Browse the repository at this point in the history
  • Loading branch information
manang-splunk committed Dec 7, 2021
1 parent 3ca8c0a commit e44d562
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ release.

### Semantic Conventions

- Add `redis.instance` Resource attribute in Redis.
([#2145](https://github.com/open-telemetry/opentelemetry-specification/pull/2145))

### Compatibility

### OpenTelemetry Protocol
Expand Down
7 changes: 5 additions & 2 deletions semantic_conventions/resource/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ groups:
- id: instance
type: string
brief: >
Reported name of the redis instance
examples: ['localhost:6379']
Reported name of the Redis instance. This can be in the form
`{host}:{port}` or any other name provided manually while configuring
the instrumentation and defaults to the `endpoint` value provided in the
configuration.
examples: ['localhost:6379', 'product_info_redis']
7 changes: 7 additions & 0 deletions specification/resource/semantic_conventions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This document defines standard attributes for resources. These attributes are ty
- [Compute Unit](#compute-unit)
- [Compute Instance](#compute-instance)
- [Environment](#environment)
- [Database](#database)
- [Version attributes](#version-attributes)
- [Cloud-Provider-Specific Attributes](#cloud-provider-specific-attributes)

Expand Down Expand Up @@ -157,6 +158,12 @@ Attributes defining a running environment (e.g. Operating System, Cloud, Data Ce
- [Deployment Environment](./deployment_environment.md)
- [Kubernetes](./k8s.md)

## Database

Attributes defining a database service.

- [Redis](./redis.md)

## Version attributes

Version attributes, such as `service.version`, are values of type `string`. They are
Expand Down
2 changes: 1 addition & 1 deletion specification/resource/semantic_conventions/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<!-- semconv redis -->
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `redis.instance` | string | Reported name of the redis instance | `localhost:6379` | No |
| `redis.instance` | string | Reported name of the Redis instance. This can be in the form `{host}:{port}` or any other name provided manually while configuring the instrumentation and defaults to the `endpoint` value provided in the configuration. | `localhost:6379`; `product_info_redis` | No |
<!-- endsemconv -->

0 comments on commit e44d562

Please sign in to comment.