Skip to content

Commit

Permalink
[PoC] Support grpc 1.69.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Dec 16, 2024
1 parent 5831f06 commit 0149c1c
Showing 11 changed files with 639 additions and 107 deletions.
214 changes: 214 additions & 0 deletions internal/pkg/inject/offset_results.json
Original file line number Diff line number Diff line change
@@ -2533,6 +2533,220 @@
{
"package": "google.golang.org/grpc/internal/transport",
"structs": [
{
"struct": "ServerStream",
"fields": [
{
"field": "Stream",
"offsets": [
{
"offset": null,
"versions": [
"1.0.0",
"1.0.1-GA",
"1.0.2",
"1.0.3",
"1.0.4",
"1.0.5",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.4.1",
"1.4.2",
"1.5.0",
"1.5.1",
"1.5.2",
"1.6.0",
"1.7.0",
"1.7.1",
"1.7.2",
"1.7.3",
"1.7.4",
"1.7.5",
"1.8.0",
"1.8.2",
"1.9.0",
"1.9.1",
"1.9.2",
"1.10.0",
"1.10.1",
"1.11.0",
"1.11.1",
"1.11.2",
"1.11.3",
"1.12.0",
"1.12.1",
"1.12.2",
"1.13.0",
"1.14.0",
"1.15.0",
"1.16.0",
"1.17.0",
"1.18.0",
"1.18.1",
"1.19.0",
"1.19.1",
"1.20.0",
"1.20.1",
"1.21.0",
"1.21.1",
"1.21.2",
"1.21.3",
"1.21.4",
"1.22.0",
"1.22.1",
"1.22.2",
"1.22.3",
"1.23.0",
"1.23.1",
"1.24.0",
"1.25.0",
"1.25.1",
"1.26.0",
"1.27.0-pre",
"1.27.0",
"1.27.1",
"1.28.0-pre",
"1.28.0",
"1.28.1",
"1.29.0-dev",
"1.29.0",
"1.29.1",
"1.30.0-dev",
"1.30.0-dev.1",
"1.30.0",
"1.30.1",
"1.31.0-dev",
"1.31.0",
"1.31.1",
"1.32.0-dev",
"1.32.0",
"1.33.0-dev",
"1.33.0",
"1.33.1",
"1.33.2",
"1.33.3",
"1.34.0-dev",
"1.34.0",
"1.34.1",
"1.34.2",
"1.35.0-dev",
"1.35.0",
"1.35.1",
"1.36.0-dev",
"1.36.0",
"1.36.1",
"1.37.0-dev",
"1.37.0",
"1.37.1",
"1.38.0-dev",
"1.38.0",
"1.38.1",
"1.39.0-dev",
"1.39.0",
"1.39.1",
"1.40.0-dev",
"1.40.0",
"1.40.1",
"1.41.0-dev",
"1.41.0",
"1.41.1",
"1.42.0-dev",
"1.42.0",
"1.43.0-dev",
"1.43.0",
"1.44.0-dev",
"1.44.0",
"1.45.0-dev",
"1.45.0",
"1.46.0-dev",
"1.46.0",
"1.46.1",
"1.46.2",
"1.47.0-dev",
"1.47.0",
"1.48.0-dev",
"1.48.0",
"1.49.0-dev",
"1.49.0",
"1.50.0-dev",
"1.50.0",
"1.50.1",
"1.51.0-dev",
"1.51.0",
"1.52.0-dev",
"1.52.0",
"1.52.1",
"1.52.3",
"1.53.0-dev",
"1.53.0",
"1.54.0",
"1.54.1",
"1.55.0-dev",
"1.55.0",
"1.55.1",
"1.56.0-dev",
"1.56.0",
"1.56.1",
"1.56.2",
"1.56.3",
"1.57.0-dev",
"1.57.0",
"1.57.1",
"1.57.2",
"1.58.0-dev",
"1.58.0",
"1.58.1",
"1.58.2",
"1.58.3",
"1.59.0-dev",
"1.59.0",
"1.60.0-dev",
"1.60.0",
"1.60.1",
"1.61.0-dev",
"1.61.0",
"1.61.1",
"1.61.2",
"1.62.0",
"1.62.1",
"1.62.2",
"1.63.0",
"1.63.1",
"1.63.2",
"1.63.3",
"1.64.0",
"1.64.1",
"1.65.0-dev",
"1.65.0",
"1.65.1",
"1.66.0-dev",
"1.66.0",
"1.66.1",
"1.66.2",
"1.66.3",
"1.67.0-dev",
"1.67.0",
"1.67.1",
"1.67.2",
"1.68.0-dev",
"1.68.0",
"1.68.1",
"1.69.0-dev"
]
},
{
"offset": 0,
"versions": [
"1.69.0",
"1.70.0-dev"
]
}
]
}
]
},
{
"struct": "Stream",
"fields": [
4 changes: 2 additions & 2 deletions internal/pkg/instrumentation/bpf/database/sql/probe.go
Original file line number Diff line number Diff line change
@@ -58,13 +58,13 @@ func New(logger *slog.Logger, version string) probe.Probe {
Sym: "database/sql.(*DB).queryDC",
EntryProbe: "uprobe_queryDC",
ReturnProbe: "uprobe_queryDC_Returns",
Optional: true,
FailureMode: probe.FailureModeIgnore,
},
{
Sym: "database/sql.(*DB).execDC",
EntryProbe: "uprobe_execDC",
ReturnProbe: "uprobe_execDC_Returns",
Optional: true,
FailureMode: probe.FailureModeIgnore,
},
},

Original file line number Diff line number Diff line change
@@ -118,19 +118,19 @@ func New(logger *slog.Logger) probe.Probe {
EntryProbe: "uprobe_End",
},
{
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetAttributes",
EntryProbe: "uprobe_SetAttributes",
Optional: true,
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetAttributes",
EntryProbe: "uprobe_SetAttributes",
FailureMode: probe.FailureModeIgnore,
},
{
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetStatus",
EntryProbe: "uprobe_SetStatus",
Optional: true,
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetStatus",
EntryProbe: "uprobe_SetStatus",
FailureMode: probe.FailureModeIgnore,
},
{
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetName",
EntryProbe: "uprobe_SetName",
Optional: true,
Sym: "go.opentelemetry.io/otel/internal/global.(*nonRecordingSpan).SetName",
EntryProbe: "uprobe_SetName",
FailureMode: probe.FailureModeIgnore,
},
},
SpecFn: loadBpf,
Loading

0 comments on commit 0149c1c

Please sign in to comment.