Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Update module dependencies and Go version #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: go
go_import_path: contrib.go.opencensus.io

go:
- 1.11.x
- 1.16.x

env:
global:
Expand Down
6 changes: 3 additions & 3 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package jaeger

import (
"context"
"fmt"
"io"
"net"
Expand Down Expand Up @@ -71,10 +72,9 @@ func newAgentClientUDP(hostPort string, maxPacketSize int) (*agentClientUDP, err
}

// EmitBatch implements EmitBatch() of Agent interface
func (a *agentClientUDP) EmitBatch(batch *jaeger.Batch) error {
func (a *agentClientUDP) EmitBatch(ctx context.Context, batch *jaeger.Batch) error {
a.thriftBuffer.Reset()
a.client.SeqId = 0 // we have no need for distinct SeqIds for our one-way UDP messages
if err := a.client.EmitBatch(batch); err != nil {
if err := a.client.EmitBatch(ctx, batch); err != nil {
return err
}
if a.thriftBuffer.Len() > a.maxPacketSize {
Expand Down
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module contrib.go.opencensus.io/exporter/jaeger

go 1.16

require (
github.com/uber/jaeger-client-go v2.25.0+incompatible
go.opencensus.io v0.22.4
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 // indirect
google.golang.org/api v0.29.0
github.com/uber/jaeger-client-go v2.29.1+incompatible
go.opencensus.io v0.23.0
google.golang.org/api v0.51.0
)
Loading