Skip to content

Commit e75b120

Browse files
authored
Fix remove sentry.origin for sentry logger (#1038)
1 parent 69f7e3f commit e75b120

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

log.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ func (l *sentryLogger) log(ctx context.Context, level LogLevel, severity int, me
144144
if sdkVersion := l.client.sdkVersion; sdkVersion != "" {
145145
attrs["sentry.sdk.version"] = Attribute{Value: sdkVersion, Type: "string"}
146146
}
147-
attrs["sentry.origin"] = Attribute{Value: "auto.logger.log", Type: "string"}
148147

149148
log := &Log{
150149
Timestamp: time.Now(),

log_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func Test_sentryLogger_MethodsWithFormat(t *testing.T) {
4646
"sentry.server.address": {Value: "test-server", Type: "string"},
4747
"sentry.sdk.name": {Value: "sentry.go", Type: "string"},
4848
"sentry.sdk.version": {Value: "0.10.0", Type: "string"},
49-
"sentry.origin": {Value: "auto.logger.log", Type: "string"},
5049
"sentry.message.template": {Value: "param matching: %v and %v", Type: "string"},
5150
"sentry.message.parameters.0": {Value: "param1", Type: "string"},
5251
"sentry.message.parameters.1": {Value: "param2", Type: "string"},
@@ -207,7 +206,6 @@ func Test_sentryLogger_MethodsWithoutFormat(t *testing.T) {
207206
"sentry.server.address": {Value: "test-server", Type: "string"},
208207
"sentry.sdk.name": {Value: "sentry.go", Type: "string"},
209208
"sentry.sdk.version": {Value: "0.10.0", Type: "string"},
210-
"sentry.origin": {Value: "auto.logger.log", Type: "string"},
211209
}
212210

213211
tests := []struct {
@@ -381,7 +379,6 @@ func Test_sentryLogger_Write(t *testing.T) {
381379
"sentry.server.address": {Value: "test-server", Type: "string"},
382380
"sentry.sdk.name": {Value: "sentry.go", Type: "string"},
383381
"sentry.sdk.version": {Value: "0.10.0", Type: "string"},
384-
"sentry.origin": {Value: "auto.logger.log", Type: "string"},
385382
}
386383
wantLogs := []Log{
387384
{

0 commit comments

Comments
 (0)