Skip to content

Commit

Permalink
Merge branch 'main' into sdk-test-SpanContext
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 20, 2024
2 parents 725ea56 + 246ee86 commit 9b21b19
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

env:
GO_VERSION: "~1.22.2"
GO_VERSION: "~1.23.1"

jobs:
generate-and-test-x86_64:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
GO_VERSION: "~1.22.2"
GO_VERSION: "~1.23.1"

jobs:
check-links:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
compatibility-test:
strategy:
matrix:
go-version: ["~1.22.2", "~1.21.9"]
go-version: ["~1.23.1", "~1.22.7"]
os: [ubuntu-latest]
# GitHub Actions does not support arm* architectures on default
# runners. It is possible to accomplish this with a self-hosted runner
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.1"
go-version: "~1.23.1"
check-latest: true
cache-dependency-path: "**/go.sum"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.0"
go-version: "~1.23.1"
check-latest: true
- name: Setup BATS
uses: mig4/setup-bats@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/offsets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.2"
go-version: "~1.23.1"
check-latest: true
cache-dependency-path: "**/go.sum"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/probe_load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

env:
go_version: '~1.22'
go_version: '~1.23'
CGO_ENABLED: '0'

jobs:
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
run: OTEL_GO_AUTO_SHOW_VERIFIER_LOG=false vimto -kernel :${{ matrix.tag }} -- go test -v -count=1 -tags=multi_kernel_test go.opentelemetry.io/auto/internal/pkg/instrumentation
- name: Test with verifier logs
run: OTEL_GO_AUTO_SHOW_VERIFIER_LOG=true vimto -kernel :${{ matrix.tag }} -- go test -v -count=1 -tags=multi_kernel_test go.opentelemetry.io/auto/internal/pkg/instrumentation
if: always() && steps.no_verifier_logs_test.outcome == 'failure'
if: always() && steps.no_verifier_logs_test.outcome == 'failure'
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
- The `WithLogger` `InstrumentationOption` is added as a replacement for `WithLogLevel`.
An `slog.Logger` can now be configured by the user any way they want and then passed to the `Instrumentation` for its logging with this option. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- Support `google.golang.org/grpc` `1.66.2`. ([#1083](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1083))
- Support `google.golang.org/grpc` `1.67.0`. ([#1116](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1116))

### Changed

Expand All @@ -52,6 +53,7 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
- The unused `LogLevelError` constant is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevel` type is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `ParseLogLevel` function is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- Drop agent build support for Go 1.21. ([#1115](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1115))

## [v0.14.0-alpha] - 2024-07-15

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ Currently, OpenTelemetry Go Automatic Instrumentation is tested for the followin

| OS | Go Version | Architecture |
| ------- | ---------- | ------------ |
| Ubuntu | 1.23 | amd64 |
| Ubuntu | 1.22 | amd64 |
| Ubuntu | 1.21 | amd64 |
| Ubuntu | 1.20 | amd64 |

Automatic instrumentation should work on any Linux kernel above 4.4.

Expand Down
10 changes: 10 additions & 0 deletions internal/pkg/inject/offset_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -1768,6 +1769,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -1977,6 +1979,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -2181,6 +2184,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -2400,6 +2404,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -2599,6 +2604,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -2813,6 +2819,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -3017,6 +3024,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -3216,6 +3224,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down Expand Up @@ -3445,6 +3454,7 @@
"1.66.1",
"1.66.2",
"1.67.0-dev",
"1.67.0",
"1.68.0-dev"
]
}
Expand Down
4 changes: 1 addition & 3 deletions sdk/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,4 @@ func (s *span) SetName(name string) {
/* TODO: implement */
}

func (*span) TracerProvider() trace.TracerProvider {
return GetTracerProvider()
}
func (*span) TracerProvider() trace.TracerProvider { return GetTracerProvider() }
7 changes: 7 additions & 0 deletions sdk/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ func TestSpanSpanContext(t *testing.T) {
assert.Equal(t, spanContext0, s.SpanContext())
}

func TestSpanTracerProvider(t *testing.T) {
var s span

got := s.TracerProvider()
assert.IsType(t, tracerProvider{}, got)
}

type spanBuilder struct {
Name string
NotSampled bool
Expand Down

0 comments on commit 9b21b19

Please sign in to comment.