Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
pyohannes committed Apr 23, 2024
1 parent 671a945 commit 47bf1d7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ updates:
schedule:
interval: weekly
day: sunday
- package-ecosystem: gomod
directory: /detectors/service
labels:
- dependencies
- go
- Skip Changelog
schedule:
interval: weekly
day: sunday
- package-ecosystem: gomod
directory: /exporters/autoexport
labels:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Add the new `go.opentelemetry.io/contrib/instrgen` package to provide auto-generated source code instrumentation. (#3068, #3108)
- `NewSDK` in `go.opentelemetry.io/contrib/config` now returns a configured SDK with a valid `MeterProvider`. (#4804)
- Add the new `go.opentelemetry.io/contrib/detectors/service` package to provide a resource detector for service attributes. (#5423)

### Changed

Expand Down
19 changes: 19 additions & 0 deletions detectors/service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Service Resource detector

The service resource detector supports detecting attributes specific services.

## Usage

```golang
// Instantiate a new host resource detector
serviceResourceDetector := service.New()
resource, err := serviceResourceDetector.Detect(context.Background())
```

## Supported attributes

According to semantic conventions for
[service](https://github.com/open-telemetry/semantic-conventions/tree/main/docs/resource#service-experimental)
attributes, the following attributes is added:

* `service.instance.id`
1 change: 1 addition & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module-sets:
modules:
- go.opentelemetry.io/contrib/bridges/prometheus
- go.opentelemetry.io/contrib/detectors/aws/lambda
- go.opentelemetry.io/contrib/detectors/service
- go.opentelemetry.io/contrib/exporters/autoexport
- go.opentelemetry.io/contrib/propagators/autoprop
- go.opentelemetry.io/contrib/propagators/opencensus
Expand Down

0 comments on commit 47bf1d7

Please sign in to comment.