Skip to content

Commit 80057a4

Browse files
authored
Update to opentelemetry-collector v0.34.0 (#6106)
* Update otel-collector to v0.34.0 * processor/otel: use model/semconv package * Use opentelemetry-collector-contrib/pkg/translator/jaeger * processor/otel: adapt to upstream metrics changes - no more distrinct Int/Double metric types, but there are now Int/Double numeric values - labels replaced with attributes
1 parent d2ee2dd commit 80057a4

File tree

602 files changed

+3075
-43827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

602 files changed

+3075
-43827
lines changed

NOTICE.txt

Lines changed: 498 additions & 58 deletions
Large diffs are not rendered by default.

beater/jaeger/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"context"
2222

2323
"github.com/jaegertracing/jaeger/model"
24+
jaegertranslator "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger"
2425
"go.opentelemetry.io/collector/consumer"
25-
trjaeger "go.opentelemetry.io/collector/translator/trace/jaeger"
2626

2727
"github.com/elastic/beats/v7/libbeat/monitoring"
2828

@@ -51,6 +51,6 @@ func consumeBatch(
5151
) error {
5252
spanCount := int64(len(batch.Spans))
5353
requestMetrics.add(request.IDEventReceivedCount, spanCount)
54-
traces := trjaeger.ProtoBatchToInternalTraces(batch)
54+
traces := jaegertranslator.ProtoBatchToInternalTraces(batch)
5555
return consumer.ConsumeTraces(ctx, traces)
5656
}

beater/jaeger/grpc_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ import (
2525
"time"
2626

2727
"github.com/jaegertracing/jaeger/proto-gen/api_v2"
28+
jaegertranslator "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger"
2829
"github.com/stretchr/testify/assert"
2930
"github.com/stretchr/testify/require"
3031
"go.opentelemetry.io/collector/consumer"
3132
"go.opentelemetry.io/collector/model/pdata"
32-
"go.opentelemetry.io/collector/translator/trace/jaeger"
3333

3434
"github.com/elastic/beats/v7/libbeat/common"
3535
"github.com/elastic/beats/v7/libbeat/logp"
@@ -90,7 +90,7 @@ func (tc *testGRPCCollector) setup(t *testing.T) {
9090
span1.SetTraceID(pdata.NewTraceID([16]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}))
9191
span1.SetSpanID(pdata.NewSpanID([8]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}))
9292

93-
batches, err := jaeger.InternalTracesToJaegerProto(traces)
93+
batches, err := jaegertranslator.InternalTracesToJaegerProto(traces)
9494
require.NoError(t, err)
9595
require.Len(t, batches, 1)
9696
tc.request = &api_v2.PostSpansRequest{Batch: *batches[0]}

changelogs/head.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ https://github.com/elastic/apm-server/compare/7.13\...master[View commits]
1919
- Fix apm_error_grouping_name and apm_convert_destination_address {pull}5876[5876]
2020
- corrected OTel attribute names for `net.host.connection.*` {pull}5671[5671]
2121
- Fix response to agent config when running under Fleet with no agent config defined {pull}5917[5917]
22+
- Fix handling of OTLP sum/gauge metrics with integer values {pull}6106[6106]
2223

2324
[float]
2425
==== Intake API Changes

go.mod

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ go 1.13
55
require (
66
github.com/DataDog/zstd v1.4.4 // indirect
77
github.com/apache/thrift v0.14.2
8+
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
89
github.com/cespare/xxhash/v2 v2.1.1
910
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
11+
github.com/coreos/bbolt v1.3.2 // indirect
12+
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
1013
github.com/dgraph-io/badger/v2 v2.2007.3-0.20201012072640-f5a7e0a1c83b
14+
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
1115
github.com/dlclark/regexp2 v1.4.0 // indirect
1216
github.com/dop251/goja v0.0.0-20210810150349-acd0507c3d6f // indirect
1317
github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7 // indirect
@@ -20,33 +24,41 @@ require (
2024
github.com/elastic/go-elasticsearch/v8 v8.0.0-20210727161915-8cf93274b968
2125
github.com/elastic/go-hdrhistogram v0.1.0
2226
github.com/elastic/go-ucfg v0.8.4-0.20200415140258-1232bd4774a6
27+
github.com/go-kit/kit v0.10.0 // indirect
28+
github.com/go-openapi/analysis v0.20.1 // indirect
2329
github.com/go-sourcemap/sourcemap v2.1.3+incompatible
2430
github.com/gofrs/uuid v4.0.0+incompatible
2531
github.com/gogo/protobuf v1.3.2
2632
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9
2733
github.com/hashicorp/errwrap v1.1.0 // indirect
2834
github.com/hashicorp/go-multierror v1.1.1
2935
github.com/hashicorp/golang-lru v0.5.4
30-
github.com/jaegertracing/jaeger v1.24.0
36+
github.com/hashicorp/yamux v0.0.0-20190923154419-df201c70410d // indirect
37+
github.com/jaegertracing/jaeger v1.25.0
3138
github.com/josephspurrier/goversioninfo v1.3.0 // indirect
3239
github.com/json-iterator/go v1.1.11
3340
github.com/jstemmer/go-junit-report v0.9.1
3441
github.com/libp2p/go-reuseport v0.0.2
3542
github.com/magefile/mage v1.11.0
43+
github.com/mailru/easyjson v0.7.7 // indirect
3644
github.com/mattn/go-isatty v0.0.13 // indirect
3745
github.com/mitchellh/hashstructure v1.1.0 // indirect
3846
github.com/modern-go/reflect2 v1.0.1
47+
github.com/oklog/run v1.1.0 // indirect
48+
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.34.0 // indirect
3949
github.com/patrickmn/go-cache v2.1.0+incompatible
4050
github.com/pkg/errors v0.9.1
4151
github.com/poy/eachers v0.0.0-20181020210610-23942921fe77 // indirect
4252
github.com/prometheus/procfs v0.7.2 // indirect
53+
github.com/prometheus/tsdb v0.7.1 // indirect
4354
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
4455
github.com/ryanuber/go-glob v1.0.0
4556
github.com/spf13/cobra v1.2.1
4657
github.com/spf13/pflag v1.0.5
4758
github.com/stretchr/testify v1.7.0
4859
github.com/tidwall/gjson v1.6.5
4960
github.com/tidwall/sjson v1.1.1
61+
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
5062
github.com/urso/magetools v0.0.0-20200125210132-c2e338f92f3a // indirect
5163
github.com/xeipuuv/gojsonschema v1.2.0
5264
go.elastic.co/apm v1.13.1
@@ -55,8 +67,9 @@ require (
5567
go.elastic.co/apm/module/apmhttp v1.12.0
5668
go.elastic.co/ecszap v1.0.0 // indirect
5769
go.elastic.co/fastjson v1.1.0
58-
go.opentelemetry.io/collector v0.30.0
59-
go.opentelemetry.io/collector/model v0.30.0
70+
go.mongodb.org/mongo-driver v1.5.2 // indirect
71+
go.opentelemetry.io/collector v0.34.0
72+
go.opentelemetry.io/collector/model v0.34.0
6073
go.uber.org/atomic v1.9.0
6174
go.uber.org/multierr v1.7.0 // indirect
6275
go.uber.org/zap v1.19.0

0 commit comments

Comments
 (0)