Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore value option for metricdatatest #4447

Merged

Conversation

RangelReale
Copy link
Contributor

Follow-up from this PR on the contrib repo.

Duration metrics are not predictable, so it was suggested to add an option in metricdatatest to allow ignoring values when comparing metrics.

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #4447 (94cd76b) into main (b17ad41) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4447   +/-   ##
=====================================
  Coverage   81.3%   81.3%           
=====================================
  Files        220     220           
  Lines      17661   17670    +9     
=====================================
+ Hits       14369   14378    +9     
  Misses      2992    2992           
  Partials     300     300           
Files Changed Coverage
sdk/metric/metricdata/metricdatatest/assertion.go 100.0%
...dk/metric/metricdata/metricdatatest/comparisons.go 100.0%

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add an entry to CHANGELOG.md?

@RangelReale
Copy link
Contributor Author

Can you please add an entry to CHANGELOG.md?

done.

@pellared pellared merged commit fc70923 into open-telemetry:main Sep 5, 2023
26 checks passed
@MrAlias MrAlias added this to the v1.18.0/v0.41.0 milestone Sep 9, 2023
renovate bot referenced this pull request in open-feature/flagd Sep 12, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v0.40.0` -> `v0.41.0` |
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |
|
[go.opentelemetry.io/otel/exporters/prometheus](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v0.40.0` -> `v0.41.0` |
|
[go.opentelemetry.io/otel/metric](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |
|
[go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |
|
[go.opentelemetry.io/otel/sdk/metric](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v0.40.0` -> `v0.41.0` |
|
[go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.18.0` |

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-go
(go.opentelemetry.io/otel)</summary>

###
[`v1.18.0`](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.18.0):
/v0.41.0/v0.0.6

[Compare
Source](https://github.com/open-telemetry/opentelemetry-go/compare/v1.17.0...v1.18.0)

This release drops the compatibility guarantee of [Go 1.19].

##### Added

- Add `WithProducer` option in
`go.opentelemetry.op/otel/exporters/prometheus` to restore the ability
to register producers on the prometheus exporter's manual reader.
([#&#8203;4473](https://github.com/open-telemetry/opentelemetry-go/issues/4473))
- Add `IgnoreValue` option in
`go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest` to allow
ignoring values when comparing metrics.
([#&#8203;4447](https://github.com/open-telemetry/opentelemetry-go/issues/4447))

##### Deprecated

- The `NewMetricExporter` in
`go.opentelemetry.io/otel/bridge/opencensus` was deprecated in `v0.35.0`
([#&#8203;3541](https://github.com/open-telemetry/opentelemetry-go/issues/3541)).
The deprecation notice format for the function has been corrected to
trigger Go documentation and build tooling.
([#&#8203;4470](https://github.com/open-telemetry/opentelemetry-go/issues/4470))

##### Removed

- Removed the deprecated `go.opentelemetry.io/otel/exporters/jaeger`
package.
([#&#8203;4467](https://github.com/open-telemetry/opentelemetry-go/issues/4467))
- Removed the deprecated `go.opentelemetry.io/otel/example/jaeger`
package.
([#&#8203;4467](https://github.com/open-telemetry/opentelemetry-go/issues/4467))
- Removed the deprecated
`go.opentelemetry.io/otel/sdk/metric/aggregation` package.
([#&#8203;4468](https://github.com/open-telemetry/opentelemetry-go/issues/4468))
- Removed the deprecated internal packages in
`go.opentelemetry.io/otel/exporters/otlp` and its sub-packages.
([#&#8203;4469](https://github.com/open-telemetry/opentelemetry-go/issues/4469))
- Dropped guaranteed support for versions of Go less than 1.20.
([#&#8203;4481](https://github.com/open-telemetry/opentelemetry-go/issues/4481))

#### New Contributors

- [@&#8203;pkbhowmick](https://github.com/pkbhowmick) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/4462](https://github.com/open-telemetry/opentelemetry-go/pull/4462)
- [@&#8203;RangelReale](https://github.com/RangelReale) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/4447](https://github.com/open-telemetry/opentelemetry-go/pull/4447)

**Full Changelog**:
open-telemetry/opentelemetry-go@v1.17.0...v1.18.0

[Go 1.19]: https://go.dev/doc/go1.19

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in elastic/apm-queue Oct 11, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v1.17.0` -> `v1.19.0` |
|
[go.opentelemetry.io/otel/sdk/metric](https://github.com/open-telemetry/opentelemetry-go)
| require | minor | `v0.40.0` -> `v0.41.0` |

---

### Release Notes

<details>
<summary>open-telemetry/opentelemetry-go
(go.opentelemetry.io/otel/sdk)</summary>

###
[`v1.19.0`](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.19.0):
/v0.42.0/v0.0.7

[Compare
Source](https://github.com/open-telemetry/opentelemetry-go/compare/v1.18.0...v1.19.0)

This release contains the first stable release of the OpenTelemetry Go
[metric SDK]. Our project stability guarantees now apply to the
`go.opentelemetry.io/otel/sdk/metric` package. See our [versioning
policy](VERSIONING.md) for more information about these stability
guarantees.

##### Added

- Add the "Roll the dice" getting started application example in
`go.opentelemetry.io/otel/example/dice`.
([#&#8203;4539](https://github.com/open-telemetry/opentelemetry-go/issues/4539))
- The `WithWriter` and `WithPrettyPrint` options to
`go.opentelemetry.io/otel/exporters/stdout/stdoutmetric` to set a custom
`io.Writer`, and allow displaying the output in human-readable JSON.
([#&#8203;4507](https://github.com/open-telemetry/opentelemetry-go/issues/4507))

##### Changed

- Allow '/' characters in metric instrument names.
([#&#8203;4501](https://github.com/open-telemetry/opentelemetry-go/issues/4501))
- The exporter in
`go.opentelemetry.io/otel/exporters/stdout/stdoutmetric` does not
prettify its output by default anymore.
([#&#8203;4507](https://github.com/open-telemetry/opentelemetry-go/issues/4507))
- Upgrade `gopkg.io/yaml` from `v2` to `v3` in
`go.opentelemetry.io/otel/schema`.
([#&#8203;4535](https://github.com/open-telemetry/opentelemetry-go/issues/4535))

##### Fixed

- In `go.opentelemetry.op/otel/exporters/prometheus`, don't try to
create the Prometheus metric on every `Collect` if we know the scope is
invalid.
([#&#8203;4499](https://github.com/open-telemetry/opentelemetry-go/issues/4499))

##### Removed

- Remove
`"go.opentelemetry.io/otel/bridge/opencensus".NewMetricExporter`, which
is replaced by `NewMetricProducer`.
([#&#8203;4566](https://github.com/open-telemetry/opentelemetry-go/issues/4566))

**Full Changelog**:
open-telemetry/opentelemetry-go@v1.18.0...v1.19.0

[metric SDK]: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/metric

###
[`v1.18.0`](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.18.0):
/v0.41.0/v0.0.6

[Compare
Source](https://github.com/open-telemetry/opentelemetry-go/compare/v1.17.0...v1.18.0)

This release drops the compatibility guarantee of [Go 1.19].

##### Added

- Add `WithProducer` option in
`go.opentelemetry.op/otel/exporters/prometheus` to restore the ability
to register producers on the prometheus exporter's manual reader.
([#&#8203;4473](https://github.com/open-telemetry/opentelemetry-go/issues/4473))
- Add `IgnoreValue` option in
`go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest` to allow
ignoring values when comparing metrics.
([#&#8203;4447](https://github.com/open-telemetry/opentelemetry-go/issues/4447))

##### Deprecated

- The `NewMetricExporter` in
`go.opentelemetry.io/otel/bridge/opencensus` was deprecated in `v0.35.0`
([#&#8203;3541](https://github.com/open-telemetry/opentelemetry-go/issues/3541)).
The deprecation notice format for the function has been corrected to
trigger Go documentation and build tooling.
([#&#8203;4470](https://github.com/open-telemetry/opentelemetry-go/issues/4470))

##### Removed

- Removed the deprecated `go.opentelemetry.io/otel/exporters/jaeger`
package.
([#&#8203;4467](https://github.com/open-telemetry/opentelemetry-go/issues/4467))
- Removed the deprecated `go.opentelemetry.io/otel/example/jaeger`
package.
([#&#8203;4467](https://github.com/open-telemetry/opentelemetry-go/issues/4467))
- Removed the deprecated
`go.opentelemetry.io/otel/sdk/metric/aggregation` package.
([#&#8203;4468](https://github.com/open-telemetry/opentelemetry-go/issues/4468))
- Removed the deprecated internal packages in
`go.opentelemetry.io/otel/exporters/otlp` and its sub-packages.
([#&#8203;4469](https://github.com/open-telemetry/opentelemetry-go/issues/4469))
- Dropped guaranteed support for versions of Go less than 1.20.
([#&#8203;4481](https://github.com/open-telemetry/opentelemetry-go/issues/4481))

#### New Contributors

- [@&#8203;pkbhowmick](https://github.com/pkbhowmick) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/4462](https://github.com/open-telemetry/opentelemetry-go/pull/4462)
- [@&#8203;RangelReale](https://github.com/RangelReale) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/4447](https://github.com/open-telemetry/opentelemetry-go/pull/4447)

**Full Changelog**:
open-telemetry/opentelemetry-go@v1.17.0...v1.18.0

[Go 1.19]: https://go.dev/doc/go1.19

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/apm-queue).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants