Skip to content

Commit 7c76a06

Browse files
Merge branch 'main' into main
2 parents d9dbc54 + edacd1e commit 7c76a06

180 files changed

Lines changed: 2203 additions & 1004 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.golangci.yml

Lines changed: 252 additions & 255 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1010

1111
### Added
1212

13-
- `http.route` attribute to otelhttp server request spans, when `net/http.Request.Pattern` is set in `go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful`, `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`, `go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux`, `go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho` and `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`. (#6905)
13+
- `http.route` attribute to otelhttp server request spans, when `net/http.Request.Pattern` is set in `go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful`, `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`, `go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux`, `go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho` and `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`. (#6905, #6937)
1414
- Add `WithAttributes` option to set instrumentation scope attributes on the created `log.Logger` in `go.opentelemetry.io/contrib/bridges/otelzap`. (#6962)
1515
- Add `WithAttributes` option to set instrumentation scope attributes on the created `log.Logger` in `go.opentelemetry.io/contrib/bridges/otelslog`. (#6965)
1616
- Add `WithAttributes` option to set instrumentation scope attributes on the created `log.Logger` in `go.opentelemetry.io/contrib/bridges/otellogrus`. (#6966)
1717
- Add `WithAttributes` option to set instrumentation scope attributes on the created `log.Logger` in `go.opentelemetry.io/contrib/bridges/otellogr`. (#6967)
1818
- Add the `WithGinMetricAttributes` option to allow setting dynamic, per-request metric attributes based on `*gin.Context` in `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`. (#6932)
19+
- Use Gin's own `ClientIP` method to detect the client's IP, which supports custom proxy headers in `go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin`. (#6095)
1920
- Add instrumentation support for `go.mongodb.org/mongo-driver/v2` in `go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo`(#6539)
2021

22+
2123
### Changed
2224

2325
- Jaeger remote sampler's probabilistic strategy now uses the same sampling algorithm as `trace.TraceIDRatioBased` in `go.opentelemetry.io/contrib/samplers/jaegerremote`. (#6892)

CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ bridges/prometheus/ @open-te
3131
bridges/otelzap/ @open-telemetry/go-approvers @pellared @khushijain21
3232
bridges/otellogr/ @open-telemetry/go-approvers @scorpionknifes @pellared
3333

34-
config/ @open-telemetry/go-approvers @pellared @codeboten
35-
3634
detectors/aws/ec2 @open-telemetry/go-approvers @pyohannes @akats7
3735
detectors/aws/ecs @open-telemetry/go-approvers @pyohannes @akats7
3836
detectors/aws/eks @open-telemetry/go-approvers @pyohannes
@@ -57,6 +55,8 @@ instrumentation/net/http/httptrace/otelhttptrace/ @open-te
5755
instrumentation/net/http/otelhttp/ @open-telemetry/go-approvers @dmathieu
5856
instrumentation/runtime/ @open-telemetry/go-approvers @dmathieu @dashpole
5957

58+
otelconf/ @open-telemetry/go-approvers @pellared @codeboten
59+
6060
processors/baggagecopy @open-telemetry/go-approvers @codeboten @MikeGoldsmith
6161
processors/minsev @open-telemetry/go-approvers @MrAlias
6262

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $(TOOLS)/%: $(TOOLS_MOD_DIR)/go.mod | $(TOOLS)
3838
$(GO) build -o $@ $(PACKAGE)
3939

4040
GOLANGCI_LINT = $(TOOLS)/golangci-lint
41-
$(GOLANGCI_LINT): PACKAGE=github.com/golangci/golangci-lint/cmd/golangci-lint
41+
$(GOLANGCI_LINT): PACKAGE=github.com/golangci/golangci-lint/v2/cmd/golangci-lint
4242

4343
MISSPELL = $(TOOLS)/misspell
4444
$(MISSPELL): PACKAGE=github.com/client9/misspell/cmd/misspell

bridges/otelslog/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (h *Handler) convertRecord(r slog.Record) log.Record {
239239
return record
240240
}
241241

242-
// Enable returns true if the Handler is enabled to log for the provided
242+
// Enabled returns true if the Handler is enabled to log for the provided
243243
// context and Level. Otherwise, false is returned if it is not enabled.
244244
func (h *Handler) Enabled(ctx context.Context, l slog.Level) bool {
245245
const sevOffset = slog.Level(log.SeverityDebug) - slog.LevelDebug

bridges/prometheus/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ require (
2626
go.opentelemetry.io/otel/metric v1.35.0 // indirect
2727
go.opentelemetry.io/otel/trace v1.35.0 // indirect
2828
golang.org/x/sys v0.31.0 // indirect
29-
google.golang.org/protobuf v1.36.5 // indirect
29+
google.golang.org/protobuf v1.36.6 // indirect
3030
gopkg.in/yaml.v3 v3.0.1 // indirect
3131
)

bridges/prometheus/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt
4949
go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
5050
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
5151
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
52-
google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM=
53-
google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
52+
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
53+
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
5454
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
5555
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
5656
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

detectors/aws/ec2/ec2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// Package ec2 provides a resource detector for EC2 instances.
45
package ec2 // import "go.opentelemetry.io/contrib/detectors/aws/ec2"
56

67
import (

detectors/aws/ecs/ecs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// Package ecs provides a resource detector for AWS ECS instances.
45
package ecs // import "go.opentelemetry.io/contrib/detectors/aws/ecs"
56

67
import (

detectors/aws/eks/detector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// Package eks provides a resource detector for AWS EKS.
45
package eks // import "go.opentelemetry.io/contrib/detectors/aws/eks"
56

67
import (

0 commit comments

Comments
 (0)