Skip to content

Commit b4031b9

Browse files
Back to Mattel for PR
Signed-off-by: Steve Coffman <steve@khanacademy.org>
1 parent 8d0b978 commit b4031b9

11 files changed

Lines changed: 28 additions & 122 deletions

.github/dependabot.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# logrus-stackdriver-formatter
22

3-
[![Go Report Card](https://goreportcard.com/badge/github.com/StevenACoffman/logrus-stackdriver-formatter)](https://goreportcard.com/report/github.com/StevenACoffman/logrus-stackdriver-formatter)
4-
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/StevenACoffman/logrus-stackdriver-formatter)
5-
[![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/StevenACoffman/logrus-stackdriver-formatter#license)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/Mattel/logrus-stackdriver-formatter)](https://goreportcard.com/report/github.com/Mattel/logrus-stackdriver-formatter)
4+
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/Mattel/logrus-stackdriver-formatter)
5+
[![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Mattel/logrus-stackdriver-formatter#license)
66

77
Logrus-stackdriver-formatter provides:
88
+ [logrus](https://github.com/sirupsen/logrus) formatter for Stackdriver.
@@ -23,7 +23,7 @@ package main
2323

2424
import (
2525

26-
stackdriver "github.com/StevenACoffman/logrus-stackdriver-formatter"
26+
stackdriver "github.com/Mattel/logrus-stackdriver-formatter"
2727
"github.com/sirupsen/logrus"
2828
)
2929

@@ -52,7 +52,7 @@ Here's a sample entry (prettified) from the example:
5252
"severity": "ERROR",
5353
"context": {
5454
"reportLocation": {
55-
"file": "github.com/StevenACoffman/logrus-stackdriver-formatter/example_test.go",
55+
"file": "github.com/Mattel/logrus-stackdriver-formatter/example_test.go",
5656
"line": 21,
5757
"function": "ExampleLogError"
5858
}
@@ -99,7 +99,7 @@ and log-structured data streams.
9999
```go
100100
import (
101101
"os"
102-
logadapter "github.com/StevenACoffman/logrus-stackdriver-formatter"
102+
logadapter "github.com/Mattel/logrus-stackdriver-formatter"
103103
kitlog "github.com/go-kit/kit/log"
104104
)
105105

@@ -118,7 +118,7 @@ func main() {
118118
```go
119119
import (
120120
"os"
121-
logadapter "github.com/StevenACoffman/logrus-stackdriver-formatter"
121+
logadapter "github.com/Mattel/logrus-stackdriver-formatter"
122122
kitlog "github.com/go-kit/kit/log"
123123
)
124124

benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net"
77
"testing"
88

9-
logadapter "github.com/StevenACoffman/logrus-stackdriver-formatter"
9+
logadapter "github.com/Mattel/logrus-stackdriver-formatter"
1010
"github.com/sirupsen/logrus"
1111
"google.golang.org/grpc"
1212
"google.golang.org/grpc/interop"

example/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/gofrs/uuid"
1212
"go.opentelemetry.io/otel/trace"
1313

14-
stackdriver "github.com/StevenACoffman/logrus-stackdriver-formatter"
14+
stackdriver "github.com/Mattel/logrus-stackdriver-formatter"
1515
"github.com/sirupsen/logrus"
1616
)
1717

formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func NewFormatter(options ...Option) *Formatter {
137137
fmtr := Formatter{
138138
StackSkip: []string{
139139
"github.com/sirupsen/logrus",
140-
"github.com/StevenACoffman/logrus-stackdriver-formatter",
140+
"github.com/Mattel/logrus-stackdriver-formatter",
141141
"github.com/grpc-ecosystem/go-grpc-middleware",
142142
"go.opentelemetry.io",
143143
},

formatter_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/gofrs/uuid"
1111

12-
logadapter "github.com/StevenACoffman/logrus-stackdriver-formatter"
12+
logadapter "github.com/Mattel/logrus-stackdriver-formatter"
1313
"github.com/sirupsen/logrus"
1414
"github.com/stretchr/testify/assert"
1515
"go.opentelemetry.io/otel/trace"
@@ -29,7 +29,7 @@ func TestFormatter(t *testing.T) {
2929
logadapter.WithVersion("0.1"),
3030
logadapter.WithSkipTimestamp(),
3131
logadapter.WithSourceReference(
32-
"https://github.com/StevenACoffman/test.git",
32+
"https://github.com/Mattel/test.git",
3333
"v1.2.3",
3434
),
3535
logadapter.WithGlobalTraceID(TraceID),
@@ -50,8 +50,8 @@ var (
5050
TraceID = uuid.Must(uuid.FromString("105445aa7843bc8bf206b12000100000"))
5151
SpanID = [8]byte{0, 0, 0, 0, 0, 0, 0, 1}
5252
SpanContext = trace.SpanContext{}.WithSpanID(SpanID).
53-
WithTraceID(trace.TraceID(TraceID)).
54-
WithTraceFlags(TraceFlags)
53+
WithTraceID(trace.TraceID(TraceID)).
54+
WithTraceFlags(TraceFlags)
5555
LineNumber = platformLine()
5656
)
5757

@@ -115,7 +115,7 @@ var formatterTests = []struct {
115115
},
116116
"sourceReferences": []map[string]interface{}{
117117
{
118-
"repository": "https://github.com/StevenACoffman/test.git",
118+
"repository": "https://github.com/Mattel/test.git",
119119
"revisionId": "v1.2.3",
120120
},
121121
},
@@ -161,7 +161,7 @@ var formatterTests = []struct {
161161
},
162162
"sourceReferences": []map[string]interface{}{
163163
{
164-
"repository": "https://github.com/StevenACoffman/test.git",
164+
"repository": "https://github.com/Mattel/test.git",
165165
"revisionId": "v1.2.3",
166166
},
167167
},
@@ -218,7 +218,7 @@ var formatterTests = []struct {
218218
},
219219
"sourceReferences": []map[string]interface{}{
220220
{
221-
"repository": "https://github.com/StevenACoffman/test.git",
221+
"repository": "https://github.com/Mattel/test.git",
222222
"revisionId": "v1.2.3",
223223
},
224224
},

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/StevenACoffman/logrus-stackdriver-formatter
1+
module github.com/Mattel/logrus-stackdriver-formatter
22

33
go 1.16
44

middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"time"
1515

16-
"github.com/StevenACoffman/logrus-stackdriver-formatter/ctxlogrus"
16+
"github.com/Mattel/logrus-stackdriver-formatter/ctxlogrus"
1717
"github.com/felixge/httpsnoop"
1818
"github.com/gofrs/uuid"
1919
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"

middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
logadapter "github.com/StevenACoffman/logrus-stackdriver-formatter"
10+
logadapter "github.com/Mattel/logrus-stackdriver-formatter"
1111
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
1212
pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/testing/testproto"
1313
"github.com/sirupsen/logrus"

stackskip_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/gofrs/uuid"
1010
"go.opentelemetry.io/otel/trace"
1111

12-
"github.com/StevenACoffman/logrus-stackdriver-formatter/test"
12+
"github.com/Mattel/logrus-stackdriver-formatter/test"
1313
"github.com/google/go-cmp/cmp"
1414
"github.com/sirupsen/logrus"
1515
)
@@ -19,8 +19,8 @@ var (
1919
TraceID = uuid.Must(uuid.FromString("105445aa7843bc8bf206b12000100000"))
2020
SpanID = [8]byte{0, 0, 0, 0, 0, 0, 0, 1}
2121
SpanContext = trace.SpanContext{}.WithSpanID(SpanID).
22-
WithTraceID(trace.TraceID(TraceID)).
23-
WithTraceFlags(TraceFlags)
22+
WithTraceID(trace.TraceID(TraceID)).
23+
WithTraceFlags(TraceFlags)
2424
LineNumber = platformLine()
2525
)
2626

@@ -33,7 +33,7 @@ func TestStackSkip(t *testing.T) {
3333
WithProjectID("test-project"),
3434
WithService("test"),
3535
WithVersion("0.1"),
36-
WithStackSkip("github.com/StevenACoffman/logrus-stackdriver-formatter"),
36+
WithStackSkip("github.com/Mattel/logrus-stackdriver-formatter"),
3737
WithSkipTimestamp(),
3838
WithGlobalTraceID(TraceID),
3939
)

0 commit comments

Comments
 (0)