Skip to content

Commit

Permalink
contrib/google.golang.org/grpc: stop using deprecated packages (#1959)
Browse files Browse the repository at this point in the history
Co-authored-by: Katie Hockman <katie@hockman.dev>
  • Loading branch information
rarguelloF and katiehockman committed Aug 31, 2023
1 parent 16c1f8b commit aa14b02
Show file tree
Hide file tree
Showing 14 changed files with 399 additions and 206 deletions.
3 changes: 2 additions & 1 deletion contrib/google.golang.org/grpc/appsec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
package grpc

import (
"context"

"gopkg.in/DataDog/dd-trace-go.v1/ddtrace"
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/dyngo"
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/dyngo/instrumentation"
Expand All @@ -15,7 +17,6 @@ import (
"gopkg.in/DataDog/dd-trace-go.v1/internal/log"

"github.com/DataDog/appsec-internal-go/netip"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
Expand Down
1 change: 1 addition & 0 deletions contrib/google.golang.org/grpc/appsec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ func (r *appsecRig) Close() {
}

type appsecFixtureServer struct {
UnimplementedFixtureServer
s fixtureServer
}

Expand Down
2 changes: 1 addition & 1 deletion contrib/google.golang.org/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package grpc

import (
"context"
"net"

"gopkg.in/DataDog/dd-trace-go.v1/contrib/google.golang.org/internal/grpcutil"
Expand All @@ -14,7 +15,6 @@ import (
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"gopkg.in/DataDog/dd-trace-go.v1/internal/log"

context "golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
Expand Down

0 comments on commit aa14b02

Please sign in to comment.