Skip to content

Commit 9b7a562

Browse files
committed
release: 0.47.0
1 parent 320597c commit 9b7a562

18 files changed

Lines changed: 98 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,75 @@
11
# Changelog
22

3+
## 0.47.0
4+
5+
### Breaking Changes 🛠
6+
7+
- Fix `transaction_info` source getting set incorrectly across HTTP middleware integrations (http, fasthttp, fiber). Users should now expect traces to properly get grouped with their parameterized path. Transactions in affected integrations may regroup after upgrading. by @giortzisg in [#1325](https://github.com/getsentry/sentry-go/pull/1325)
8+
- remove deprecated`otel.NewSentrySpanProcessor`. Users should now use the `sentryotlp.NewTraceExporter` instead by @giortzisg in [#1307](https://github.com/getsentry/sentry-go/pull/1307)
9+
```go
10+
// Before
11+
sentry.Init(sentry.ClientOptions{Dsn: dsn, EnableTracing: true, TracesSampleRate: 1.0})
12+
13+
tp := sdktrace.NewTracerProvider(
14+
sdktrace.WithSpanProcessor(sentryotel.NewSentrySpanProcessor()),
15+
)
16+
otel.SetTextMapPropagator(sentryotel.NewSentryPropagator())
17+
otel.SetTracerProvider(tp)
18+
19+
// After:
20+
sentry.Init(sentry.ClientOptions{
21+
Dsn: dsn, EnableTracing: true, TracesSampleRate: 1.0,
22+
Integrations: func(i []sentry.Integration) []sentry.Integration {
23+
return append(i, sentryotel.NewOtelIntegration())
24+
},
25+
})
26+
27+
exporter, _ := sentryotlp.NewTraceExporter(ctx, dsn)
28+
tp := sdktrace.NewTracerProvider(sdktrace.WithBatcher(exporter))
29+
otel.SetTracerProvider(tp)
30+
```
31+
- Enable logs by default to skip double allow behavior. Enabling logs now happens once when setting up either `sentry.NewLogger` or any supported integration. Also the EnableLogs flag changes to DisableLogs for a global override switch by @giortzisg in [#1306](https://github.com/getsentry/sentry-go/pull/1306)
32+
- Remove the `ContextifyFrames` integration. The recommended way to add source context is [SCM](https://docs.sentry.io/integrations/source-code-mgmt/source-context/) by @giortzisg in [#1302](https://github.com/getsentry/sentry-go/pull/1302)
33+
34+
### New Features ✨
35+
36+
- Add fiber v3 integration by @giortzisg in [#1324](https://github.com/getsentry/sentry-go/pull/1324)
37+
- Bump fasthttp from 1.51.0 to 1.71.0 by @giortzisg in [#1324](https://github.com/getsentry/sentry-go/pull/1324)
38+
- Add sentrysql SQL tracing integration by @giortzisg in [#1305](https://github.com/getsentry/sentry-go/pull/1305)
39+
- Supports multiple integration paths depending on how your app opens database connections: `sentrysql.Open(...)`, `sentrysql.OpenDB(...)`, and wrapped drivers/connectors for custom setups.
40+
- Database metadata is not inferred in every setup. If the database name is not discoverable automatically, pass `sentrysql.WithDatabaseName(...)` so spans are populated correctly.
41+
- Example:
42+
```go
43+
// Simple driver-based setup
44+
db, err := sentrysql.Open("sqlite", ":memory:",
45+
sentrysql.WithDatabaseSystem(sentrysql.SystemSQLite),
46+
sentrysql.WithDatabaseName("main"),
47+
)
48+
```
49+
50+
### Internal Changes 🔧
51+
52+
#### Deps
53+
54+
- Sync go.work by @giortzisg in [#1326](https://github.com/getsentry/sentry-go/pull/1326)
55+
- Bump github.com/stretchr/testify from 1.8.4 to 1.11.1 by @giortzisg in [#1326](https://github.com/getsentry/sentry-go/pull/1326)
56+
- Bump github.com/google/go-cmp from 0.5.9 to 0.7.0 by @giortzisg in [#1326](https://github.com/getsentry/sentry-go/pull/1326)
57+
- Bump getsentry/github-workflows from 71588ddf95134f804e82c5970a8098588e2eaecd to c802283cd9075b7a2b7a32655019c21c21676e34 by @dependabot in [#1314](https://github.com/getsentry/sentry-go/pull/1314)
58+
- Bump actions/create-github-app-token from 3.0.0 to 3.2.0 by @dependabot in [#1316](https://github.com/getsentry/sentry-go/pull/1316)
59+
- Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot in [#1313](https://github.com/getsentry/sentry-go/pull/1313)
60+
- Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.26.2 to 2.26.6 by @dependabot in [#1317](https://github.com/getsentry/sentry-go/pull/1317)
61+
- Bump getsentry/craft from 2.26.2 to 2.26.6 by @dependabot in [#1318](https://github.com/getsentry/sentry-go/pull/1318)
62+
- Bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot in [#1315](https://github.com/getsentry/sentry-go/pull/1315)
63+
- Bump github.com/gofiber/fiber/v2 from 2.52.12 to 2.52.13 in /fiber by @dependabot in [#1300](https://github.com/getsentry/sentry-go/pull/1300)
64+
- Bump github.com/gofiber/fiber/v2 from 2.52.12 to 2.52.13 in /crosstest by @dependabot in [#1301](https://github.com/getsentry/sentry-go/pull/1301)
65+
- Bump getsentry/craft from 2.25.2 to 2.26.2 by @dependabot in [#1293](https://github.com/getsentry/sentry-go/pull/1293)
66+
- Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.2 to 2.26.2 by @dependabot in [#1294](https://github.com/getsentry/sentry-go/pull/1294)
67+
68+
#### Other
69+
70+
- (otel) Remove unused semconv helpers by @giortzisg in [#1321](https://github.com/getsentry/sentry-go/pull/1321)
71+
- Update bump-version script to also bump crosstest by @giortzisg in [#1327](https://github.com/getsentry/sentry-go/pull/1327)
72+
373
## 0.46.2
474

575
### Bug Fixes 🐛

crosstest/go.mod

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ replace (
1818
)
1919

2020
require (
21-
github.com/getsentry/sentry-go v0.46.2
22-
github.com/getsentry/sentry-go/echo v0.45.1
23-
github.com/getsentry/sentry-go/fasthttp v0.45.1
24-
github.com/getsentry/sentry-go/fiber v0.45.1
25-
github.com/getsentry/sentry-go/fiberv3 v0.46.2
26-
github.com/getsentry/sentry-go/gin v0.45.1
27-
github.com/getsentry/sentry-go/iris v0.45.1
28-
github.com/getsentry/sentry-go/logrus v0.45.1
29-
github.com/getsentry/sentry-go/negroni v0.45.1
30-
github.com/getsentry/sentry-go/otel v0.45.1
31-
github.com/getsentry/sentry-go/slog v0.45.1
32-
github.com/getsentry/sentry-go/zap v0.45.1
21+
github.com/getsentry/sentry-go v0.47.0
22+
github.com/getsentry/sentry-go/echo v0.47.0
23+
github.com/getsentry/sentry-go/fasthttp v0.47.0
24+
github.com/getsentry/sentry-go/fiber v0.47.0
25+
github.com/getsentry/sentry-go/fiberv3 v0.47.0
26+
github.com/getsentry/sentry-go/gin v0.47.0
27+
github.com/getsentry/sentry-go/iris v0.47.0
28+
github.com/getsentry/sentry-go/logrus v0.47.0
29+
github.com/getsentry/sentry-go/negroni v0.47.0
30+
github.com/getsentry/sentry-go/otel v0.47.0
31+
github.com/getsentry/sentry-go/slog v0.47.0
32+
github.com/getsentry/sentry-go/zap v0.47.0
3333
github.com/gin-gonic/gin v1.9.1
3434
github.com/gofiber/fiber/v2 v2.52.13
3535
github.com/gofiber/fiber/v3 v3.3.0

echo/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/google/go-cmp v0.7.0
1010
github.com/labstack/echo/v5 v5.0.3
1111
)

fasthttp/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/google/go-cmp v0.7.0
1010
github.com/valyala/fasthttp v1.71.0
1111
)

fiber/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/gofiber/fiber/v2 v2.52.13
1010
github.com/google/go-cmp v0.7.0
1111
)

fiberv3/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/gofiber/fiber/v3 v3.3.0
1010
github.com/gofiber/utils/v2 v2.0.6
1111
github.com/google/go-cmp v0.7.0

gin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/gin-gonic/gin v1.9.1
1010
github.com/google/go-cmp v0.7.0
1111
)

grpc/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/google/go-cmp v0.7.0
1010
github.com/stretchr/testify v1.11.1
1111
google.golang.org/grpc v1.80.0

iris/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/google/go-cmp v0.7.0
1010
github.com/kataras/iris/v12 v12.2.0
1111
)

logrus/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
replace github.com/getsentry/sentry-go => ../
66

77
require (
8-
github.com/getsentry/sentry-go v0.46.2
8+
github.com/getsentry/sentry-go v0.47.0
99
github.com/google/go-cmp v0.7.0
1010
github.com/pkg/errors v0.9.1
1111
github.com/sirupsen/logrus v1.9.3

0 commit comments

Comments
 (0)