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

feat: add context value flag #1448

Merged
merged 21 commits into from
Dec 5, 2024

Conversation

alemrtv
Copy link
Contributor

@alemrtv alemrtv commented Nov 10, 2024

  • add the --context-value command line flag to pass arbitrary key value pairs to the evaluation context

Fixes #1435

Follow-up Tasks

  • adjust the integration test to include this flag

How to test

issue the flagd start command with the -X flag and provide key value pairs like:
flagd start -X name=jane -X age=31 or flagd start --context-value name=jane --context-value age=31

alemrtv and others added 11 commits November 10, 2024 19:12
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
…ure#1442)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) |
`v1.67.1` -> `v1.68.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.68.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgrpc/v1.68.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgrpc/v1.67.1/v1.68.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.67.1/v1.68.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>grpc/grpc-go (google.golang.org/grpc)</summary>

###
[`v1.68.0`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.68.0):
Release 1.68.0

[Compare
Source](https://redirect.github.com/grpc/grpc-go/compare/v1.67.1...v1.68.0)

### Behavior Changes

- stats/opentelemetry/csm: Get mesh_id local label from "CSM_MESH_ID"
environment variable, rather than parsing from bootstrap file
([#&#8203;7740](https://redirect.github.com/grpc/grpc-go/issues/7740))
- orca (experimental): if using an ORCA listener, it must now be
registered only on a READY SubConn, and the listener will automatically
be stopped when the connection is lost.
([#&#8203;7663](https://redirect.github.com/grpc/grpc-go/issues/7663))
- client: `ClientConn.Close()` now closes transports simultaneously and
waits for transports to be closed before returning.
([#&#8203;7666](https://redirect.github.com/grpc/grpc-go/issues/7666))
- credentials: TLS credentials created via `NewTLS` that use
`tls.Config.GetConfigForClient` will now have CipherSuites, supported
TLS versions and ALPN configured automatically. These were previously
only set for configs not using the `GetConfigForClient` option.
([#&#8203;7709](https://redirect.github.com/grpc/grpc-go/issues/7709))

### Bug Fixes

- transport: prevent deadlock in client transport shutdown when writing
the GOAWAY frame hangs.
([#&#8203;7662](https://redirect.github.com/grpc/grpc-go/issues/7662))
- mem: reuse buffers more accurately by using slice capacity instead of
length
([#&#8203;7702](https://redirect.github.com/grpc/grpc-go/issues/7702))
- Special Thanks:
[@&#8203;PapaCharlie](https://redirect.github.com/PapaCharlie)
- status: Fix regression caused by
[#&#8203;6919](https://redirect.github.com/grpc/grpc-go/issues/6919) in
status.Details() causing it to return a wrapped type when getting proto
messages generated with protoc-gen-go < v1.
- Special Thanks:
[@&#8203;Clement-Jean](https://redirect.github.com/Clement-Jean)

### Dependencies

- Bump minimum supported Go version to `go1.22.7`.
([#&#8203;7624](https://redirect.github.com/grpc/grpc-go/issues/7624))

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#1443)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/crypto | `v0.28.0` -> `v0.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fcrypto/v0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fcrypto/v0.28.0/v0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.28.0/v0.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/mod | `v0.21.0` -> `v0.22.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fmod/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fmod/v0.21.0/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.21.0/v0.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/sync | `v0.8.0` -> `v0.9.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsync/v0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fsync/v0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fsync/v0.8.0/v0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsync/v0.8.0/v0.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/net | `v0.30.0` -> `v0.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fnet/v0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fnet/v0.30.0/v0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.30.0/v0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/otel](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fmetric/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fmetric/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fmetric/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fsdk/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fsdk/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fsdk/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.31.0` -> `v1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel%2ftrace/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel%2ftrace/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel%2ftrace/v1.31.0/v1.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.32.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.32.0):
/v0.54.0/v0.8.0/v0.0.11

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go/compare/v1.31.0...v1.32.0)

#### Overview

##### Added

- Add `go.opentelemetry.io/otel/sdk/metric/exemplar.AlwaysOffFilter`,
which can be used to disable exemplar recording.
([#&#8203;5850](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5850))
- Add `go.opentelemetry.io/otel/sdk/metric.WithExemplarFilter`, which
can be used to configure the exemplar filter used by the metrics SDK.
([#&#8203;5850](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5850))
- Add `ExemplarReservoirProviderSelector` and
`DefaultExemplarReservoirProviderSelector` to
`go.opentelemetry.io/otel/sdk/metric`, which defines the exemplar
reservoir to use based on the aggregation of the metric.
([#&#8203;5861](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5861))
- Add `ExemplarReservoirProviderSelector` to
`go.opentelemetry.io/otel/sdk/metric.Stream` to allow using views to
configure the exemplar reservoir to use for a metric.
([#&#8203;5861](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5861))
- Add `ReservoirProvider`, `HistogramReservoirProvider` and
`FixedSizeReservoirProvider` to
`go.opentelemetry.io/otel/sdk/metric/exemplar` to make it convenient to
use providers of Reservoirs.
([#&#8203;5861](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5861))
-   The `go.opentelemetry.io/otel/semconv/v1.27.0` package.
The package contains semantic conventions from the `v1.27.0` version of
the OpenTelemetry Semantic Conventions.
([#&#8203;5894](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5894))
- Add `Attributes attribute.Set` field to `Scope` in
`go.opentelemetry.io/otel/sdk/instrumentation`.
([#&#8203;5903](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5903))
- Add `Attributes attribute.Set` field to `ScopeRecords` in
`go.opentelemetry.io/otel/log/logtest`.
([#&#8203;5927](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5927))
- `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` adds
instrumentation scope attributes.
([#&#8203;5934](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5934))
- `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp` adds
instrumentation scope attributes.
([#&#8203;5934](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5934))
- `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`
adds instrumentation scope attributes.
([#&#8203;5935](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5935))
- `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`
adds instrumentation scope attributes.
([#&#8203;5935](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5935))
- `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` adds
instrumentation scope attributes.
([#&#8203;5933](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5933))
- `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp` adds
instrumentation scope attributes.
([#&#8203;5933](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5933))
- `go.opentelemetry.io/otel/exporters/prometheus` adds instrumentation
scope attributes in `otel_scope_info` metric as labels.
([#&#8203;5932](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5932))

##### Changed

- Support scope attributes and make them as identifying for `Tracer` in
`go.opentelemetry.io/otel` and `go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;5924](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5924))
- Support scope attributes and make them as identifying for `Meter` in
`go.opentelemetry.io/otel` and `go.opentelemetry.io/otel/sdk/metric`.
([#&#8203;5926](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5926))
- Support scope attributes and make them as identifying for `Logger` in
`go.opentelemetry.io/otel` and `go.opentelemetry.io/otel/sdk/log`.
([#&#8203;5925](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5925))
- Make schema URL and scope attributes as identifying for `Tracer` in
`go.opentelemetry.io/otel/bridge/opentracing`.
([#&#8203;5931](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5931))
- Clear unneeded slice elements to allow GC to collect the objects in
`go.opentelemetry.io/otel/sdk/metric` and
`go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;5804](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5804))

##### Fixed

- Global MeterProvider registration unwraps global instrument Observers,
the undocumented Unwrap() methods are now private.
([#&#8203;5881](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5881))
- `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`
now keeps the metadata already present in the context when `WithHeaders`
is used.
([#&#8203;5892](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5892))
- `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` now
keeps the metadata already present in the context when `WithHeaders` is
used.
([#&#8203;5911](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5911))
- `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` now
keeps the metadata already present in the context when `WithHeaders` is
used.
([#&#8203;5915](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5915))
- Fix `go.opentelemetry.io/otel/exporters/prometheus` trying to add
exemplars to Gauge metrics, which is unsupported.
([#&#8203;5912](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5912))
- Fix `WithEndpointURL` to always use a secure connection when an https
URL is passed in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`.
([#&#8203;5944](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5944))
- Fix `WithEndpointURL` to always use a secure connection when an https
URL is passed in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;5944](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5944))
- Fix `WithEndpointURL` to always use a secure connection when an https
URL is passed in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`.
([#&#8203;5944](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5944))
- Fix `WithEndpointURL` to always use a secure connection when an https
URL is passed in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;5944](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5944))
- Fix incorrect metrics generated from callbacks when multiple readers
are used in `go.opentelemetry.io/otel/sdk/metric`.
([#&#8203;5900](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5900))

##### Removed

- Remove all examples under `go.opentelemetry.io/otel/example` as they
are moved to [Contrib
repository](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib/tree/main/examples).
([#&#8203;5930](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5930))

#### What's Changed

- Allow configuring the exemplar filter on the metrics SDK by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5850](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5850)
- chore(deps): update lycheeverse/lychee-action action to v2.0.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5884](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5884)
- Run the test compatibility check even if tests failed by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5879](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5879)
- chore(deps): update lycheeverse/lychee-action action to v2.0.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5885](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5885)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.5 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5886](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5886)
- chore(deps): update googleapis to
[`796eee8`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/796eee8)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5888](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5888)
- Remove company from emeritus by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5887](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5887)
- Add selector of exemplar reservoir providers to metric.Stream
configuration by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5861](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5861)
- otel: conceal unwrapping for global async instrument registration by
[@&#8203;jmacd](https://redirect.github.com/jmacd) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5881](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5881)
- Generate `semconv/v1.27.0` by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5894](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5894)
- otlpmetricgrpc: Keep metadata for gRPC in context by
[@&#8203;mrasu](https://redirect.github.com/mrasu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5892](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5892)
- Cleanup interaction of exemplar and aggregation by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5899](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5899)
- chore(deps): update googleapis to
[`324edc3`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/324edc3)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5908](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5908)
- \[chore] Use errors.Join to unify errors by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5907](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5907)
- \[chore] Remove unnecessary type declaration in templated transforms
by [@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5906](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5906)
- Keep metadata for gRPC in context for log signal by
[@&#8203;RocooHash](https://redirect.github.com/RocooHash) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5911](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5911)
- chore(deps): update benchmark-action/github-action-benchmark action to
v1.20.4 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5916](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5916)
- Revert Cleanup interaction of exemplar and aggregation by
[@&#8203;XSAM](https://redirect.github.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5913](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5913)
- Allow additional context to be added when WithHeaders is used in OTLP
gRPC traces exporter by
[@&#8203;pree-dew](https://redirect.github.com/pree-dew) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5915](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5915)
- Fix exemplars being added to gauge metrics in the prometheus exporter
by [@&#8203;trthomps](https://redirect.github.com/trthomps) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5912](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5912)
- Switch arm builds out of actuated and into the CNCF runners by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5923](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5923)
- fix(deps): update module github.com/prometheus/common to v0.60.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5919](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5919)
- Add Cheng-Zhen as a triager by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5922](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5922)
- sdk/instrumentation: Add Attributes to Scope by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5903](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5903)
- Make scope attributes as identifying for Tracer by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5924](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5924)
- Make scope attributes as identifying for Meter by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5926](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5926)
- Make scope attributes as identifying for Logger by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5925](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5925)
- log/logtest: Add Attributes to ScopeRecords by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5927](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5927)
- opentracing: Make schemaURL and scope attributes as identifying for
Tracer by [@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5931](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5931)
- otlptrace: Add instrumentation scope attributes by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5934](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5934)
- otlpmetric: Add instrumentation scope attributes by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5935](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5935)
- otlplog: Add instrumentation scope attributes by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5933](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5933)
- Remove examples by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5930](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5930)
- docs: updating outdated comments by
[@&#8203;codeboten](https://redirect.github.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5940](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5940)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.23.0 by [@&#8203;renovate](https://redirect.github.com/renovate)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5939](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5939)
- prometheus: Refactor getAttrs by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5937](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5937)
- chore(deps): update googleapis to
[`dd2ea8e`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/dd2ea8e)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5943](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5943)
- log: Update package documentation by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5942](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5942)
- prometheus: Add instrumentation scope attributes to otel_scope_info by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5932](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5932)
- fix(deps): update github.com/opentracing-contrib/go-grpc digest to
[`d08aa2b`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/d08aa2b)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5945](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5945)
- Override insecure when endpoint URL is set by
[@&#8203;sevaorlov](https://redirect.github.com/sevaorlov) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5944](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5944)
- fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to
v0.15.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5949](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5949)
- fix(deps): update module go.opentelemetry.io/build-tools/crosslink to
v0.15.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5948](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5948)
- fix(deps): update module go.opentelemetry.io/build-tools/semconvgen to
v0.15.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5953](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5953)
- fix(deps): update github.com/opentracing-contrib/go-grpc digest to
[`e3cbcab`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e3cbcab)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5952](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5952)
- chore(deps): update lycheeverse/lychee-action action to v2.1.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5950](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5950)
- fix(deps): update module go.opentelemetry.io/build-tools/multimod to
v0.15.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5951](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5951)
- Fix incorrect metrics getting generated from multiple readers by
[@&#8203;pree-dew](https://redirect.github.com/pree-dew) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5900](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5900)
- Allow GC to collect unneeded slice elements by
[@&#8203;ash2k](https://redirect.github.com/ash2k) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5804](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5804)
- chore(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5957](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5957)
- fix(deps): update module github.com/opentracing-contrib/go-grpc to
v0.1.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5958](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5958)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest
to
[`51a56c3`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/51a56c3)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5959](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5959)
- Release v1.32.0/v0.54.0/v0.8.0/v0.0.11 by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5960](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5960)

#### New Contributors

- [@&#8203;mrasu](https://redirect.github.com/mrasu) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5892](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5892)
- [@&#8203;RocooHash](https://redirect.github.com/RocooHash) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5911](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5911)
- [@&#8203;trthomps](https://redirect.github.com/trthomps) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5912](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5912)
- [@&#8203;sevaorlov](https://redirect.github.com/sevaorlov) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5944](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5944)

**Full Changelog**:
open-telemetry/opentelemetry-go@v1.31.0...v1.32.0

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@alemrtv alemrtv requested a review from a team as a code owner November 10, 2024 18:34
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 10, 2024
Copy link

netlify bot commented Nov 10, 2024

Deploy Preview for polite-licorice-3db33c ready!

Name Link
🔨 Latest commit 8421e93
🔍 Latest deploy log https://app.netlify.com/sites/polite-licorice-3db33c/deploys/6750c2b51c93790008ac284f
😎 Deploy Preview https://deploy-preview-1448--polite-licorice-3db33c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alemrtv alemrtv changed the title Feat/add context value flag feat: add context value flag Nov 10, 2024
@beeme1mr
Copy link
Member

Hey @alemrtv, sorry for the delay on the review. I'll take a look as soon as possible.

Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@alemrtv alemrtv force-pushed the feat/add-context-value-flag branch from 7f23729 to f0df97b Compare November 23, 2024 10:46
Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

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

Thank you. Those changes look great from my perspective. I added a few remarks for ease of maintenance, which would also reduce the size of this PR, and the lines changed.

I don't have reviewer power here ;( but those are really good changes and improvements; thank you.

flagd/pkg/service/flag-evaluation/flag_evaluator.go Outdated Show resolved Hide resolved
flagd/pkg/service/flag-evaluation/ofrep/handler.go Outdated Show resolved Hide resolved
flagd/cmd/start.go Outdated Show resolved Hide resolved
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@alemrtv alemrtv force-pushed the feat/add-context-value-flag branch from dfc764d to 7725996 Compare November 28, 2024 19:52
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@alemrtv alemrtv requested review from aepfli and beeme1mr November 28, 2024 20:09
@toddbaert
Copy link
Member

Hey @alemrtv ! Sorry for the delayed review... Many of us were away with Kubecon and still playing catch up. I'll review this next week, latest. 🙏

Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@alemrtv alemrtv requested a review from toddbaert December 3, 2024 17:47
Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
@toddbaert toddbaert requested review from aepfli and toddbaert December 3, 2024 18:09
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Manually tested and works as expected both for evaluations and GetSyncMetadata calls 🙌 - Amazing work!

I only have one small question for your consideration: #1448 (comment)

I will merge this by the end of the week unless I hear objections from other contributors.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert
Copy link
Member

I've pushed a small change to fix the lint/doc CI failures as well as adding a new make target.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert
Copy link
Member

toddbaert commented Dec 4, 2024

Hey @alemrtv , thanks again. I pushed up one more small change which again changes the priority of the "configuration level" context attributes (we'll call them static attributes) vs incoming request based context attributes. I will explain why here for your understanding and for posterity:

Basically, we have 2 modes of operation for flagd providers (clients): in-process and rpc. In RPC mode these static attributes are injected into flagd's evaluation logic (this is what you've done), while in in-process mode, these values are delivered via the GetSyncMetadata call, and the providers on the other end of the wire inject these properties into their local evaluation. The way they do that is via a provider hook, which has the highest priority in terms of context merging. We can't change that priority rule, so for consistency, we've opted to also have the same priority in RPC mode. I hope that makes sense! I explained the same to @beeme1mr and @aepfli and they are on the same page. At the end of the day, I hope people generally avoid these sorts of collisions anyway.

Again, thanks for your help. I will merge this PR this week and follow up with a bunch of documentation about this feature (keeping it somewhat hidden for now since many providers don't yet support the injection I mentioned above).

Eventually, we should also enhance our gherkin suite to do some assertions which assume some of these static attributes are configured to verify consistent behavior.

@toddbaert toddbaert merged commit 7ca092e into open-feature:main Dec 5, 2024
15 checks passed
@github-actions github-actions bot mentioned this pull request Dec 4, 2024
toddbaert pushed a commit that referenced this pull request Dec 18, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.5</summary>

##
[0.11.5](flagd/v0.11.4...flagd/v0.11.5)
(2024-12-17)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.2-20240906125204-0a6a901b42e8.1
([#1451](#1451))
([8c6d91d](8c6d91d))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20240906125204-0a6a901b42e8.1
([#1475](#1475))
([0b11c6c](0b11c6c))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.4
([#1433](#1433))
([d33c7a5](d33c7a5))
* **deps:** update module github.com/stretchr/testify to v1.10.0
([#1455](#1455))
([8c843df](8c843df))
* **deps:** update module golang.org/x/net to v0.31.0
([#1446](#1446))
([9e35111](9e35111))
* **deps:** update module golang.org/x/net to v0.32.0
([#1458](#1458))
([ac0b123](ac0b123))
* **deps:** update module golang.org/x/sync to v0.9.0
([#1445](#1445))
([8893e94](8893e94))
* **deps:** update module google.golang.org/grpc to v1.68.0
([#1442](#1442))
([cd27d09](cd27d09))
* **deps:** update module google.golang.org/grpc to v1.68.1
([#1456](#1456))
([0b6e2a1](0b6e2a1))
* **deps:** update module google.golang.org/grpc to v1.69.0
([#1469](#1469))
([dd4869f](dd4869f))
* **deps:** update module google.golang.org/protobuf to v1.35.2
([#1450](#1450))
([6b9834d](6b9834d))
* **deps:** update module google.golang.org/protobuf to v1.36.0
([#1474](#1474))
([6a8a9a9](6a8a9a9))
* **deps:** update opentelemetry-go monorepo
([#1447](#1447))
([68b5794](68b5794))


### ✨ New Features

* add context-value flag
([#1448](#1448))
([7ca092e](7ca092e))
</details>

<details><summary>flagd-proxy: 0.6.8</summary>

##
[0.6.8](flagd-proxy/v0.6.7...flagd-proxy/v0.6.8)
(2024-12-17)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.2-20240906125204-0a6a901b42e8.1
([#1451](#1451))
([8c6d91d](8c6d91d))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20240906125204-0a6a901b42e8.1
([#1475](#1475))
([0b11c6c](0b11c6c))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.4
([#1433](#1433))
([d33c7a5](d33c7a5))
* **deps:** update module golang.org/x/net to v0.31.0
([#1446](#1446))
([9e35111](9e35111))
* **deps:** update module golang.org/x/net to v0.32.0
([#1458](#1458))
([ac0b123](ac0b123))
* **deps:** update module golang.org/x/sync to v0.9.0
([#1445](#1445))
([8893e94](8893e94))
* **deps:** update module google.golang.org/grpc to v1.68.0
([#1442](#1442))
([cd27d09](cd27d09))
* **deps:** update module google.golang.org/grpc to v1.68.1
([#1456](#1456))
([0b6e2a1](0b6e2a1))
* **deps:** update module google.golang.org/grpc to v1.69.0
([#1469](#1469))
([dd4869f](dd4869f))
* **deps:** update opentelemetry-go monorepo
([#1447](#1447))
([68b5794](68b5794))
</details>

<details><summary>core: 0.10.5</summary>

##
[0.10.5](core/v0.10.4...core/v0.10.5)
(2024-12-17)


### 🐛 Bug Fixes

* **deps:** update kubernetes packages to v0.31.2
([#1430](#1430))
([0df8622](0df8622))
* **deps:** update kubernetes packages to v0.31.3
([#1454](#1454))
([f56d7b0](f56d7b0))
* **deps:** update kubernetes packages to v0.31.4
([#1461](#1461))
([431fbb4](431fbb4))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.2-20240906125204-0a6a901b42e8.1
([#1451](#1451))
([8c6d91d](8c6d91d))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20240906125204-0a6a901b42e8.1
([#1475](#1475))
([0b11c6c](0b11c6c))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to
v3.6.0 ([#1460](#1460))
([dbc1da4](dbc1da4))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to
v3.6.1 ([#1473](#1473))
([a3d899c](a3d899c))
* **deps:** update module github.com/fsnotify/fsnotify to v1.8.0
([#1438](#1438))
([949c73b](949c73b))
* **deps:** update module github.com/stretchr/testify to v1.10.0
([#1455](#1455))
([8c843df](8c843df))
* **deps:** update module golang.org/x/crypto to v0.29.0
([#1443](#1443))
([db96dd5](db96dd5))
* **deps:** update module golang.org/x/crypto to v0.30.0
([#1457](#1457))
([dbdaa19](dbdaa19))
* **deps:** update module golang.org/x/crypto to v0.31.0
([#1463](#1463))
([b2245d7](b2245d7))
* **deps:** update module golang.org/x/mod to v0.22.0
([#1444](#1444))
([ed064e1](ed064e1))
* **deps:** update module google.golang.org/grpc to v1.68.0
([#1442](#1442))
([cd27d09](cd27d09))
* **deps:** update module google.golang.org/grpc to v1.68.1
([#1456](#1456))
([0b6e2a1](0b6e2a1))
* **deps:** update module google.golang.org/grpc to v1.69.0
([#1469](#1469))
([dd4869f](dd4869f))
* **deps:** update opentelemetry-go monorepo
([#1447](#1447))
([68b5794](68b5794))


### ✨ New Features

* add context-value flag
([#1448](#1448))
([7ca092e](7ca092e))
* s3 support for the blob sync
([#1449](#1449))
([a9f7261](a9f7261))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Support addition of arbitrary properties in evaluation context
4 participants