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

2409 Commits

Author SHA1 Message Date
Mikhail Mazurskiy 1fe2f03854 Deprecate Sortable (#4734)
* Deprecate Sortable

* Remove redundant checks

* Move code to a non-deprecated func

* Apply suggestions from code review

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

* Mention individual deprecated function

* Update attribute/set.go

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

* Add BenchmarkNewSet

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-03-11 08:31:19 -07:00
OpenTelemetry Bot 2d968c454a dependabot updates Sun Mar 10 09:28:42 UTC 2024 (#5047)
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /exporters/otlp/otlpmetric/otlpmetricgrpc
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/otlp/otlpmetric/otlpmetricgrpc
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/prometheus
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /exporters/otlp/otlptrace/otlptracegrpc
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/otlp/otlptrace/otlptracegrpc
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /bridge/opentracing/test
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/otlp/otlptrace/otlptracehttp
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /exporters/otlp/otlptrace/otlptracehttp
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/otlp/otlptrace
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /exporters/otlp/otlpmetric/otlpmetrichttp
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /exporters/otlp/otlpmetric/otlpmetrichttp
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 in /example/otel-collector
build(deps): bump golang.org/x/sys from 0.17.0 to 0.18.0 in /sdk
build(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0 in /internal/tools
2024-03-10 12:34:44 +01:00
Tyler Yahn fe9bab54b7 Use Distinct instead of Set for map keys (#5027) 2024-03-06 11:11:16 +01:00
dependabot[bot] da2949b7bb build(deps): bump codecov/codecov-action from 3.1.5 to 4.1.0 (#5022)
* build(deps): bump codecov/codecov-action from 3.1.5 to 4.1.0

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.5 to 4.1.0.
- [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/v3.1.5...v4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Add token flag

---------

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 <codingalias@gmail.com>
2024-03-04 10:00:04 -08:00
OpenTelemetry Bot 916d5f25fe dependabot updates Sun Mar 3 18:37:17 UTC 2024 (#5026)
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /sdk/metric
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/otlp/otlptrace/otlptracegrpc
build(deps): bump codecov/codecov-action from 3.1.5 to 4.1.0
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/zipkin
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /metric
build(deps): bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in /example/prometheus
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/stdout/stdouttrace
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/otlp/otlptrace/otlptracehttp
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/otlp/otlpmetric/otlpmetricgrpc
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/otlp/otlptrace
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /trace
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/stdout/stdoutmetric
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /bridge/opentracing
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /schema
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /log
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /sdk
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /bridge/opencensus
build(deps): bump go.opentelemetry.io/build-tools/gotmpl from 0.12.0 to 0.13.0 in /internal/tools
build(deps): bump go.opentelemetry.io/build-tools/multimod from 0.12.0 to 0.13.0 in /internal/tools
build(deps): bump go.opentelemetry.io/build-tools/dbotconf from 0.12.0 to 0.13.0 in /internal/tools
build(deps): bump go.opentelemetry.io/build-tools/semconvgen from 0.12.0 to 0.13.0 in /internal/tools
build(deps): bump go.opentelemetry.io/build-tools/crosslink from 0.12.0 to 0.13.0 in /internal/tools
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/otlp/otlpmetric/otlpmetrichttp
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /bridge/opentracing/test
build(deps): bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in /exporters/prometheus
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /exporters/prometheus
2024-03-03 22:08:09 +01:00
Tyler Yahn fbf26d26d1 Fix dependabot-pr.sh (#5025)
The PR title format has changed. Update script accordingly.
2024-03-03 10:34:43 -08:00
Tyler Yahn a7034da631 Use slices instead of sort pkg (#4992)
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-02-29 13:03:36 -08:00
Tyler Yahn ec8e6ea61f Use slices.Sort in propagators test instead of sort.Slice (#4991) 2024-02-29 08:36:03 +01:00
Tyler Yahn 4ea22d37ac Use slices.SortFunc in OpenCensus bridge instead of sort package (#4990) 2024-02-29 08:16:56 +01:00
Tyler Yahn 0510d11b8d Use slices.SortFunc in OTLP trace exporter instead of sort.Slice (#4989)
Co-authored-by: Sam Xie <sam@samxie.me>
2024-02-29 08:08:43 +01:00
Tyler Yahn 32f3933456 Use slices.Sort in Prometheus exporter instead of sort.Slice (#4988) 2024-02-29 07:13:41 +01:00
Robert Pająk 7dea232a46 [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
Robert Pająk 1d1ecbc5f9 [chore] log: Remove resolved issue from DESIGN.md (#4984) 2024-02-27 19:51:23 +01:00
Tyler Yahn d50a23bf4b Clear aggregate value maps instead of deleting entries (#4981) 2024-02-27 08:22:58 +01:00
Tyler Yahn b302227390 Utilize the new slices package in sdk/metric (#4982) 2024-02-27 08:00:29 +01:00
Tyler Yahn 561714acb2 Drop support for Go 1.20 (#4967)
* Update README.md

* Remove 1.20 support from CI workflows

* Update all go mod

* Add changelog entry

* Update go mod tidy target

* Run go mod tidy

* Replace sliceEqualFunc with slices.EqualFunc

* Replace grow with slices.Grow

* Replace ensureAttributesCapacity with slices.Grow

* Replace conditional with min

* Use slices module for slice comparison in metricdatatest
2024-02-25 10:48:32 -08:00
dependabot[bot] 8fb28b57ce build(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (#4975)
Bumps [go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.48.0 to 0.49.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.48.0...zpages/v0.49.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-02-25 08:59:58 -08:00
dependabot[bot] c2ce8b4477 build(deps): bump google.golang.org/grpc in /bridge/opentracing/test (#4974)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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-02-25 08:52:17 -08:00
dependabot[bot] af928f10c7 build(deps): bump google.golang.org/grpc (#4973)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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-02-25 08:45:06 -08:00
dependabot[bot] 6e40355de2 build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0 in /exporters/otlp/otlptrace/otlptracegrpc (#4972)
* build(deps): bump google.golang.org/grpc

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Run go mod tidy

---------

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 <codingalias@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-02-25 08:39:58 -08:00
dependabot[bot] df903ee603 build(deps): bump google.golang.org/grpc in /example/otel-collector (#4976)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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-02-25 08:34:17 -08:00
dependabot[bot] 241826d977 build(deps): bump google.golang.org/grpc (#4977)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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-02-25 08:27:16 -08:00
dependabot[bot] 9cc1e325b2 build(deps): bump google.golang.org/grpc (#4978)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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-02-25 08:07:33 -08:00
Tyler Yahn 08c38ab6f5 Add links to published packages (#4970) 2024-02-25 07:39:05 -08:00
Tyler Yahn 22a4f9cc55 Export internal/global.getLogger (#4969)
* Export getLogger

Refactor the declaration of globalLogger to incorporate the logic of
init() so there is no data race between GetLogger and init being called.

* Use GetLogger in log testing

* Restore logger in batch span processor testing

* Remove unused URL in globalLogger doc
2024-02-25 07:27:44 -08:00
Tyler Yahn e6e186bfa4 Release v1.24.0/v0.46.0/v0.0.1-alpha (#4966)
* Bump versions

* Prepare stable-v1 for version v1.24.0

* Prepare experimental-metrics for version v0.46.0

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

* Update changelog

* Fix changelog entry
log/v0.0.1-alpha exporters/prometheus/v0.46.0 example/prometheus/v0.46.0 trace/v1.24.0 sdk/metric/v1.24.0 sdk/v1.24.0 metric/v1.24.0 exporters/zipkin/v1.24.0 exporters/stdout/stdouttrace/v1.24.0 exporters/stdout/stdoutmetric/v1.24.0 exporters/otlp/otlptrace/otlptracehttp/v1.24.0 exporters/otlp/otlptrace/otlptracegrpc/v1.24.0 exporters/otlp/otlptrace/v1.24.0 exporters/otlp/otlpmetric/otlpmetrichttp/v1.24.0 exporters/otlp/otlpmetric/otlpmetricgrpc/v1.24.0 example/zipkin/v1.24.0 example/passthrough/v1.24.0 example/otel-collector/v1.24.0 example/opencensus/v1.24.0 example/namedtracer/v1.24.0 example/dice/v1.24.0 bridge/opentracing/test/v1.24.0 bridge/opentracing/v1.24.0 bridge/opencensus/test/v1.24.0 bridge/opencensus/v1.24.0 v1.24.0
2024-02-23 08:32:44 -08:00
Tyler Yahn a5ec3fc14b Add experimental-logs module set (#4961)
Include the go.opentelemetry.io/otel/log module in the new module set.
Use the version v0.0.1-alpha for the new module. This follows the
go.opentelemetry.io/auto projects use of the alpha suffix to communicate
extra clear the alpha state of the module.
2024-02-23 11:59:03 +01:00
Erica Yin 27e495d6f9 Fix output exponential histogram negative buckets (#4956)
* Fix output exponential histogram buckets

* Update CHANGELOG
2024-02-22 13:51:41 -08:00
Tyler Yahn 8df89f6aff log: Remove Value.AsAny (#4963) 2024-02-22 20:56:07 +01:00
Tyler Yahn 7cc660fc0f log: Add allocation tests (#4957) 2024-02-22 20:47:40 +01:00
Tyler Yahn 6ea99afaa0 log: Add benchmark tests (#4958) 2024-02-22 18:15:43 +01:00
Tyler Yahn 7b3382e4dc log: Implement Value and KeyValue types (#4949)
* Implement `Value` and `KeyValue`

* Add tests for `Value` and `KeyValue`

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-02-21 13:19:41 -08:00
ntriamme f793a0575d Fix registration of multiple callbacks when using the global meter provider (#4945) 2024-02-21 08:36:33 +01:00
Robert Pająk c2fdbcaea8 design: log value accessors must not panic (#4948) 2024-02-21 07:02:08 +01:00
Tyler Yahn dd3b00f682 Add the log/noop package (#4943)
* Add the `log/noop` package

* Add implementation tests

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-02-20 08:16:07 -08:00
Yi Zeng 3fe7401645 doc: fix godoc for WithEndpointURL and WithEndpoint (#4947) 2024-02-20 08:01:33 +01:00
Tyler Yahn b62df520ff Implement the log Record type (#4939) 2024-02-19 14:08:41 +01:00
Tyler Yahn 92a13d5a5e Fix test name in trace/noop pkg (#4944) 2024-02-19 13:57:30 +01:00
Tyler Yahn d423033b1f Test Severity const match OTel spec (#4938)
Resolve #4912
2024-02-19 13:47:24 +01:00
Tyler Yahn e3e8879eb3 Implement the LoggerConfig and add the LoggerOptions (#4937)
* Implement the LoggerConfig

* Add the LoggerOptions

* Add NewLoggerConfig test
2024-02-18 08:13:42 -08:00
Tyler Yahn 6e2bfb69ed Rename log List value type to Slice (#4936) 2024-02-18 08:08:28 -08:00
Tyler Yahn 59413575e4 Update otel/log package docs (#4935) 2024-02-18 08:01:24 -08:00
Tyler Yahn 48bb3c8642 Add the log/embedded package (#4932)
* Add the log/embedded package

* Embed the Logger and LoggerProvider types
2024-02-18 07:51:13 -08:00
OpenTelemetry Bot 395800bbd5 dependabot updates Sun Feb 18 15:37:06 UTC 2024 (#4942)
Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 in /exporters/prometheus
2024-02-18 07:42:58 -08:00
Charlie Le 693eb7dbbb Fix typos in docs and comments (#4940)
Ignoring words that would have renamed

- nam. -> name
- ans -> and
2024-02-17 13:36:41 +01:00
OpenTelemetry Bot 87396747ad dependabot updates Fri Feb 16 15:32:59 UTC 2024 (#4934)
Bump golang.org/x/tools from 0.17.0 to 0.18.0 in /internal/tools
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /exporters/otlp/otlptrace/otlptracegrpc
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /exporters/otlp/otlpmetric/otlpmetrichttp
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /exporters/otlp/otlptrace/otlptracehttp
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /example/otel-collector
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /exporters/otlp/otlpmetric/otlpmetricgrpc
Bump google.golang.org/grpc from 1.61.0 to 1.61.1 in /bridge/opentracing/test
Bump codecov/codecov-action from 3.1.5 to 4.0.1
2024-02-16 07:52:57 -08:00
Tyler Yahn d3dcb3999c Add initial Logs Bridge API scaffolding (#4907)
* Add go.mod

* Exclude otel/log in versions.yaml

* Add package documentation stub

* Update dependabot config

* Add initial log API scaffolding
2024-02-16 07:09:58 -08:00
Kevin Burke 02b61239cd internal/global,trace: fix spelling error (#4920)
There is another one in the generated semconv files but I couldn't
find where those were being generated from.

Co-authored-by: Damien Mathieu <damien.mathieu@elastic.co>
2024-02-15 07:30:29 -08:00
Tyler Yahn e8973b75b2 [docs] Log design fix (#4918)
Add missing return type to String func.
2024-02-13 15:47:56 -08:00
Tyler Yahn 1568559ea8 Link logs RC in project status of README (#4917) 2024-02-13 15:39:09 -08:00