diff --git a/CHANGELOG.md b/CHANGELOG.md index 83b42e1dd771..9f0a61413283 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The environment variable used for resource detection has been changed from `OTEL_RESOURCE_LABELS` to `OTEL_RESOURCE_ATTRIBUTES` (#1042) - Replace `WithSyncer` with `WithBatcher` in examples. (#1044) - Replace the `google.golang.org/grpc/codes` dependency in the API with an equivalent `go.opentelemetry.io/otel/codes` package. (#1046) +- Unify Callback Function Naming. + Rename `*Callback` with `*Func`. (#1061) ### Removed diff --git a/api/metric/async.go b/api/metric/async.go index 831e1af0276c..3f5a946adb8d 100644 --- a/api/metric/async.go +++ b/api/metric/async.go @@ -60,7 +60,7 @@ type Int64ObserverResult struct { function func([]kv.KeyValue, ...Observation) } -// Float64ObserverResult is passed to an observer callback to captureGetHookFunc +// Float64ObserverResult is passed to an observer callback to capture // observations for one asynchronous floating point metric instrument. type Float64ObserverResult struct { instrument AsyncImpl