1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-16 02:47:20 +02:00
Commit Graph

2938 Commits

Author SHA1 Message Date
Tyler Yahn
14441aefdf
Identify logger with schemaURL in global logger provider (#5375)
Fix #5366
2024-05-18 11:00:00 +02:00
Damien Mathieu
ebd0adee35
Split log/logtest into a recorder and a logger (#5365)
The current logtest.Recorder implementation is wrong. We have a single
`Recorder`, which acts as both a `LoggerProvider`, and a `Logger`,
making it possible to emit a log entry with the root recorder, which
shouldn't be possible with the API.

This change introduces a new private struct, `logger` that acts as the
recording logger, while `Recorder` becomes only a LoggerProvider and not
a Logger anymore.

Closes #5357.

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-05-17 07:28:40 -07:00
Sam Xie
0d1e77c854
Fix package prefix of error in otlploghttp (#5371) 2024-05-17 09:23:39 +02:00
Sam Xie
76c06107b6
Collector example: add metrics (#5283)
Resolves #5243
2024-05-16 19:33:17 +02:00
Tyler Yahn
dafe137bbe
Add the synchronous gauge to the metric API and SDK (#5304)
Resolve #5225 

The specification has [added a synchronous gauge
instrument](https://github.com/open-telemetry/opentelemetry-specification/pull/3540).
That instrument has now been
[stabilized](https://github.com/open-telemetry/opentelemetry-specification/pull/4019),
and that stabilization is included in the [next
release](https://github.com/open-telemetry/opentelemetry-specification/pull/4034).

This adds the new synchronous gauge instrument to the metric API and all
implementation we publish.

This change will be a breaking change for any SDK developer. The
`embedded` package is updated to ensure our compatibility guarantees are
meet.

---------

Co-authored-by: David Ashpole <dashpole@google.com>
2024-05-16 09:56:40 -07:00
Robert Pająk
166b3473dd
[chore] Fix wrong type in DESIGN.md (#5368) 2024-05-16 13:56:22 +02:00
Yijie Ma
bf06b80a77
[chore] Fix 2 places in log design doc (#5364) 2024-05-16 09:02:37 +02:00
renovate[bot]
8fecf5d628
chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.20.0 (#5363)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-16 03:46:48 +02:00
renovate[bot]
f8382e73c7
chore(deps): update module google.golang.org/genproto/googleapis/api to v0.0.0-20240515191416-fc5f0ca64291 (#5361)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-16 03:27:54 +02:00
renovate[bot]
3c2b34cfda
chore(deps): update module google.golang.org/genproto/googleapis/rpc to v0.0.0-20240515191416-fc5f0ca64291 (#5362)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-15 16:52:46 -07:00
Tyler Yahn
aecd315296
Fix logger provider var name (#5358) 2024-05-15 18:34:34 +02:00
renovate[bot]
7708ace911
fix(deps): update module google.golang.org/grpc to v1.64.0 (#5354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-15 12:36:29 +02:00
Damien Mathieu
08c8b3224a
log: Fix comparison of unordered map values (#5306) 2024-05-15 12:28:23 +02:00
Tyler Yahn
56bb4cf63e
Add logs to dice example (#5349)
* Add logs to dice example

Use slog to log a message on the server handler.

* Add changelog entry

* Split impl for 1.22 and 1.21
2024-05-14 13:00:49 -07:00
renovate[bot]
e94b07d5fd
chore(deps): update codecov/codecov-action action to v4.4.0 (#5353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 12:00:23 -07:00
renovate[bot]
2efd53b3bb
chore(deps): update module github.com/prometheus/procfs to v0.15.0 (#5352)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 07:52:33 -07:00
renovate[bot]
74ca4c0d71
chore(deps): update module google.golang.org/genproto/googleapis/rpc to v0.0.0-20240513163218-0867130af1f8 (#5351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:18:32 -07:00
renovate[bot]
a38f29bddb
chore(deps): update module google.golang.org/genproto/googleapis/api to v0.0.0-20240513163218-0867130af1f8 (#5350)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:11:30 -07:00
Sam Xie
3d51fa95c6
Remove dependabot version updates (#5346)
* Remove dependabot.yml file to disable version updates from Dependabot

* Remove dbotconf command in makefile

* Remove dbotconf tool

* Remove dependabot in workflows

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-05-13 08:38:02 -07:00
Robert Pająk
7ba796cb39
sdk/log: Document how Processor and Exporter interfaces can be extended (#5347) 2024-05-11 17:21:33 +02:00
Tyler Yahn
69800ee189
Support Delta & Cumulative temporality for LastValue aggregates (#5305)
* Add delta/cumulative/precomputed LastValue agg

* Add cumulative testing

* Add precomputed testing

* Add changelog entry
2024-05-10 07:19:46 -07:00
renovate[bot]
737f88584a
chore(deps): update module google.golang.org/genproto/googleapis/api to v0.0.0-20240509183442-62759503f434 (#5344)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 16:03:59 -07:00
renovate[bot]
3380296393
chore(deps): update module google.golang.org/genproto/googleapis/rpc to v0.0.0-20240509183442-62759503f434 (#5345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 15:51:52 -07:00
Sam Xie
5d1e2a5b88
Update RELEASING.md to obtain steps to verify the changes for contrib (#5284)
* Add steps to verify the code changes for contrib

* Update release issue template

* Relace steps with the refernece to contrib

* Update RELEASING.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-05-09 15:05:56 -07:00
Anton Manakin
c00a51af86
Record links with empty span context (#5315)
* record links with empty span context

* add global trace state

* fix test comments and changelog

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-05-09 13:25:02 -07:00
Sam Xie
9f1de8415e
Fix empty log body printed by stdoutlog exporter (#5311) 2024-05-09 21:41:36 +02:00
Tyler Yahn
9e7d7446c3
Test metric aggregate times (#5323) 2024-05-09 20:11:32 +02:00
Anthony Mirabella
d0068d09e7
Move Aneurysm9 to emeritus status (#5319)
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
Co-authored-by: Aaron Clawson <3766680+MadVikingGod@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-05-09 09:29:45 -07:00
renovate[bot]
4e03b7e436
chore(deps): update prom/prometheus docker tag to v2.52.0 (#5338)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 18:11:21 +02:00
renovate[bot]
be55f00302
chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.100.0 (#5337)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 18:02:32 +02:00
renovate[bot]
31eeb21d1e
chore(deps): update jaegertracing/all-in-one docker tag to v1.57 (#5329)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 17:55:58 +02:00
renovate[bot]
d6a3f8ddde
fix(deps): update module github.com/prometheus/client_golang to v1.19.1 (#5341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 14:53:59 +02:00
Sam Xie
498292b836
Generate internal/retry in otlploggrpc (#5313) 2024-05-09 07:46:43 +02:00
Kevin Burke
654ce01171
exporters/otlp/otlptrace: fix incorrect documentation (#5098)
Co-authored-by: Sam Xie <sam@samxie.me>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-05-09 07:38:03 +02:00
Harish
1430e3fcd2
Merge Span.AddLink tests (#5115) 2024-05-09 07:09:30 +02:00
renovate[bot]
a8d4eef2b9
fix(deps): update module github.com/golangci/golangci-lint to v1.58.1 (#5340)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 21:50:13 +02:00
renovate[bot]
c75cfb3ee0
chore(deps): update module github.com/rogpeppe/go-internal to v1.12.0 (#5334)
* chore(deps): update module github.com/rogpeppe/go-internal to v1.12.0

* Auto-fix go.sum changes in dependent modules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-05-08 12:44:19 -07:00
renovate[bot]
8ac1da0662
chore(deps): update module github.com/cespare/xxhash/v2 to v2.3.0 (#5330)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 21:25:30 +02:00
renovate[bot]
abfd7eff4f
chore(deps): update module github.com/prometheus/procfs to v0.14.0 (#5333)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 21:21:03 +02:00
renovate[bot]
b0ce56f431
fix(deps): update module google.golang.org/protobuf to v1.34.1 (#5328)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 21:14:38 +02:00
renovate[bot]
8ea5ab78e5
chore(deps): update module golang.org/x/net to v0.25.0 (#5335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 21:06:15 +02:00
renovate[bot]
b34a1424c2
chore(deps): update module github.com/prometheus/common to v0.53.0 (#5332)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 20:52:21 +02:00
renovate[bot]
b13d084eb9
fix(deps): update module golang.org/x/exp to v0.0.0-20240506185415-9bf2ced13842 (#5327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 20:43:19 +02:00
renovate[bot]
cac5183fab
chore(deps): update module google.golang.org/genproto/googleapis/rpc to v0.0.0-20240506185236-b8a5c65736ae (#5325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 20:36:47 +02:00
renovate[bot]
53779726d2
chore(deps): update module gopkg.in/check.v1 to v1.0.0-20201130134442-10cb98267c6c (#5326)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 20:14:34 +02:00
renovate[bot]
aa1c78fddc
chore(deps): update module google.golang.org/genproto/googleapis/api to v0.0.0-20240506185236-b8a5c65736ae (#5321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 09:58:49 -07:00
renovate[bot]
39482b3a7e
chore(deps): update module github.com/golang/groupcache to v0.0.0-20210331224755-41bb18bfe9da (#5320)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 09:34:41 -07:00
renovate[bot]
433fb625f8
chore: Configure Renovate (#5309)
* Add renovate.json

* Update renovate.json

* Update renovate.json

Co-authored-by: Sam Xie <sam@samxie.me>

* Update renovate.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Sam Xie <sam@samxie.me>
2024-05-08 09:04:53 -07:00
Tyler Yahn
0fce441edb
Rename sync inst names (#5303) 2024-05-08 08:10:41 -07:00
Tyler Yahn
ae06a80417
Log records dropped by the BatchProcessor (#5276)
* Add dropped count to queue

* Log dropped records

* Add changelog entry

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-05-08 07:42:09 -07:00