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

2225 Commits

Author SHA1 Message Date
David Ashpole 7997bb71d9 Update go version to v1.21.3/1.20.10 for CI (#4607) 2023-10-12 08:24:09 +02:00
David Ashpole 960e6ab425 migrate opencensus bridge to errors.Join (#4599) 2023-10-11 09:34:00 +02:00
David Ashpole 1074d64d04 Add scope version to opencensus trace and metric bridges (#4584) 2023-10-11 08:48:58 +02:00
Ravan Scafi 3f17bcb6c3 Fix WithoutCounterSuffixes documentation (#4602) 2023-10-10 14:17:23 +02:00
sakshi-1505 f3b9849323 enh: add golvulncheck in linting job (#4598) 2023-10-10 10:43:37 +02:00
David Ashpole 68241aff1d opencensus.NewMetricProducer returns a struct instead of the metric.Producer (#4583) 2023-10-09 16:04:32 +02:00
dependabot[bot] 56766cadc0 Bump codespell from 2.2.5 to 2.2.6 (#4594)
Bumps [codespell](https://github.com/codespell-project/codespell) from 2.2.5 to 2.2.6.
- [Release notes](https://github.com/codespell-project/codespell/releases)
- [Commits](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6)

---
updated-dependencies:
- dependency-name: codespell
  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>
2023-10-09 14:34:13 +02:00
dependabot[bot] d9fa13fd26 Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#4592)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 12:03:54 +02:00
OpenTelemetry Bot 1c2fbf50df dependabot updates Mon Oct 9 08:29:23 UTC 2023 (#4596)
Bump codespell from 2.2.5 to 2.2.6
Bump golang.org/x/sys from 0.12.0 to 0.13.0 in /sdk
Bump stefanzweifel/git-auto-commit-action from 4 to 5
Bump github.com/jcchavezs/porto from 0.4.0 to 0.5.1 in /internal/tools
Bump golang.org/x/tools from 0.13.0 to 0.14.0 in /internal/tools
Bump github.com/prometheus/client_model from 0.4.1-0.20230718164431-9a2bf3000d16 to 0.5.0 in /exporters/prometheus
2023-10-09 10:44:40 +02:00
Shrey Gupta c7f53cc973 Replace otlptracehttp example to use otlptracehttp instead of otlptrace (#4574) 2023-10-03 08:12:09 +02:00
OpenTelemetry Bot 0e874c3468 dependabot updates Sun Oct 1 19:00:53 UTC 2023 (#4579)
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 in /exporters/prometheus
Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.44.0 to 0.45.0 in /example/dice
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 in /example/prometheus
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 in /example/view
2023-10-01 22:00:18 +02:00
David Ashpole 0f09b9b2d8 Add options to opencensus bridge, and install tracer instead of returning (#4567)
* Add options to opencensus bridge, and install tracer instead of returning

* add unit test

* update unit tests

* fix example

* import ordering

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-09-29 08:07:06 -07:00
Tyler Yahn 0022098fd2 [chore] Update project status (#4569) 2023-09-29 16:04:23 +02:00
Tyler Yahn 60666c5540 Release v1.19.0/v0.42.0/v0.0.7 (#4568)
* Bump versions

* Prepare stable-v1 for version v1.19.0

* Prepare experimental-metrics for version v0.42.0

* Prepare experimental-schema for version v0.0.7

* Update changelog
schema/v0.0.7 exporters/stdout/stdoutmetric/v0.42.0 exporters/prometheus/v0.42.0 exporters/otlp/otlpmetric/otlpmetrichttp/v0.42.0 exporters/otlp/otlpmetric/otlpmetricgrpc/v0.42.0 exporters/otlp/otlpmetric/v0.42.0 example/view/v0.42.0 example/prometheus/v0.42.0 example/opencensus/v0.42.0 bridge/opencensus/test/v0.42.0 bridge/opencensus/v0.42.0 trace/v1.19.0 sdk/metric/v1.19.0 sdk/v1.19.0 metric/v1.19.0 exporters/zipkin/v1.19.0 exporters/stdout/stdouttrace/v1.19.0 exporters/otlp/otlptrace/otlptracehttp/v1.19.0 exporters/otlp/otlptrace/otlptracegrpc/v1.19.0 exporters/otlp/otlptrace/v1.19.0 example/zipkin/v1.19.0 example/passthrough/v1.19.0 example/otel-collector/v1.19.0 example/namedtracer/v1.19.0 example/fib/v1.19.0 bridge/opentracing/test/v1.19.0 example/dice/v1.19.0 bridge/opentracing/v1.19.0 v1.19.0
2023-09-28 12:28:51 -07:00
David Ashpole acf7146b56 Opencensus bridge: migrate from README to Go docs (#4561) 2023-09-28 10:31:00 +02:00
David Ashpole d3e31c3d93 Remove deprecated opencensus.NewMetricExporter (#4566) 2023-09-28 10:19:31 +02:00
Damien Mathieu 1410496022 stdoutmetric: Add WithWriter and WithPrettyPrint options (#4507)
* add WithWriter and WithPrettyOptions to stdoutmetric

* add changelog

* make WithWriter a shortcut to WithEncoder

* Update exporters/stdout/stdoutmetric/config.go

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-09-27 09:45:10 -05:00
OpenTelemetry Bot 9bbefc6cc3 dependabot updates Tue Sep 26 14:35:10 UTC 2023 (#4559)
Bump go.opentelemetry.io/build-tools/dbotconf from 0.11.0 to 0.12.0 in /internal/tools
Bump go.opentelemetry.io/build-tools/gotmpl from 0.11.0 to 0.12.0 in /internal/tools
Bump go.opentelemetry.io/build-tools/multimod from 0.11.0 to 0.12.0 in /internal/tools
Bump go.opentelemetry.io/build-tools/crosslink from 0.11.0 to 0.12.0 in /internal/tools
Bump go.opentelemetry.io/build-tools/semconvgen from 0.11.0 to 0.12.0 in /internal/tools
2023-09-26 07:55:54 -07:00
Robert Pająk 0425c09c31 Add dice example (#4539)
* Add dice example

* Add manual instrumentation

* Update changelog

* Add comments

* Use naked return consistently

* Move handleFunc to main

* refactor: Extract newHTTPHandler

* Fix comment

* Improve comments

* Update example/dice/otel.go

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

* Simplify BaseContext

* Update doc.go

* Update example/dice/main.go

Co-authored-by: Phillip Carter <pcarter@fastmail.com>

* Rename span and metric names

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Phillip Carter <pcarter@fastmail.com>
2023-09-26 07:10:58 -07:00
Charlie Le 612208d046 Fix typos in comments (#4553) 2023-09-26 10:05:53 +02:00
Robert Pająk 2a8fddaf58 stdouttrace: Fix WithPrettyPrint comment (#4544) 2023-09-25 20:27:28 +02:00
OpenTelemetry Bot 3c1621bdbb dependabot updates Sun Sep 24 14:25:44 UTC 2023 (#4552)
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /bridge/opentracing/test
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /exporters/otlp/otlpmetric/otlpmetrichttp
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /exporters/otlp/otlpmetric/otlpmetricgrpc
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /exporters/otlp/otlptrace/otlptracehttp
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /example/otel-collector
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 in /exporters/otlp/otlptrace/otlptracegrpc
2023-09-24 07:35:44 -07:00
Robert Pająk 10b9f90fe4 sdk/metric: Update package example (#4540) 2023-09-22 08:04:06 +02:00
Aaron Clawson 206ed5544c Update codeql analysis frequency (#4542) 2023-09-21 12:13:08 -07:00
Tyler Yahn fd8eff8402 Upgrade gopkg.io/yaml from v2 to v3 in schema (#4535) 2023-09-21 12:52:17 +02:00
Robert Pająk bf54101e32 Fix comment in ExampleNewView_attributeFilter (#4529)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-09-19 07:38:39 -07:00
Robert Pająk 4738218c03 sdk/metric: Refine NewView wildcard comment (#4530) 2023-09-19 07:30:26 -07:00
Robert Pająk be43b929aa Add ExampleNewView_attributeFilter and refine ExampleNewView_drop (#4527) 2023-09-19 08:06:11 +02:00
Robert Pająk a5190f632f Add Base2ExponentialHistogram example (#4518) 2023-09-18 10:05:33 +02:00
Robert Pająk 2373e9b1e9 otlptracegrpc: Check error on Shutdown in tests (#4517) 2023-09-18 09:44:52 +02:00
OpenTelemetry Bot 84f6b36815 dependabot updates Sun Sep 17 14:56:30 UTC 2023 (#4525)
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /exporters/otlp/otlpmetric/otlpmetricgrpc
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /exporters/otlp/otlptrace/otlptracegrpc
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /exporters/otlp/otlptrace/otlptracehttp
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /exporters/otlp/otlpmetric/otlpmetrichttp
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /bridge/opentracing/test
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 in /example/otel-collector
2023-09-17 08:07:54 -07:00
Tyler Yahn 2ee71fdd4e Release v1.19.0-rc.1/v0.42.0-rc.1 (#4510)
* Bump versions.yaml

Move go.opentelemetry.io/otel/sdk/metric to stable-v1.

* Prepare stable-v1 for version v1.19.0-rc.1

* Prepare experimental-metrics for version v0.42.0-rc.1

* Update changelog
exporters/stdout/stdoutmetric/v0.42.0-rc.1 exporters/prometheus/v0.42.0-rc.1 exporters/otlp/otlpmetric/otlpmetricgrpc/v0.42.0-rc.1 exporters/otlp/otlpmetric/v0.42.0-rc.1 example/view/v0.42.0-rc.1 example/prometheus/v0.42.0-rc.1 example/opencensus/v0.42.0-rc.1 bridge/opencensus/test/v0.42.0-rc.1 bridge/opencensus/v0.42.0-rc.1 trace/v1.19.0-rc.1 sdk/metric/v1.19.0-rc.1 sdk/v1.19.0-rc.1 metric/v1.19.0-rc.1 exporters/zipkin/v1.19.0-rc.1 exporters/stdout/stdouttrace/v1.19.0-rc.1 exporters/otlp/otlptrace/otlptracehttp/v1.19.0-rc.1 exporters/otlp/otlptrace/otlptracegrpc/v1.19.0-rc.1 exporters/otlp/otlptrace/v1.19.0-rc.1 example/zipkin/v1.19.0-rc.1 example/passthrough/v1.19.0-rc.1 example/otel-collector/v1.19.0-rc.1 example/namedtracer/v1.19.0-rc.1 example/fib/v1.19.0-rc.1 bridge/opentracing/test/v1.19.0-rc.1 bridge/opentracing/v1.19.0-rc.1 v1.19.0-rc.1 exporters/otlp/otlpmetric/otlpmetrichttp/v0.42.0-rc.1
2023-09-14 12:57:45 -07:00
Damien Mathieu a87d8fd2e8 fix changelog entry, as 4499 hasn't been released yet (#4508) 2023-09-14 07:33:13 -07:00
Damien Mathieu ac5639159f Call scopeInfoMetrics only once even if it returns an error (#4499) 2023-09-14 09:51:51 +02:00
Robert Pająk e3d6c8eec2 Add and refine metrics examples (#4504) 2023-09-14 08:17:20 +02:00
Aaron Abbott bcbee2ac1a Allow '/' character in instrument names (#4501)
* Allow '/' character in instrument names

* Add changelog

* Update CHANGELOG.md

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

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-09-13 09:01:34 -07:00
Tyler Yahn 4242228103 Release v1.18.0/v0.41.0/v0.0.6 (#4489)
* Bump versions

* Prepare stable-v1 for version v1.18.0

* Prepare experimental-metrics for version v0.41.0

* Prepare experimental-schema for version v0.0.6

* Update changelog

* Update CHANGELOG.md

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
schema/v0.0.6 example/view/v0.41.0 bridge/opencensus/test/v0.41.0 bridge/opencensus/v0.41.0 sdk/metric/v0.41.0 exporters/stdout/stdoutmetric/v0.41.0 exporters/prometheus/v0.41.0 exporters/otlp/otlpmetric/otlpmetrichttp/v0.41.0 exporters/otlp/otlpmetric/otlpmetricgrpc/v0.41.0 exporters/otlp/otlpmetric/v0.41.0 example/prometheus/v0.41.0 example/opencensus/v0.41.0 trace/v1.18.0 sdk/v1.18.0 metric/v1.18.0 exporters/zipkin/v1.18.0 exporters/stdout/stdouttrace/v1.18.0 exporters/otlp/otlptrace/otlptracehttp/v1.18.0 exporters/otlp/otlptrace/otlptracegrpc/v1.18.0 exporters/otlp/otlptrace/v1.18.0 example/zipkin/v1.18.0 example/passthrough/v1.18.0 example/namedtracer/v1.18.0 example/otel-collector/v1.18.0 example/fib/v1.18.0 bridge/opentracing/test/v1.18.0 v1.18.0 bridge/opentracing/v1.18.0
2023-09-12 07:54:37 -07:00
Damien Mathieu ac4fca2260 Use a TB interface in metricdatatest (#4483)
* use testing.TB interface in metricdatatest

* add changelog entry

* use our own TB interface

* Update CHANGELOG.md

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

* rename TB to TestingT

* SIG meeting feedback

* ensure *testing.T implements TestingT

* Update sdk/metric/metricdata/metricdatatest/assertion.go

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

* change formatting for last testing.TB too

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-09-11 07:26:21 -07:00
dependabot[bot] 77d6237575 Bump actions/checkout from 3 to 4 (#4490)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-10 07:55:55 -07:00
OpenTelemetry Bot 8ef73395ea dependabot updates Sun Sep 10 14:30:56 UTC 2023 (#4498)
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /exporters/otlp/otlptrace/otlptracegrpc
Bump golang.org/x/tools from 0.12.0 to 0.13.0 in /internal/tools
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /example/otel-collector
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /exporters/otlp/otlpmetric/otlpmetricgrpc
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /exporters/otlp/otlpmetric/otlpmetrichttp
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /bridge/opentracing/test
Bump google.golang.org/grpc from 1.57.0 to 1.58.0 in /exporters/otlp/otlptrace/otlptracehttp
Bump actions/checkout from 3 to 4
2023-09-10 07:42:09 -07:00
Tyler Yahn e44ea5cc7f Revert "Collector example: add metrics and use official port (#4466)" (#4487)
This reverts commit 6eedabf874.
2023-09-09 07:52:17 -07:00
Tyler Yahn 9737995cdb Drop support for Go 1.19 (#4481)
* Drop support for Go 1.19

* Add change to changelog

* Bump all modules to 1.20

* Update exponential_histogram_test.go

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-09-07 12:18:29 -05:00
Damien Mathieu 6eedabf874 Collector example: add metrics and use official port (#4466) 2023-09-07 10:46:49 +02:00
Tyler Yahn 76c370f1b1 Document public metric SDK interfaces to remain stable (#4396)
* Document public ifaces to remain stable

Resolve #3673

* Revert changes to aggregation pkg

* Document reader as an interface that can be extended

* Address feedback

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-09-06 13:55:56 -07:00
bryan-aguilar 01d64c3e77 Update go versions used in workflows (#4480) 2023-09-06 11:06:58 -07:00
Rangel Reale fc70923e53 Ignore value option for metricdatatest (#4447) 2023-09-05 19:00:06 +02:00
OpenTelemetry Bot b17ad41a00 dependabot updates Tue Sep 5 06:35:43 UTC 2023 (#4477)
Bump golang.org/x/sys from 0.11.0 to 0.12.0 in /sdk
2023-09-05 09:04:55 +02:00
David Ashpole 02616a25c6 add WithProducer to the prometheus exporter (#4473) 2023-08-31 11:17:07 -07:00
dependabot[bot] 2d2507d717 Bump codespell from 2.2.4 to 2.2.5 (#4472)
Bumps [codespell](https://github.com/codespell-project/codespell) from 2.2.4 to 2.2.5.
- [Release notes](https://github.com/codespell-project/codespell/releases)
- [Commits](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.5)

---
updated-dependencies:
- dependency-name: codespell
  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>
2023-08-29 15:18:40 -07:00
Tyler Yahn e0a39b8f7d Fix bridge/opencensus NewMetricExporter deprecation notice (#4470)
* Fix bridge/opencensus NewMetricExporter dep notice

* Link to NewMetricProducer

* Add PR number to changelog
2023-08-29 15:02:43 -07:00