Releases v1.28.0/v0.50.0/v0.4.0
Overview
Added
- The
IsEmpty
method is added to theInstrument
type ingo.opentelemetry.io/otel/sdk/metric
.
This method is used to check if anInstrument
instance is a zero-value. (#5431) - Store and provide the emitted
context.Context
inScopeRecords
ofgo.opentelemetry.io/otel/sdk/log/logtest
. (#5468) - The
go.opentelemetry.io/otel/semconv/v1.26.0
package.
The package contains semantic conventions from thev1.26.0
version of the OpenTelemetry Semantic Conventions. (#5476) - The
AssertRecordEqual
method togo.opentelemetry.io/otel/log/logtest
to allow comparison of two log records in tests. (#5499) - The
WithHeaders
option togo.opentelemetry.io/otel/exporters/zipkin
to allow configuring custom http headers while exporting spans. (#5530)
Changed
Tracer.Start
ingo.opentelemetry.io/otel/trace/noop
no longer allocates a span for empty span context. (#5457)- Upgrade
go.opentelemetry.io/otel/semconv/v1.25.0
togo.opentelemetry.io/otel/semconv/v1.26.0
ingo.opentelemetry.io/otel/example/otel-collector
. (#5490) - Upgrade
go.opentelemetry.io/otel/semconv/v1.25.0
togo.opentelemetry.io/otel/semconv/v1.26.0
ingo.opentelemetry.io/otel/example/zipkin
. (#5490) - Upgrade
go.opentelemetry.io/otel/semconv/v1.25.0
togo.opentelemetry.io/otel/semconv/v1.26.0
ingo.opentelemetry.io/otel/exporters/zipkin
. (#5490)- The exporter no longer exports the deprecated "otel.library.name" or "otel.library.version" attributes.
- Upgrade
go.opentelemetry.io/otel/semconv/v1.25.0
togo.opentelemetry.io/otel/semconv/v1.26.0
ingo.opentelemetry.io/otel/sdk/resource
. (#5490) - Upgrade
go.opentelemetry.io/otel/semconv/v1.25.0
togo.opentelemetry.io/otel/semconv/v1.26.0
ingo.opentelemetry.io/otel/sdk/trace
. (#5490) SimpleProcessor.OnEmit
ingo.opentelemetry.io/otel/sdk/log
no longer allocates a slice which makes it possible to have a zero-allocation log processing usingSimpleProcessor
. (#5493)- Use non-generic functions in the
Start
method of"go.opentelemetry.io/otel/sdk/trace".Trace
to reduce memory allocation. (#5497) service.instance.id
is populated for aResource
created with"go.opentelemetry.io/otel/sdk/resource".Default
with a default value whenOTEL_GO_X_RESOURCE
is set. (#5520)- Improve performance of metric instruments in
go.opentelemetry.io/otel/sdk/metric
by removing unnecessary calls totime.Now
. (#5545)
Fixed
- Log a warning to the OpenTelemetry internal logger when a
Record
ingo.opentelemetry.io/otel/sdk/log
drops an attribute due to a limit being reached. (#5376) - Identify the
Tracer
returned from the globalTracerProvider
ingo.opentelemetry.io/otel/global
with its schema URL. (#5426) - Identify the
Meter
returned from the globalMeterProvider
ingo.opentelemetry.io/otel/global
with its schema URL. (#5426) - Log a warning to the OpenTelemetry internal logger when a
Span
ingo.opentelemetry.io/otel/sdk/trace
drops an attribute, event, or link due to a limit being reached. (#5434) - Document instrument name requirements in
go.opentelemetry.io/otel/metric
. (#5435) - Prevent random number generation data-race for experimental rand exemplars in
go.opentelemetry.io/otel/sdk/metric
. (#5456) - Fix counting number of dropped attributes of
Record
ingo.opentelemetry.io/otel/sdk/log
. (#5464) - Fix panic in baggage creation when a member contains
0x80
char in key or value. (#5494) - Correct comments for the priority of the
WithEndpoint
andWithEndpointURL
options and their corresponding environment variables ingo.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
. (#5508) - Retry trace and span ID generation if it generated an invalid one in
go.opentelemetry.io/otel/sdk/trace
. (#5514) - Fix stale timestamps reported by the last-value aggregation. (#5517)
- Indicate the
Exporter
ingo.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp
must be created by theNew
method. (#5521) - Improved performance in all
{Bool,Int64,Float64,String}SliceValue
functions ofgo.opentelemetry.io/attributes
by reducing the number of allocations. (#5549)
What's Changed
- Recheck log message in TestBatchProcessor by @MrAlias in #5386
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to dc85e6b by @renovate in #5391
- fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog to v0.2.0 by @renovate in #5395
- fix(deps): update module github.com/go-logr/logr to v1.4.2 by @renovate in #5393
- fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.52.0 by @renovate in #5396
- chore(deps): update google.golang.org/genproto/googleapis/api digest to d264139 by @renovate in #5397
- fix(deps): update module go.opentelemetry.io/otel/sdk/log to v0.3.0 by @renovate in #5398
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.101.0 by @renovate in #5400
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to d264139 by @renovate in #5399
- [chore] example/otel-collector: Fix README title by @pellared in #5404
- Pool
otlploghttp
transform maps by @MrAlias in #5378 - fix(deps): update module golang.org/x/vuln to v1.1.1 by @renovate in #5405
- Fix test name in otlploghttp by @XSAM in #5411
- sdk/log: Fix BenchmarkLoggerNewRecord to not drop attributes by @pellared in #5407
- chore(deps): update dependency codespell to v2.3.0 by @renovate in #5409
- fix(deps): update module github.com/golangci/golangci-lint to v1.59.0 by @renovate in #5419
- fix(deps): update golang.org/x/tools digest to 7045d2e by @renovate in #5406
- fix(deps): update golang.org/x/exp digest to 4c93da0 by @renovate in #5415
- Log a warning when log Record attribute is dropped by @MrAlias in #5376
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to a332354 by @renovate in #5424
- chore(deps): update google.golang.org/genproto/googleapis/api digest to a332354 by @renovate in #5423
- fix(deps): update golang.org/x/tools digest to f10a0f1 by @renovate in #5430
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to 5315273 by @renovate in #5428
- chore(deps): update google.golang.org/genproto/googleapis/api digest to 5315273 by @renovate in #5427
- fix(deps): update golang.org/x/tools digest to e229045 by @renovate in #5432
- fix(deps): update golang.org/x/exp digest to 23cca88 by @renovate in #5429
- sdk/log: Fix TestBatchProcessor/DroppedLogs flaky test by @amanakin in #5421
- Identify global
Tracer
s andMeter
s with their schema URLs by @MrAlias in #5426 - sdk/log: Fix TestBatchProcessor/ForceFlush/ErrorPartialFlush flaky test by @amanakin in #5416
- Export the Instrument IsEmpty method by @MrAlias in #5431
- fix(deps): update golang.org/x/tools digest to 01018ba by @renovate in #5438
- [chore] ensure codecov uses token by @codeboten in #5440
- fix(deps): update golang.org/x/tools digest to 8d54ca1 by @renovate in #5441
- fix(deps): update golang.org/x/tools digest to 2e977dd by @renovate in #5442
- Remove zeroInstrumentKind by @MrAlias in #5433
- Log warning when a trace attribute/event/link is discarded due to limits by @MrAlias in #5434
- Remove opentelemetry-proto in .gitsubmodule by @YHM404 in #5267
- Document instrument name requirements by @MrAlias in #5435
- fix(deps): update golang.org/x/exp digest to 404ba88 by @renovate in #5445
- Move
MonotonicEndTime
to only use by @MrAlias in #5443 - fix(deps): update golang.org/x/tools digest to 624dbd0 by @renovate in #5446
- fix(deps): update golang.org/x/exp digest to fd00a4e by @renovate in #5450
- fix(deps): update golang.org/x/tools digest to 2f8e378 by @renovate in #5451
- fix(deps): update golang.org/x/tools digest to cc29c91 by @renovate in #5452
- chore(deps): update module github.com/prometheus/procfs to v0.15.1 by @renovate in #5453
- sdk/log: Add processor benchmarks by @pellared in #5448
- fix(deps): update module github.com/itchyny/gojq to v0.12.16 by @renovate in #5460
- Guard rng in exemplar rand computation by @MrAlias in #5456
- chore(deps): update module github.com/prometheus/common to v0.54.0 by @renovate in #5472
- add
log
package to depguard linter by @amanakin in #5463 - fix(deps): update golang.org/x/tools digest to 58cc8a4 by @renovate in #5473
- fix(deps): update golang.org/x/tools digest to 4478db0 by @renovate in #5474
- sdk/log: Fix counting number of dropped attributes of log
Record
by @amanakin in #5464 - fix(deps): update golang.org/x/tools digest to 2088083 by @renovate in #5477
- trace: Span in noop.Start is no longer allocated by @tttoad in #5457
- chore(deps): update module golang.org/x/sys to v0.21.0 by @renovate in #5481
- fix(deps): update module golang.org/x/tools to v0.22.0 by @renovate in #5485
- Bump min Go version used in CI by @MrAlias in #5489
- chore(deps): update module golang.org/x/text to v0.16.0 by @renovate in #5482
- Add
semconv/v1.26.0
, removes deprecated semconvs by @MadVikingGod in #5476 - Add the sdk/internal/x package by @MrAlias in #5444
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.102.0 by @renovate in #5479
- chore(deps): update module golang.org/x/net to v0.26.0 by @renovate in #5484
- chore(deps): update google.golang.org/genproto/googleapis/api digest to ef581f9 by @renovate in #5486
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to ef581f9 by @renovate in #5487
- fix(deps): update golang.org/x/exp digest to fc45aab by @renovate in #5488
- log/logtest: provide record with their context by @dmathieu in #5468
- Upgrade semconv use to v1.26.0 by @MrAlias in #5490
- sdk/log: Remove slice allocation from SimpleProcessor.OnEmit by @pellared in #5493
- fix(deps): update module golang.org/x/vuln to v1.1.2 by @renovate in #5496
- fix(deps): update module github.com/golangci/golangci-lint to v1.59.1 by @renovate in #5498
- chore(deps): update google.golang.org/genproto/googleapis/api digest to a8a6208 by @renovate in #5501
- Introduce logtest.AssertRecordEqual by @dmathieu in #5499
- Add implementation of otlploggrpc configuration by @XSAM in #5383
- fix(deps): update golang.org/x/exp digest to 7f521ea by @renovate in #5512
- Move evantorrie to emeritus status by @evantorrie in #5507
- Add missing word in WithView() doc string by @juliusv in #5506
- chore(deps): update codecov/codecov-action action to v4.5.0 by @renovate in #5509
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.102.1 by @renovate in #5491
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to a8a6208 by @renovate in #5502
- fix(deps): update module google.golang.org/protobuf to v1.34.2 by @renovate in #5503
- trace: Use non-generic to replace newEvictedQueue in trace.start to reduce memory usage. by @tttoad in #5497
- chore(deps): update jaegertracing/all-in-one docker tag to v1.58 by @renovate in #5504
- fix(deps): update module go.opentelemetry.io/proto/otlp to v1.3.1 by @renovate in #5505
- fix(baggage): validate chars panic with 0x80 by @fabiobozzo in #5494
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to 68d350f by @renovate in #5516
- chore(deps): update google.golang.org/genproto/googleapis/api digest to 68d350f by @renovate in #5515
- Correct the comment for the priority of options and environments on otlptracegrpc by @XSAM in #5508
- Fix IDGenerator may generate zero TraceId / SpanId by @Charlie-lizhihan in #5514
- Fix timestamp handling for the lastvalue aggregation by @dashpole in #5517
- Add tenv linter by @dmathieu in #5524
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.103.0 by @renovate in #5526
- chore(deps): update prom/prometheus docker tag to v2.53.0 by @renovate in #5525
- Do not fail CI on codecov create report by @MrAlias in #5532
- Add unconvert linter by @dmathieu in #5529
- Add unparam linter by @dmathieu in #5531
- Add example for synchronous gauge by @bagmeg in #5492
- Add
newClient
method for otlploggrpc gRPC client by @XSAM in #5523 - Verify versions.yaml is up to date in CI by @MrAlias in #5533
- Populate
service.instance.id
with a default value whenOTEL_GO_X_RESOURCE
is set by @pyohannes in #5520 - chore(deps): update google.golang.org/genproto/googleapis/api digest to dc46fd2 by @renovate in #5538
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to dc46fd2 by @renovate in #5539
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.103.1 by @renovate in #5540
- Decouple codecov upload from coverage testing by @MrAlias in #5534
- Add errorlint linter by @dmathieu in #5535
- Add WithHeaders option for Zipkin exporter by @srijan-27 in #5530
- chore(deps): update module github.com/prometheus/common to v0.55.0 by @renovate in #5552
- Indicate the otlploghttp exporter must be created by the New method by @XSAM in #5521
- sdk/log: Add altering Processor example by @pellared in #5550
- Split the set and add attributes benchmarks by @dmathieu in #5546
- Add walk attributes benchmark by @dmathieu in #5547
- Add benchmark retrieving a new logger by @dmathieu in #5548
- chore(deps): update jaegertracing/all-in-one docker tag to v1.54 by @renovate in #5555
- chore(deps): update jaegertracing/all-in-one docker tag to v1.58 by @renovate in #5556
- Reduces allocation in attributes by @Succo in #5549
- Generate
internal/transform
inotlploggrpc
by @XSAM in #5553 - Split the span start/end benchmarks and test start with links and attributes by @dmathieu in #5554
- sdk/log: Fix ExampleProcessor_redact to clone the record by @pellared in #5559
- sdk/log: Add filtering Processor example by @pellared in #5543
- chore(deps): update google.golang.org/genproto/googleapis/api digest to f6361c8 by @renovate in #5563
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest to f6361c8 by @renovate in #5564
- Move time.Now call into exemplar reservoir to improve performance by @dashpole in #5545
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.104.0 by @renovate in #5565
- Add @XSAM and @dmathieu as repository maintainers by @MrAlias in #5558
- Releases v1.28.0/v0.50.0/v0.4.0 by @MrAlias in #5569
New Contributors
- @YHM404 made their first contribution in #5267
- @juliusv made their first contribution in #5506
- @fabiobozzo made their first contribution in #5494
- @Charlie-lizhihan made their first contribution in #5514
- @bagmeg made their first contribution in #5492
- @pyohannes made their first contribution in #5520
- @srijan-27 made their first contribution in #5530
- @Succo made their first contribution in #5549
Full Changelog: v1.27.0...v1.28.0