Skip to content

Commit 2c54506

Browse files
committed
Merge branch 'main' into otelglobal_collect_user_tracer_name
2 parents 2d04a93 + fb1761e commit 2c54506

File tree

177 files changed

+4845
-1854
lines changed

Some content is hidden

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

177 files changed

+4845
-1854
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ check-filenames =
55
check-hidden =
66
ignore-words = .codespellignore
77
interactive = 1
8-
skip = .git,go.mod,go.sum,CHANGELOG.md,LICENSES,venv,./internal/include/libbpf
8+
skip = .git,go.mod,go.sum,CHANGELOG.md,LICENSES,venv,./internal/include/libbpf,./opentelemetry-helm-charts
99
uri-ignore-words-list = *
1010
write =

.github/dependabot.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,16 @@ updates:
128128
interval: weekly
129129
day: sunday
130130
- package-ecosystem: gomod
131-
directory: /examples/kafka-go
131+
directory: /examples/kafka-go/consumer
132+
labels:
133+
- dependencies
134+
- go
135+
- Skip Changelog
136+
schedule:
137+
interval: weekly
138+
day: sunday
139+
- package-ecosystem: gomod
140+
directory: /examples/kafka-go/producer
132141
labels:
133142
- dependencies
134143
- go

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v3.0.0
31+
uses: docker/setup-qemu-action@v3.1.0
3232

3333
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@v3.3.0
34+
uses: docker/setup-buildx-action@v3.4.0
3535

3636
- name: Extract metadata (tags, labels) for Docker
3737
id: meta
@@ -42,7 +42,7 @@ jobs:
4242
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}
4343
4444
- name: Build and push
45-
uses: docker/build-push-action@v6.2.0
45+
uses: docker/build-push-action@v6.3.0
4646
with:
4747
push: true
4848
tags: ${{ steps.meta.outputs.tags }}

.github/workflows/scripts/dependabot-pr.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
#!/bin/zsh -ex
22

33
# Copyright The OpenTelemetry Authors
4-
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
4+
# SPDX-License-Identifier: Apache-2.0
165

176
git config user.name opentelemetrybot
187
git config user.email [email protected]

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
2424
- Support `golang.org/x/net` `v0.27.0`. ([#917](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/917))
2525
- The `otelglobal` probe now collects the user provided tracer name, version and schemaURL. ([#844](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/844))
2626

27+
### Changed
28+
29+
- Upgrade semconv from `v1.24.0` to `v1.26.0` in `github.com/segmentio/kafka-go` instrumentation. ([#909](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/909))
30+
- The `messaging.operation` attribute key is renamed to `messaging.operation.type`.
31+
- The `messaging.kafka.destination.partition` key is renamed to `messaging.destination.partition.id`
32+
- Upgrade semconv from `v1.21.0` to `v1.26.0` in `database/sql` instrumentation. ([#911](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/911))
33+
- The `db.statement` attribute key is renamed to `db.query.text`.
34+
- Upgrade semconv to `v1.26.0` in `net/http` instrumentation. ([#913](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/913))
35+
- Upgrade `go.opentelemetry.io/auto` semconv to `v1.26.0`. ([#914](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/914))
36+
2737
### Fixed
2838

2939
- HTTP client: Use Host field in URL if the Request Host is not present. ([#888](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/888))

COMPATIBILITY.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Compatibility
2+
3+
## Default `otel` Global Providers Compatibility
4+
5+
Auto-instrumentation can be configured to capture the telemetry sent to the
6+
[`otel`] default global providers.
7+
8+
Supported versions of [`otel`]:
9+
10+
- `v0.14.0` to `v1.28.0`
11+
12+
[`otel`]: https://pkg.go.dev/go.opentelemetry.io/otel
13+
14+
## Instrumented Library Compatibility
15+
16+
Instrumentation is provided for the following Go libraries.
17+
18+
- [`database/sql`](#database/sql)
19+
- [`github.com/segmentio/kafka-go`](#github.com/segmentio/kafka-go)
20+
- [`google.golang.org/grpc`](#google.golang.org/grpc)
21+
- [`net/http`](#net/http)
22+
23+
### database/sql
24+
25+
[Package documentation](https://pkg.go.dev/database/sql)
26+
27+
Supported version ranges:
28+
29+
- `go1.12` to `go1.22.5`
30+
31+
### github.com/segmentio/kafka-go
32+
33+
[Package documentation](https://pkg.go.dev/github.com/segmentio/kafka-go)
34+
35+
Supported version ranges:
36+
37+
- `v0.4.1` to `v0.4.47`
38+
39+
### google.golang.org/grpc
40+
41+
[Package documentation](https://pkg.go.dev/google.golang.org/grpc)
42+
43+
Supported version ranges:
44+
45+
- `v1.14.0` to `v1.66.0`
46+
47+
### net/http
48+
49+
[Package documentation](https://pkg.go.dev/net/http)
50+
51+
Supported version ranges:
52+
53+
- `go1.12` to `go1.22.5`

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
1616
--mount=type=cache,target=/go/pkg \
1717
make build
1818

19-
FROM gcr.io/distroless/base-debian12@sha256:786007f631d22e8a1a5084c5b177352d9dcac24b1e8c815187750f70b24a9fc6
19+
FROM gcr.io/distroless/base-debian12@sha256:1aae189e3baecbb4044c648d356ddb75025b2ba8d14cdc9c2a19ba784c90bfb9
2020
COPY --from=builder /app/otel-go-instrumentation /
2121
CMD ["/otel-go-instrumentation"]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (C) 2013 Blake Mizerany
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Caleb Spare
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSES/github.com/golang/protobuf/LICENSE renamed to LICENSES/github.com/google/uuid/LICENSE

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Copyright 2010 The Go Authors. All rights reserved.
1+
Copyright (c) 2009,2014 Google Inc. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions are
55
met:
66

7-
* Redistributions of source code must retain the above copyright
7+
* Redistributions of source code must retain the above copyright
88
notice, this list of conditions and the following disclaimer.
9-
* Redistributions in binary form must reproduce the above
9+
* Redistributions in binary form must reproduce the above
1010
copyright notice, this list of conditions and the following disclaimer
1111
in the documentation and/or other materials provided with the
1212
distribution.
13-
* Neither the name of Google Inc. nor the names of its
13+
* Neither the name of Google Inc. nor the names of its
1414
contributors may be used to endorse or promote products derived from
1515
this software without specific prior written permission.
1616

@@ -25,4 +25,3 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2525
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2626
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-

0 commit comments

Comments
 (0)