1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Commit Graph

2542 Commits

Author SHA1 Message Date
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
Sam Xie 2cf3d64f3e Upgrade default go verison to 1.22.3 (#5314) 2024-05-08 06:25:24 +02:00
Tyler Yahn 2f662dbe13 Refactor exemplars to not use generic argument (#5285)
* Refactor exemplars to not use generic argument

* Update internal/aggregate

* Update metric SDK

* Test exemplar value type

* Add TestCollectExemplars

* Fix lint

---------

Co-authored-by: Sam Xie <sam@samxie.me>
2024-05-07 08:12:59 -07:00
Damien Mathieu f8b9fe3dbe Emit attributes slices as their json representation (#5159)
* emit slices as their json representation

* add changelog

* fix resource tests

* indicate invalid slice if we couldn't turn them into json

* move changelog entry to the unreleased section

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-05-07 07:42:07 -07:00
Moises Vega 0fc35e0e93 feat: opt for concatenation instead of using fmt.Sprintf (#5286)
* feat: opt for concatenation instead of using fmt.Sprintf

* Update Changelog

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Damien Mathieu <damien.mathieu@elastic.co>
2024-05-07 07:19:08 -07:00
Tyler Yahn f23078e52a Fix HistogramConfig docs (#5301) 2024-05-06 19:16:41 +02:00
Tyler Yahn f8840b9a51 Fix type error in float64 instrument docs (#5302) 2024-05-06 19:04:57 +02:00
Tyler Yahn 36bee9356a Use reflect to construct a Record in logtest (#5275)
* Use reflect to construct Record

* Fix merge

* Fix merge
2024-05-06 09:03:14 -07:00
arukiidou e0ed6a3028 docs: Add logs exporters in README.md (#5298) 2024-05-06 11:03:12 +02:00
arukiidou c5807d4dbc docs: Update logs status to alpha (#5299) 2024-05-06 09:55:20 +02:00
dependabot[bot] c7b5627ec5 build(deps): bump codecov/codecov-action from 4.3.0 to 4.3.1 (#5296)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-05 10:06:08 -07:00
OpenTelemetry Bot c25eeeadca dependabot updates Sun May 5 15:58:11 UTC 2024 (#5300)
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlptrace/otlptracehttp
build(deps): bump codecov/codecov-action from 4.3.0 to 4.3.1
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlptrace
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlptrace/otlptracegrpc
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/prometheus
build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 in /sdk
build(deps): bump github.com/golangci/golangci-lint from 1.57.2 to 1.58.0 in /internal/tools
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlpmetric/otlpmetrichttp
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlplog/otlploghttp
build(deps): bump github.com/openzipkin/zipkin-go from 0.4.2 to 0.4.3 in /exporters/zipkin
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 in /exporters/otlp/otlpmetric/otlpmetricgrpc
2024-05-05 09:16:04 -07:00
Sam Xie dbfc75817a Use docker compose in otel collector example (#5244)
* Remove k8s files

* Add docker compose file

* Update endpoint in main.go

* Update README to use docker compose

* Update CHANGELOG

* Add Shutting down section for cleanup steps

* Replace logging exporter with debug exporter

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
2024-05-02 07:44:54 -07:00
Tyler Yahn 7ee6ff19b5 Add README templ to semconvkit (#5279) 2024-05-01 08:06:51 -07:00
Tyler Yahn 3fa1c197bf Test scope and resource transforms in otlploghttp (#5278) 2024-05-01 07:10:30 -07:00
Sam Xie d5945a9dba The stdoutlog exporter prints DroppedAttributes field instead of Limits fields (#5272)
* Add tests for resource, scope, dropped attributes

* Update CHANGELOG

* Apply suggestions from code review

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-04-30 10:26:26 -07:00
arukiidou 1980e0e356 docs: Add otlploghttp package in exporters README.md (#5274)
* Update README.md

Add logs package in README.md

* Update exporters/README.md

Co-authored-by: Damien Mathieu <42@dmathieu.com>

* Update exporters/README.md

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

---------

Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-04-30 09:00:57 -07:00
Tyler Yahn d1d390e739 Add changelog entry for #5230 (#5277) 2024-04-30 07:24:56 -07:00
Tyler Yahn 1e357c7c9a Truncate and de-duplicate log attribute values (#5230)
* Truncate and de-duplicate log attr values

* Fix test in otlploghttp

* Remove duplicate decl of assertKV
2024-04-29 07:51:22 -07:00
Tyler Yahn 97948259ec Use empty resource when RecordFactory.Resource nil (#5264) 2024-04-28 19:07:43 +02:00
Alex Boten c9c15038ba docs: update variable name in documentation (#5270)
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-04-26 15:01:19 -07:00
dependabot[bot] fd7d4868c9 build(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (#5265)
Bumps [go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.50.0 to 0.51.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.50.0...zpages/v0.51.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-04-26 08:00:56 -07:00
dockercui 24d36d6931 chore: fix function names in comment (#5262)
Signed-off-by: dockercui <dockercui@aliyun.com>
2024-04-26 10:11:23 +02:00
dependabot[bot] f56f52472f build(deps): bump lycheeverse/lychee-action from 1.9.3 to 1.10.0 (#5266)
Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 1.9.3 to 1.10.0.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](https://github.com/lycheeverse/lychee-action/compare/v1.9.3...v1.10.0)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-25 21:01:41 +02:00
Sam Xie fb697e8a8b Add otlploggrpc exporter skeleton (#5246) 2024-04-25 18:57:24 +02:00
Sam Xie 19ee6d4775 Fix flaky test TestBufferExporter/Shutdown/ContextCancelled (#5261) 2024-04-25 17:46:39 +02:00
Prasad Shirodkar fd6d4db8c3 Remove context check on stdout exporters (#5189) 2024-04-25 17:11:45 +02:00
Sam Xie 37619eada9 Add example for stdoutlog (#5242) 2024-04-25 12:24:31 +02:00
Sam Xie 27e0344491 stdoutlog: Do not print timestamps when WithoutTimestamps is set (#5241) 2024-04-25 10:19:18 +02:00
Damien Mathieu f33d40886d log/logtest: add Record Factory (#5263) 2024-04-25 07:22:39 +02:00
Robert Pająk df455db04d sdk/log/logtest: Add RecordFactory (#5258) 2024-04-25 07:09:34 +02:00
Sam Xie 9656d0afa7 Release 1.26.0/0.48.0/0.2.0-alpha (#5260)
* Bump versions in versions.yaml

* Prepare stable-v1 for version v1.26.0

* Prepare experimental-metrics for version v0.48.0

* Prepare experimental-logs for version v0.2.0-alpha

* Prepare experimental-schema for version v0.0.9

* Update CHANGELOG

* Unbump experimental-schema

* Update CHANGELOG.md

Co-authored-by: Robert Pająk <pellared@hotmail.com>

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
exporters/stdout/stdoutlog/v0.2.0-alpha exporters/otlp/otlplog/otlploghttp/v0.2.0-alpha sdk/log/v0.2.0-alpha log/v0.2.0-alpha exporters/prometheus/v0.48.0 example/prometheus/v0.48.0 trace/v1.26.0 sdk/metric/v1.26.0 sdk/v1.26.0 metric/v1.26.0 exporters/zipkin/v1.26.0 exporters/stdout/stdouttrace/v1.26.0 exporters/stdout/stdoutmetric/v1.26.0 exporters/otlp/otlptrace/otlptracehttp/v1.26.0 exporters/otlp/otlptrace/otlptracegrpc/v1.26.0 exporters/otlp/otlptrace/v1.26.0 exporters/otlp/otlpmetric/otlpmetrichttp/v1.26.0 exporters/otlp/otlpmetric/otlpmetricgrpc/v1.26.0 example/zipkin/v1.26.0 example/passthrough/v1.26.0 example/otel-collector/v1.26.0 example/namedtracer/v1.26.0 example/dice/v1.26.0 bridge/opentracing/test/v1.26.0 bridge/opentracing/v1.26.0 bridge/opencensus/test/v1.26.0 bridge/opencensus/v1.26.0 v1.26.0 example/opencensus/v1.26.0
2024-04-24 07:27:22 -07:00
Tyler Yahn 29e1c7e3e4 Add custom ring implementation to the BatchProcessor (#5237) 2024-04-24 12:07:15 +02:00
Robert Pająk baeb560673 sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shutdown (#5259) 2024-04-23 20:19:05 +02:00
Tyler Yahn ae55e29744 Remove left-over TODO in otlploghttp (#5256) 2024-04-23 18:34:55 +02:00
Tyler Yahn fe8e3a1b42 Semconv v1.25.0 (#5254) 2024-04-23 17:29:17 +02:00
Sam Xie bf37c5a3a4 Revert the usage of go.opentelemetry.io/proto/slim (#5253)
* Revert "otlpmetrichttp: Use go.opentelemetry.io/proto/slim/otlp (#5222)"

This reverts commit 6e92163d6a.

* Revert "otlploghttp: Use go.opentelemetry.io/proto/slim/otlp (#5216)"

This reverts commit fe3de7059e.

* Remove slim dep

* Fix CI
2024-04-23 07:12:25 +02:00
Tyler Yahn b34cfc47c4 Default implementation for empty BatchProcessor (#5239)
Ensure an empty BatchProcessor does not panic when any method is called.
Default an empty BatchProcessor as being shut down.
2024-04-22 16:21:49 +02:00
Sam Xie 9370c5a01f Implement resource serialization for stdoutlog (#5213) 2024-04-22 13:33:26 +02:00
Robert Pająk 6e92163d6a otlpmetrichttp: Use go.opentelemetry.io/proto/slim/otlp (#5222) 2024-04-22 13:07:29 +02:00
dependabot[bot] f88533381b build(deps): bump golang.org/x/vuln in /internal/tools (#5245)
Bumps [golang.org/x/vuln](https://github.com/golang/vuln) from 1.0.4 to 1.1.0.
- [Release notes](https://github.com/golang/vuln/releases)
- [Commits](https://github.com/golang/vuln/compare/v1.0.4...v1.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/vuln
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 21:35:53 +02:00
Tyler Yahn 48f028ffd3 Add sdk/log, stdoutlog, and otlploghttp to next release (#5240)
* Add sdk/log, stdoutlog, and otlploghttp to next release

Include go.opentelemetry.io/otel/sdk/log,
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, and
go.opentelemetry.io/otel/exporters/stdout/stdoutlog in the
experimental-logs module set.

* Add releases to changelog

* Remove unreleased module changes
2024-04-20 13:24:51 +02:00
Tyler Yahn 727395ad0e Add example test to otlploghttp (#5235) 2024-04-20 11:51:04 +02:00
Tyler Yahn 1ea4ee2717 Add the otlploghttp HTTP client (#5224)
* Add the HTTP client

* Add client tests

* Clean up

* Fix merge
2024-04-19 10:17:11 -07:00
Tyler Yahn 94eb27fb40 Rename batching configuration (#5236)
Match the BatchProcessor and name these decls "batch*."
2024-04-19 18:56:31 +02:00
Tyler Yahn ed2e2b0225 Add environment variable support to otlploghttp (#5223)
* Add the setting type

* Implement options

* Add fallbacks

* Test config defaults

* Support envars

* Test envars

* Test OTLP envars

* Test options having precedence

* Fix lint

* Test envars errs

* Comment

* Fix imports

* Fix path expectation

* Fix alt path parsing

* Parse none compression
2024-04-19 07:32:53 -07:00
Robert Pająk 1f76264a2e [chore] Rebuild .tools as they can be outdated (#5220) 2024-04-19 09:02:14 +02:00