1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
Commit Graph

2304 Commits

Author SHA1 Message Date
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
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>
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
Tyler Yahn
e528731853
Remove the deprecated internal exporters/otlp* packages (#4469)
* Remove the deprecated otlpmetric/internal pkg

* Remove the deprecated otlp/internal pkg

* Remove the deprecated otlptrace/internal pkg

* Remove the deprecated otlptrace/internal/envconfig pkg

* Remove the deprecated otlptrace/internal/otlpconfig pkg

* Remove the deprecated otlptrace/internal/otlptracetest pkg

* Remove the deprecated otlptrace/internal/retry pkg

* Add changelog entry

* Remove dependabot entries

* Remove versions.yaml entry

* Run go mod tidy

* Remove linter override for removed pkgs

* Run crosslink
2023-08-29 14:08:07 -07:00
Tyler Yahn
d702e92c2b
Remove the deprecated sdk/metric/aggregation package (#4468)
* Remove the deprecated sdk/metric/aggregation package

* Update PR number
2023-08-29 13:19:33 -07:00
Tyler Yahn
537fd53e6e
Remove the deprecated Jaeger exporter and example (#4467)
* Remove the deprecated Jaeger exporter

* Add changelog stub

* Remove the deprecated Jaeger example

* Add changelog stub for example rm

* Add PR number to changelog

* Remove dependabot entries

* Remove versions.yaml entries
2023-08-29 11:13:25 -07:00
Pulak Kanti Bhowmick
f172db89a1
handle err in metric example test (#4462)
* fix type in metric example test

Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>

* handle error in metric example test

Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>

* update counter example

Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>

* handle the err only

Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>

---------

Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-08-28 10:23:18 -07:00
Tyler Yahn
3c476ce181
Release v1.17.0/v0.40.0/v0.0.5 (#4464)
* Bump versions.yaml

* Prepare stable-v1 for version v1.17.0

* Prepare experimental-metrics for version v0.40.0

* Prepare experimental-schema for version v0.0.5

* Update changelog

* Update changelog release header
2023-08-28 07:50:03 -07:00
dependabot[bot]
183e0817bd
Bump github.com/golangci/golangci-lint in /internal/tools (#4465)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.54.1 to 1.54.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.54.1...v1.54.2)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  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-27 07:31:32 -07:00
Tyler Yahn
6be116e31e
Add testing support for Go 1.21 (#4463)
* Add testing support for Go 1.21

* Add PR number in changelog
2023-08-27 07:18:34 -07:00
Tyler Yahn
69611bd01a
Switch Stream back to having an AttributeFilter field and add New*Filter functions (#4444)
* Add allow/deny attr filters

* Revert "Replace `Stream.AttributeFilter` with `AllowAttributeKeys` (#4288)"

This reverts commit 1633c74aea.

* Rename new attr filter funcs

Do not include the term "Attribute" in a creation function of the
"attribute" pkg.

* Update the AttributeFilter field documentation

* Add tests for filter creation funcs

* Add change to changelog

* Apply feedback

* Use NewDenyKeysFilter for allow-all and deny-list filters

* Remove links from field docs

These links do not render.

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
2023-08-25 07:39:43 -07:00
Umut Tezduyar Lindskog
f15ae160c4
Fix the broken sentence (#4456)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-08-18 07:24:32 -07:00
Tyler Yahn
16ce491d38
Fix guard of measured value to not record empty (#4452)
A guard was added in #4446 to prevent non-normal float64 from being
recorded. This was added in the low-level `record` method meaning that
the higher-level `measure` method will still keep a record of the
invalid value measurement, just with a zero-value.

This fixes that issue by moving the guard to the `measure` method.
2023-08-18 06:43:09 -07:00
Tyler Yahn
9b47674bc5
Make getBin and scaleChange methods of expoHistogramDataPoint (#4451)
Both functions receive parameters from an expoHistogramDataPoint and are
only ever used by other methods of an expoHistogramDataPoint. Make the
functions methods of expoHistogramDataPoint so the parameter arguments
can be dropped and the functions are scoped to the type they are used
for.

Co-authored-by: Aaron Clawson <3766680+MadVikingGod@users.noreply.github.com>
2023-08-17 15:06:46 -07:00
Tyler Yahn
9d9b71f58d
Remove the expoHistogramValues type (#4450)
The types only use is being embedded in the expoHistogram. Just
explicitly define the fields for the expoHistogram given that is their
only use.
2023-08-17 12:31:02 -05:00
Tyler Yahn
a5ff7af3f3
Ignore +/- Inf and NaN for exponential histogram measurement (#4446)
* Add acceptance test

* Ignore +/- Inf and NaN for expo hist record
2023-08-16 07:11:13 -07:00
Robert Pająk
d78820e905
Deprecate exporters/jaeger (#4423)
* Deprecate exporters/jaeger

* Delete jaeger example

* Remove jaeger exporter from docs

* Remove example from docs

* Update CHANGELOG.md

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

* Revert "Delete jaeger example"

This reverts commit 1a2b47bc9a.

* Revert "Remove example from docs"

This reverts commit 682db01075.

* Add nolint comment

* Remove Jaeger from main README

* Deprecate example/jaeger

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update go.mod

* Update main.go

* fix lint

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Aaron Clawson <3766680+MadVikingGod@users.noreply.github.com>
2023-08-15 08:54:50 -07:00
Yuri Shkuro
14b3a985f5
[baggage] Remove unused private field (#4318)
Signed-off-by: Yuri Shkuro <github@ysh.us>
2023-08-15 09:48:44 -05:00
Tyler Yahn
3904523917
Flatten sdk/metric/aggregation into sdk/metric (#4435)
* Deprecate the aggregation pkg

* Decouple the internal/aggregate from aggregation pkg

* Add Aggregation to the metric pkg

* Do not use sdk/metric/aggregation in stdoutmetric exporter

* Update all generated templates

* Update prom exporter

* Fix view example

* Add changes to changelog

* Update CHANGELOG.md

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

* Rename Sum to AggregationSum

* Fix comments

* Centralize validation of aggregation in pipeline

* Remove validation of agg in manual_reader selector opt

* Fix merge

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-08-14 08:15:15 -07:00
Robert Pająk
6f64e5b4be
Add gorelease Make target (#4431)
* Add gorelease Make target

* Igonre exit code and add blank line

* Add GORELEASE to tools

* Apply suggestions from code review

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

* Update RELEASING.md

* Run go mod tidy

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Tyler Yahn <codingalias@gmail.com>
2023-08-14 07:42:08 -07:00
Tyler Yahn
199dc34a09
Support default histogram selection in OTLP exporter (#4437)
* Support default histogram selection in OTLP exporter

* Add changes to changelog
2023-08-14 07:21:04 -07:00
OpenTelemetry Bot
af1d928b2b
dependabot updates Sun Aug 13 14:28:57 UTC 2023 (#4443)
Bump github.com/golangci/golangci-lint from 1.53.3 to 1.54.1 in /internal/tools
Bump go.opentelemetry.io/build-tools/gotmpl from 0.10.0 to 0.11.0 in /internal/tools
Bump golang.org/x/tools from 0.11.1 to 0.12.0 in /internal/tools
Bump github.com/openzipkin/zipkin-go from 0.4.1 to 0.4.2 in /exporters/zipkin
2023-08-13 07:36:30 -07:00
dependabot[bot]
29e646431e
Bump golang from 1.20-alpine to 1.21-alpine in /example/zipkin (#4438)
Bumps golang from 1.20-alpine to 1.21-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-13 07:24:39 -07:00
David Ashpole
fe51391dc6
Change metric.Producer to be an Option on Reader (#4346)
* metric.Producer can be passed as an argument to Reader using
WithProducer

* reproduce data race

* revert to atomic.Value
2023-08-11 12:40:39 -07:00