-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(otelaws): add sns attribute instrumentation #6388
feat(otelaws): add sns attribute instrumentation #6388
Conversation
This will need a changelog entry. |
091283b
to
c8def81
Compare
Thanks @dmathieu ! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6388 +/- ##
=====================================
Coverage 67.7% 67.8%
=====================================
Files 199 200 +1
Lines 16564 16589 +25
=====================================
+ Hits 11229 11251 +22
- Misses 4993 4995 +2
- Partials 342 343 +1
|
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes_test.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes_test.go
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes_test.go
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go
Outdated
Show resolved
Hide resolved
11d1c29
to
337ad38
Compare
Checking what's going with the tests, something odd there after the merge conflict. |
feat(otelaws): also instrument PublishBatchInput doc: add entry to changelog chore: sns package indirect Update instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Update instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Update instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/snsattributes.go Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> revert - Update CHANGELOG.md chore: add missin assertions and use context background in tests chore: add test for input wihtout destination chore(build): fix conflicts chore(build): fix conflicts
337ad38
to
ea77683
Compare
@akats7 does this look good to you? |
yep looks good, meant to approve earlier |
### Added - Added support for providing `endpoint`, `pollingIntervalMs` and `initialSamplingRate` using environment variable `OTEL_TRACES_SAMPLER_ARG` in `go.opentelemetry.io/contrib/samples/jaegerremote`. (#6310) - Added support exporting logs via OTLP over gRPC in `go.opentelemetry.io/contrib/config`. (#6340) - The `go.opentelemetry.io/contrib/bridges/otellogr` module. This module provides an OpenTelemetry logging bridge for `github.com/go-logr/logr`. (#6386) - Added SNS instrumentation in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws`. (#6388) ### Changed - Change the span name to be `GET /path` so it complies with the OTel HTTP semantic conventions in `go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho`. (#6365) - Record errors instead of setting the `gin.errors` attribute in `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`. (#6346) - The `go.opentelemetry.io/contrib/config` now supports multiple schemas in subdirectories (i.e. `go.opentelemetry.io/contrib/config/v0.3.0`) for easier migration. (#6412) ### Fixed - Fix broken AWS presigned URLs when using instrumentation in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws`. (#5975) - Fixed the value for configuring the OTLP exporter to use `grpc` instead of `grpc/protobuf` in `go.opentelemetry.io/contrib/config`. (#6338) - Allow marshaling types in `go.opentelemetry.io/contrib/config`. (#6347) - Removed the redundant handling of panic from the `HTML` function in `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`. (#6373) - The `code.function` attribute emitted by `go.opentelemetry.io/contrib/bridges/otelslog` now stores just the function name instead the package path-qualified function name. The `code.namespace` attribute now stores the package path. (#6415) - The `code.function` attribute emitted by `go.opentelemetry.io/contrib/bridges/otelzap` now stores just the function name instead the package path-qualified function name. The `code.namespace` attribute now stores the package path. (#6423)
Notes:
semconv/v1.27.0
was available in the latest published version of the otel module.m.initializeMiddlewareBefore, m.initializeMiddlewareAfter, m.finalizeMiddlewareAfter, m.deserializeMiddleware
). All attributes are currently being set oninitializeMiddlewareAfter
.