Compare commits

...

277 Commits

Author SHA1 Message Date
Todd Baert 52f344fa01
chore: fix CODEOWNERS
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-08-18 11:34:22 -04:00
Todd Baert f9ce46f103
feat: multi-project support via selectors and flagSetId namespacing (#1702)
Sorry for how big this PR seems (a lot of the change lines are not
significant (DB schema or tests), so I've tried to highlight the
important parts. This is a substantial PR that builds on our recent
changes to use go-memdb for storage. It primarily supports 2 new crucial
features:

- support for duplicate flag keys from multiple sources (namespaced by
`flagSetId`) as described in [this
ADR](https://github.com/open-feature/flagd/blob/main/docs/architecture-decisions/duplicate-flag-keys.md)
- support for a robust query syntax in the "selector" fields and
headers, as proposed by @tangenti in [this
ADR](https://github.com/open-feature/flagd/blob/main/docs/architecture-decisions/decouple-flag-source-and-set.md)

Both of these were accomplished using the new go-memdb module. **The
built-in "watcher" functionality also allows us to _completely delete_
our "mux" layer, which was responsible for fanning out changes from
sync-sources to listeners**; this is something the go-memdb module
providers for free (the ability to watch a query for changes). Now, we
completely rely on this feature for all change notifications.
Additionally, unlike before, change notifications are now scoped to
particular _selectors_ (ie: if a client is only interested in changes
for flags from `flagSetId: x` or `source: y`, they will only get change
notifications pertaining to that selection. Currently, the only
supported query fields for the `selector` are `"source"` and
`"flagSetId"`, but this functionality can easily be extended. By
default, if no `selector` is specified, the previous key-overwrite by
source priority apples (this logic has also been simplified using the
new database). Most of the new functionality is tested
[here](https://github.com/open-feature/flagd/pull/1702/files#diff-0cdd4fe716f4b8a94466279fd1b11187fcf4d74e6434727c33d57ed78c89fe27R163-R478).

Selector in action for `Sync` API:


![demo](https://github.com/user-attachments/assets/9a4fd33e-80ef-4b5b-80d1-4fa3fc92b8e7)

Selector in action for `Evaluation` API:


![demo2](https://github.com/user-attachments/assets/abf49f9c-2247-4a03-9b8f-15b6f540aad1)

To test, run the new make target `make run-flagd-selector-demo`, then
use the OFREP or gRPC endpoints to experiment. This new functionality is
available on all APIs and endpoints. The command I ran in the gifs above
are:

streaming:
```shell
grpcurl -d '{"selector":"flagSetId=example"}' -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
grpcurl -d '{"selector":"flagSetId=example,source=../config/samples/example_flags.flagd.json"}' -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
grpcurl -d '{"selector":"flagSetId=other"}' -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
```

single-evaluations:
```shell
curl -X POST  -d '{"context":{}}' 'http://localhost:8016/ofrep/v1/evaluate/flags' | jq
curl -X POST -H 'flagd-selector:flagSetId=other'  -d '{"context":{}}' 'http://localhost:8016/ofrep/v1/evaluate/flags' | jq
```

⚠️ There's no breaking changes here. Besides the new features,
there is one behavioral change - the top level "metadata" object
returned for bulk evaluations (and failed evaluations) was previously
very nonsensical in it's behavior (we basically just aggregated the
metadata from all sources, discarding duplicates, and sent it back. This
field was used by providers for telemetry purposes. Now, since flag
evaluations and subscripts are "query based" and can aggregate data from
multiple sources, we've opted to simply reflect the selector queries
contents here.

So if you used a selector like `"flagSetId=1234,source=../my/source"`,
the top-level metadata object in the response would be:

```
"metadata": {
  "flagSetId": 1234,
  "source": "../my/source"
}
```

This is useful for the provider's ability to report errors, etc in
telemetry.

Fixes: https://github.com/open-feature/flagd/issues/1675
Fixes: https://github.com/open-feature/flagd/issues/1695
Fixes: https://github.com/open-feature/flagd/issues/1611
Fixes: https://github.com/open-feature/flagd/issues/1700
Fixes: https://github.com/open-feature/flagd/issues/1610

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: chrfwow <christian.lutnik@dynatrace.com>
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
2025-08-13 16:03:07 -04:00
NeaguGeorgiana23 3228ad8951
chore!: removes the `fractionalEvaluation` operator since it has been replaced with `fractional`. (#1704)
## This PR
<!-- add the description of the PR here -->

- adds this new feature

### Related Issues
- removes the `fractionalEvaluation` operator since it has been replaced
with `fractional`.

Fixes #1677

---------

Signed-off-by: NeaguGeorgiana23 <115723925+NeaguGeorgiana23@users.noreply.github.com>
2025-08-06 17:50:43 -04:00
Todd Baert 5c5c1cfe84
chore(refactor): use memdb for flag storage (#1697)
This PR contains no behavioral changes, and no breaking changes.

It lays the groundwork for some of the upcoming improvements we want in
flagd, as specified in recent ADRs. It does this by re-implementing our
storage layer to use [go-memdb](https://github.com/hashicorp/go-memdb),
an open source in-memory database developed by Hashicorp and used in
[Consul](https://developer.hashicorp.com/consul) (as well as MANY other
projects).

### Why?

This will allow us to easily support:

- duplicate flag keys (namespaced by flagSetId), as mentioned in [this
ADR](https://github.com/open-feature/flagd/blob/main/docs/architecture-decisions/duplicate-flag-keys.md)
- robust flag selectors, as mentioned in [this
ADR](https://github.com/open-feature/flagd/pull/1644), by supporting
"watchers" which allow us to "listen" to change in flags returned by a
given query 🕺
- robust (and possibly, in the future, even customizable) indexing on
arbitrary attributes (to easily support fetching "all boolean flags", or
"flags with metadata = xyz", etc)
- cross-"table" transactions

I have already PoC'd that these are all practical.

### Changes in implementation

- the `store` package's `State` is no longer just a struct; it's a
object with methods wrapping the internal db
- the `store` package's `State` was renamed to `Store` and the file was
renamed from `flags.go` to `store.go`, since it's ceased to be a simple
stateful object, and for consistency
- a non-serialized (used only internally) `Key` field was added to the
flag type (for indexing)
- a new constructor for the `Store` was added which takes a logger and
returns an error, the old was deprecated to avoid breaking changes in
consumers (the Go flagd provider, mostly)

Note that the go-memdb dependency is MPL2, which is not allowed by the
CNCF, however, go-memdb is already used in CNCF projects and has a
[special
exception](347a55dc0a/license-exceptions/cncf-exceptions-2023-08-31.json (L7-L11)).

### Perfromance

There was no significant change in performance, see benchmark diff vs
main below:

<details>
  <summary>Benchmark diff vs main</summary>

```diff
-BenchmarkFractionalEvaluation/test_c@faas.com-16         	  559051	     13832 ns/op	    7229 B/op	     135 allocs/op
-BenchmarkFractionalEvaluation/test_d@faas.com-16         	  611665	     13106 ns/op	    7229 B/op	     135 allocs/op
-BenchmarkFractionalEvaluation/test_a@faas.com-16         	  383074	     13433 ns/op	    7229 B/op	     135 allocs/op
-BenchmarkFractionalEvaluation/test_b@faas.com-16         	  529185	     12190 ns/op	    7229 B/op	     135 allocs/op
-BenchmarkResolveBooleanValue/test_staticBoolFlag-16      	 3929409	      1712 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveBooleanValue/test_targetingBoolFlag-16   	  812671	     10276 ns/op	    6065 B/op	      87 allocs/op
-BenchmarkResolveBooleanValue/test_staticObjectFlag-16    	 4398327	      1700 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveBooleanValue/test_missingFlag-16         	 4541409	      1494 ns/op	     784 B/op	      12 allocs/op
-BenchmarkResolveBooleanValue/test_disabledFlag-16        	 2998599	      1815 ns/op	    1072 B/op	      13 allocs/op
-BenchmarkResolveStringValue/test_staticStringFlag-16     	 4378830	      1698 ns/op	    1040 B/op	      13 allocs/op
-BenchmarkResolveStringValue/test_targetingStringFlag-16  	  849668	      9165 ns/op	    6097 B/op	      89 allocs/op
-BenchmarkResolveStringValue/test_staticObjectFlag-16     	 4560192	      1363 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveStringValue/test_missingFlag-16          	 5283511	      1196 ns/op	     784 B/op	      12 allocs/op
-BenchmarkResolveStringValue/test_disabledFlag-16         	 4393116	      1446 ns/op	    1072 B/op	      13 allocs/op
-BenchmarkResolveFloatValue/test:_staticFloatFlag-16      	 4264772	      1501 ns/op	    1024 B/op	      13 allocs/op
-BenchmarkResolveFloatValue/test:_targetingFloatFlag-16   	  776436	      8191 ns/op	    6081 B/op	      89 allocs/op
-BenchmarkResolveFloatValue/test:_staticObjectFlag-16     	 4685841	      1285 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveFloatValue/test:_missingFlag-16          	 5001636	      1376 ns/op	     784 B/op	      12 allocs/op
-BenchmarkResolveFloatValue/test:_disabledFlag-16         	 3707120	      1897 ns/op	    1072 B/op	      13 allocs/op
-BenchmarkResolveIntValue/test_staticIntFlag-16           	 3770362	      1677 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveIntValue/test_targetingNumberFlag-16     	  739861	     11142 ns/op	    6065 B/op	      87 allocs/op
-BenchmarkResolveIntValue/test_staticObjectFlag-16        	 4221418	      1913 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveIntValue/test_missingFlag-16             	 4289516	      1488 ns/op	     768 B/op	      12 allocs/op
-BenchmarkResolveIntValue/test_disabledFlag-16            	 4027533	      1829 ns/op	    1072 B/op	      13 allocs/op
-BenchmarkResolveObjectValue/test_staticObjectFlag-16     	 1588855	      3880 ns/op	    2243 B/op	      37 allocs/op
-BenchmarkResolveObjectValue/test_targetingObjectFlag-16  	  562364	     11580 ns/op	    7283 B/op	     109 allocs/op
-BenchmarkResolveObjectValue/test_staticBoolFlag-16       	 5026976	      1791 ns/op	    1008 B/op	      11 allocs/op
-BenchmarkResolveObjectValue/test_missingFlag-16          	 4254043	      1553 ns/op	     784 B/op	      12 allocs/op
-BenchmarkResolveObjectValue/test_disabledFlag-16         	 3051976	      2250 ns/op	    1072 B/op	      13 allocs/op
+BenchmarkFractionalEvaluation/test_a@faas.com-16         	  478593	     14527 ns/op	    7467 B/op	     143 allocs/op
+BenchmarkFractionalEvaluation/test_b@faas.com-16         	  429560	     14728 ns/op	    7467 B/op	     143 allocs/op
+BenchmarkFractionalEvaluation/test_c@faas.com-16         	  574078	     14230 ns/op	    7467 B/op	     143 allocs/op
+BenchmarkFractionalEvaluation/test_d@faas.com-16         	  411690	     15296 ns/op	    7467 B/op	     143 allocs/op
+BenchmarkResolveBooleanValue/test_staticBoolFlag-16      	 4133443	      1973 ns/op	     960 B/op	      18 allocs/op
+BenchmarkResolveBooleanValue/test_targetingBoolFlag-16   	  822934	     10981 ns/op	    6033 B/op	      94 allocs/op
+BenchmarkResolveBooleanValue/test_staticObjectFlag-16    	 3955728	      1964 ns/op	     976 B/op	      18 allocs/op
+BenchmarkResolveBooleanValue/test_missingFlag-16         	 3068791	      2294 ns/op	    1064 B/op	      21 allocs/op
+BenchmarkResolveBooleanValue/test_disabledFlag-16        	 3500334	      2225 ns/op	    1024 B/op	      20 allocs/op
+BenchmarkResolveStringValue/test_staticStringFlag-16     	 3935048	      1781 ns/op	    1008 B/op	      20 allocs/op
+BenchmarkResolveStringValue/test_targetingStringFlag-16  	  770565	     10765 ns/op	    6065 B/op	      96 allocs/op
+BenchmarkResolveStringValue/test_staticObjectFlag-16     	 3896060	      2084 ns/op	     976 B/op	      18 allocs/op
+BenchmarkResolveStringValue/test_missingFlag-16          	 3103950	      2141 ns/op	    1064 B/op	      21 allocs/op
+BenchmarkResolveStringValue/test_disabledFlag-16         	 3717013	      2092 ns/op	    1024 B/op	      20 allocs/op
+BenchmarkResolveFloatValue/test:_staticFloatFlag-16      	 3971438	      2003 ns/op	     976 B/op	      20 allocs/op
+BenchmarkResolveFloatValue/test:_targetingFloatFlag-16   	  782996	     10153 ns/op	    6049 B/op	      96 allocs/op
+BenchmarkResolveFloatValue/test:_staticObjectFlag-16     	 3469644	      2115 ns/op	     976 B/op	      18 allocs/op
+BenchmarkResolveFloatValue/test:_missingFlag-16          	 3376167	      2157 ns/op	    1064 B/op	      21 allocs/op
+BenchmarkResolveFloatValue/test:_disabledFlag-16         	 3610095	      2032 ns/op	    1024 B/op	      20 allocs/op
+BenchmarkResolveIntValue/test_staticIntFlag-16           	 3883299	      1941 ns/op	     960 B/op	      18 allocs/op
+BenchmarkResolveIntValue/test_targetingNumberFlag-16     	  823038	     10725 ns/op	    6033 B/op	      94 allocs/op
+BenchmarkResolveIntValue/test_staticObjectFlag-16        	 3697454	      2028 ns/op	     976 B/op	      18 allocs/op
+BenchmarkResolveIntValue/test_missingFlag-16             	 3326895	      1986 ns/op	    1048 B/op	      21 allocs/op
+BenchmarkResolveIntValue/test_disabledFlag-16            	 3327046	      2142 ns/op	    1024 B/op	      20 allocs/op
+BenchmarkResolveObjectValue/test_staticObjectFlag-16     	 1534627	      4885 ns/op	    2211 B/op	      44 allocs/op
+BenchmarkResolveObjectValue/test_targetingObjectFlag-16  	  509614	     14640 ns/op	    7251 B/op	     116 allocs/op
+BenchmarkResolveObjectValue/test_staticBoolFlag-16       	 3871867	      1978 ns/op	     960 B/op	      18 allocs/op
+BenchmarkResolveObjectValue/test_missingFlag-16          	 3484065	      2080 ns/op	    1064 B/op	      21 allocs/op
+BenchmarkResolveObjectValue/test_disabledFlag-16         	 4013230	      2158 ns/op	    1024 B/op	      20 allocs/op
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/evaluator	233.286s
+ok  	github.com/open-feature/flagd/core/pkg/evaluator	261.212s
 ?   	github.com/open-feature/flagd/core/pkg/evaluator/mock	[no test files]
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/logger	0.003s
+ok  	github.com/open-feature/flagd/core/pkg/logger	0.002s
 ?   	github.com/open-feature/flagd/core/pkg/model	[no test files]
 ?   	github.com/open-feature/flagd/core/pkg/service	[no test files]
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/service/ofrep	0.003s
+ok  	github.com/open-feature/flagd/core/pkg/service/ofrep	0.002s
 PASS
 ok  	github.com/open-feature/flagd/core/pkg/store	0.002s
 ?   	github.com/open-feature/flagd/core/pkg/sync	[no test files]
@@ -51,9 +51,9 @@ PASS
 ok  	github.com/open-feature/flagd/core/pkg/sync/builder	0.020s
 ?   	github.com/open-feature/flagd/core/pkg/sync/builder/mock	[no test files]
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/sync/file	1.007s
+ok  	github.com/open-feature/flagd/core/pkg/sync/file	1.006s
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/sync/grpc	8.014s
+ok  	github.com/open-feature/flagd/core/pkg/sync/grpc	8.013s
 PASS
 ok  	github.com/open-feature/flagd/core/pkg/sync/grpc/credentials	0.004s
 ?   	github.com/open-feature/flagd/core/pkg/sync/grpc/credentials/mock	[no test files]
@@ -61,10 +61,10 @@ ok  	github.com/open-feature/flagd/core/pkg/sync/grpc/credentials	0.004s
 PASS
 ok  	github.com/open-feature/flagd/core/pkg/sync/grpc/nameresolvers	0.002s
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/sync/http	4.008s
+ok  	github.com/open-feature/flagd/core/pkg/sync/http	4.007s
 ?   	github.com/open-feature/flagd/core/pkg/sync/http/mock	[no test files]
 PASS
-ok  	github.com/open-feature/flagd/core/pkg/sync/kubernetes	0.015s
+ok  	github.com/open-feature/flagd/core/pkg/sync/kubernetes	0.016s
 ?   	github.com/open-feature/flagd/core/pkg/sync/testing	[no test files]
 PASS
 ok  	github.com/open-feature/flagd/core/pkg/telemetry	0.016s
```

</details>

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-30 09:08:47 -04:00
Todd Baert 2f49ea7ed7
Update decouple-flag-source-and-set.md
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-29 12:18:07 -04:00
Todd Baert 2d40e28b92
Update duplicate-flag-keys.md
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-29 12:16:03 -04:00
Hugo Huang 849ce39827
docs(ADR): decouple flag sources and flag sets (#1644)
The ADR proposes a different approach to solve the problems stated in
https://github.com/open-feature/flagd/pull/1634.

It's quite concise and simple at the point, assuming the reviewers
already have the context from the original discussions.

Will add more details after the initial feedback and inputs.

---------

Signed-off-by: Hugo Huang <lorqor@gmail.com>
2025-07-29 12:14:12 -04:00
github-actions[bot] 1ee636aa03
chore: release main (#1696)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.9</summary>

##
[0.12.9](https://github.com/open-feature/flagd/compare/flagd/v0.12.8...flagd/v0.12.9)
(2025-07-28)


###  New Features

* Add toggle for disabling getMetadata request
([#1693](https://github.com/open-feature/flagd/issues/1693))
([e8fd680](e8fd680860))
</details>

<details><summary>core: 0.12.1</summary>

##
[0.12.1](https://github.com/open-feature/flagd/compare/core/v0.12.0...core/v0.12.1)
(2025-07-28)


### 🧹 Chore

* add back file-delete test
([#1694](https://github.com/open-feature/flagd/issues/1694))
([750aa17](750aa176b5))
* fix benchmark
([#1698](https://github.com/open-feature/flagd/issues/1698))
([5e2d7d7](5e2d7d7176))
</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>
2025-07-28 16:00:14 -04:00
Todd Baert 5e2d7d7176
chore: fix benchmark (#1698)
This was out of date. I've updated it to use the correct format, and
update the asserts accordingly.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-28 14:30:13 -04:00
lea konvalinka e8fd680860
feat: Add toggle for disabling getMetadata request (#1693)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

- adds a toggle `disable-sync-metadata` for the Sync Service to disable
or enable the deprecated `getMetadata` request

### Related Issues
[#1688 [FEATURE] Temporary Context Enrichment
toggle](https://github.com/open-feature/flagd/issues/1688)

---------

Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
2025-07-28 15:33:31 +02:00
Todd Baert 750aa176b5
chore: add back file-delete test (#1694)
Adds back a test that was inappropriately removed (as explained
[here](https://github.com/beeme1mr/flagd/pull/16/files#r2223712589)).

Also fixes some typos.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-24 07:21:36 -04:00
github-actions[bot] c0a2940aef
chore: release main (#1686)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.8</summary>

##
[0.12.8](https://github.com/open-feature/flagd/compare/flagd/v0.12.7...flagd/v0.12.8)
(2025-07-21)


### 🐛 Bug Fixes

* update to latest otel semconv
([#1668](https://github.com/open-feature/flagd/issues/1668))
([81855d7](81855d76f9))


### 🧹 Chore

* **deps:** update module github.com/open-feature/flagd/core to v0.11.8
([#1685](https://github.com/open-feature/flagd/issues/1685))
([c07ffba](c07ffba554))
</details>

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

##
[0.8.0](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.6...flagd-proxy/v0.8.0)
(2025-07-21)


### ⚠ BREAKING CHANGES

* remove sync.Type
([#1691](https://github.com/open-feature/flagd/issues/1691))

###  New Features

* remove sync.Type
([#1691](https://github.com/open-feature/flagd/issues/1691))
([ac647e0](ac647e0656))


### 🧹 Chore

* **deps:** update module github.com/open-feature/flagd/core to v0.11.8
([#1685](https://github.com/open-feature/flagd/issues/1685))
([c07ffba](c07ffba554))
</details>

<details><summary>core: 0.12.0</summary>

##
[0.12.0](https://github.com/open-feature/flagd/compare/core/v0.11.8...core/v0.12.0)
(2025-07-21)


### ⚠ BREAKING CHANGES

* remove sync.Type
([#1691](https://github.com/open-feature/flagd/issues/1691))

### 🐛 Bug Fixes

* update to latest otel semconv
([#1668](https://github.com/open-feature/flagd/issues/1668))
([81855d7](81855d76f9))


###  New Features

* Add support for HTTP eTag header and 304 no change response
([#1645](https://github.com/open-feature/flagd/issues/1645))
([ea3be4f](ea3be4f901))
* remove sync.Type
([#1691](https://github.com/open-feature/flagd/issues/1691))
([ac647e0](ac647e0656))
</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>
2025-07-23 16:39:41 -04:00
Zhiwei Liang ea3be4f901
feat: Add support for HTTP eTag header and 304 no change response (#1645)
## This PR
- adds the support for the `eTag` request header and `304 Not Modified`
response.

### Related Issues
Fixes #1558

### Notes
This proposal includes some significant behavior changes; therefore, any
feedback, opinions, or objections are welcome and appreciated.

### How to test
```bash
make build
cd bin && ./flagd start --port 8013 --uri https://raw.githubusercontent.com/open-feature/flagd/main/samples/example_flags.flagd.json --debug
```

More specific test cases to be added when we all agree on proceeding
with the implementation of the change in this PR.

---------

Signed-off-by: Zhiwei Liang <zhiwei.liang27@pm.me>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-21 08:30:22 -04:00
Todd Baert ac647e0656
feat!: remove sync.Type (#1691)
The PR removes the obsolete `sync.Type`. This was intended to be used to
support partial updates from sync sources, but it's never been used and
it's lagging behind on features and would not work fully if implemented
by a source (`metadata` is not properly implemented). Moreover, we're
not convinced the value is worth the complexity it adds.

Specifically:

- removes `sync.Type` and all references
- removes tests for `sync.Type` and updates assertions for unrelated
tests which previously asserted on `sync.Type` (now we use the
payload/source in assertions)
- (unrelated) updates `CONTRIBUTING.md` to include a bunch of helpful
manual testing steps

Note that this is a breaking change, but only for the `flagd/core`
library, NOT for flagd or any sync source itself in terms of their
behavior. Since there was no change in `flagd/`, this will not show up
in the CHANGELOG.

Resolves: https://github.com/open-feature/flagd/issues/1678

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-21 08:01:56 -04:00
Michael Beemer 81855d76f9
fix: update to latest otel semconv (#1668)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-07-17 12:36:02 -04:00
renovate[bot] c07ffba554
chore(deps): update module github.com/open-feature/flagd/core to v0.11.8 (#1685)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.11.6` -> `v0.11.8` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.6/v0.11.8?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:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-16 06:38:56 +00:00
github-actions[bot] 0f732e2217
chore: release main (#1684)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.7</summary>

##
[0.12.7](https://github.com/open-feature/flagd/compare/flagd/v0.12.6...flagd/v0.12.7)
(2025-07-15)


### 🧹 Chore

* **deps:** update module github.com/open-feature/flagd/core to v0.11.6
([#1683](https://github.com/open-feature/flagd/issues/1683))
([b6da282](b6da282f8a))
</details>

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

##
[0.7.6](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.5...flagd-proxy/v0.7.6)
(2025-07-15)


### 🧹 Chore

* **deps:** update module github.com/open-feature/flagd/core to v0.11.6
([#1683](https://github.com/open-feature/flagd/issues/1683))
([b6da282](b6da282f8a))
</details>

<details><summary>core: 0.11.8</summary>

##
[0.11.8](https://github.com/open-feature/flagd/compare/core/v0.11.7...core/v0.11.8)
(2025-07-15)


### 🧹 Chore

* **deps:** update github.com/open-feature/flagd-schemas digest to
08b4c52 ([#1682](https://github.com/open-feature/flagd/issues/1682))
([68d04e2](68d04e21e6))
</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>
2025-07-15 14:55:40 -04:00
renovate[bot] b6da282f8a
chore(deps): update module github.com/open-feature/flagd/core to v0.11.6 (#1683)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.11.5` -> `v0.11.6` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.5/v0.11.6?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:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 14:50:43 -04:00
renovate[bot] 68d04e21e6
chore(deps): update github.com/open-feature/flagd-schemas digest to 08b4c52 (#1682)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `9b0ee43` -> `08b4c52` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 14:40:45 -04:00
github-actions[bot] 4a822fc83a
chore: release main (#1681)
🤖 I have created a release *beep* *boop*
---


<details><summary>core: 0.11.7</summary>

##
[0.11.7](https://github.com/open-feature/flagd/compare/core/v0.11.6...core/v0.11.7)
(2025-07-15)


### 🐛 Bug Fixes

* general err if targeting variant not in variants
([#1680](https://github.com/open-feature/flagd/issues/1680))
([6cabfc8](6cabfc8ff3))
</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>
2025-07-15 14:32:13 -04:00
Todd Baert 6cabfc8ff3
fix: general err if targeting variant not in variants (#1680)
This makes the RPC mode consistent with our in-process evaluations when
a variant is returned from targeting which is not in the variants list.

Relates to
758fbd5b84

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-15 14:19:15 -04:00
github-actions[bot] 961f9a6e13
chore: release main (#1661)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.6</summary>

##
[0.12.6](https://github.com/open-feature/flagd/compare/flagd/v0.12.5...flagd/v0.12.6)
(2025-07-10)


### 🐛 Bug Fixes

* **security:** update module github.com/go-viper/mapstructure/v2 to
v2.3.0 [security]
([#1667](https://github.com/open-feature/flagd/issues/1667))
([caa0ed0](caa0ed04eb))


###  New Features

* add sync_context to SyncFlags
([#1642](https://github.com/open-feature/flagd/issues/1642))
([07a45d9](07a45d9b22))
</details>

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

##
[0.7.5](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.4...flagd-proxy/v0.7.5)
(2025-07-10)


### 🐛 Bug Fixes

* **security:** update module github.com/go-viper/mapstructure/v2 to
v2.3.0 [security]
([#1667](https://github.com/open-feature/flagd/issues/1667))
([caa0ed0](caa0ed04eb))


###  New Features

* add sync_context to SyncFlags
([#1642](https://github.com/open-feature/flagd/issues/1642))
([07a45d9](07a45d9b22))
</details>

<details><summary>core: 0.11.6</summary>

##
[0.11.6](https://github.com/open-feature/flagd/compare/core/v0.11.5...core/v0.11.6)
(2025-07-10)


###  New Features

* add sync_context to SyncFlags
([#1642](https://github.com/open-feature/flagd/issues/1642))
([07a45d9](07a45d9b22))
* allowing null/missing defaultValue
([#1659](https://github.com/open-feature/flagd/issues/1659))
([3f6b78c](3f6b78c8cc))
</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>
2025-07-14 08:03:09 -04:00
Todd Baert 2f330af516
chore: rename rejected ADR
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-10 14:27:12 -04:00
Dave Josephsen b604574adf
docs: first draft multi-sync-sources ADR (#1636)
Intent of this PR is to add the first draft of the multi-synch-sources
ADR, this is a docs-only change

---------

Signed-off-by: Dave Josephsen <dave.josephsen@gmail.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-09 16:12:03 -04:00
Todd Baert b6384416e8
docs(ADR): propose support for flag set selection (#1634)
The goal of this decision document is to establish flag sets as a first
class concept in `flagd`, and support the dynamic
addition/update/removal of flag sets at runtime.

See document for all justifications and background.

@dominikhaska @tangenti @cupofcat 

Alternative proposal here:
https://github.com/open-feature/flagd/pull/1644#discussion_r2149723952

---------

Signed-off-by: Alexandra Oberaigner <alexandra.oberaigner@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Alexandra Oberaigner <alexandra.oberaigner@dynatrace.com>
Co-authored-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-07-09 15:46:04 -04:00
Rahul Baradol 3f6b78c8cc
feat: allowing null/missing defaultValue (#1659)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
- adds support for null/missing default values 

### Related Issues
Fixes #1647 

### Notes
Points to be noted...
- If there is no `defaultValue` and no targetting rules, then
`FlagNotFound` is returned
- If targetting doesn't resolve a variant, and there is no
`defaultValue`, then `FlagNotFound` is returned

---------

Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-09 15:25:30 -04:00
Hugo Huang 797b48294b
docs(ADR): support flags with duplicate keys. (#1660)
This is proposal for support flags with duplicate keys, as a follow up
of the discussion on #1634 and #1644.

The selector semantics change proposed in #1644 will be addressed in a
separate ADR.

---------

Signed-off-by: Hugo Huang <lorqor@gmail.com>
2025-07-08 08:35:54 -04:00
renovate[bot] caa0ed04eb
fix(security): update module github.com/go-viper/mapstructure/v2 to v2.3.0 [security] (#1667)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[github.com/go-viper/mapstructure/v2](https://redirect.github.com/go-viper/mapstructure)
| `v2.2.1` -> `v2.3.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-viper%2fmapstructure%2fv2/v2.2.1/v2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[GHSA-fv92-fjc5-jj9h](https://redirect.github.com/go-viper/mapstructure/security/advisories/GHSA-fv92-fjc5-jj9h)

### Summary

Use of this library in a security-critical context may result in leaking
sensitive information, if used to process sensitive fields.

### Details

OpenBao (and presumably HashiCorp Vault) have surfaced error messages
from `mapstructure` as follows:


98c3a59c04/sdk/framework/field_data.go (L43-L50)

```go
			_, _, err := d.getPrimitive(field, schema)
			if err != nil {
				return fmt.Errorf("error converting input for field %q: %w", field, err)
			}
```

where this calls `mapstructure.WeakDecode(...)`:
98c3a59c04/sdk/framework/field_data.go (L181-L193)

```go

func (d *FieldData) getPrimitive(k string, schema *FieldSchema) (interface{}, bool, error) {
	raw, ok := d.Raw[k]
	if !ok {
		return nil, false, nil
	}

	switch t := schema.Type; t {
	case TypeBool:
		var result bool
		if err := mapstructure.WeakDecode(raw, &result); err != nil {
			return nil, false, err
		}
		return result, true, nil
```

Notably, `WeakDecode(...)` eventually calls one of the decode helpers,
which surfaces the original value:


1a66224d5e/mapstructure.go (L679-L686)


1a66224d5e/mapstructure.go (L726-L730)


1a66224d5e/mapstructure.go (L783-L787)

& more.

### PoC

To reproduce with OpenBao:

```
$ podman run -p 8300:8300 openbao/openbao:latest server -dev -dev-root-token-id=root -dev-listen-address=0.0.0.0:8300
```

and in a new tab:

```
$ BAO_TOKEN=root BAO_ADDR=http://localhost:8300 bao auth enable userpass
Success! Enabled userpass auth method at: userpass/
$ curl -X PUT -H "X-Vault-Request: true" -H "X-Vault-Token: root" -d '{"password":{"asdf":"my-sensitive-value"}}' "http://localhost:8300/v1/auth/userpass/users/adsf"
{"errors":["error converting input for field \"password\": '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[asdf:my-sensitive-value]'"]}
```

### Impact

This is an information disclosure bug with little mitigation. See
https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717
for a previous version. That version was fixed, but this is in the
second part of that error message (starting at `'' expected a map, got
'string'` -- when the field type is `string` and a `map` is provided, we
see the above information leak -- the previous example had a `map` type
field with a `string` value provided).

This was rated 4.5 Medium by HashiCorp in the past iteration.

---

### Release Notes

<details>
<summary>go-viper/mapstructure
(github.com/go-viper/mapstructure/v2)</summary>

###
[`v2.3.0`](https://redirect.github.com/go-viper/mapstructure/releases/tag/v2.3.0)

[Compare
Source](https://redirect.github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0)

#### What's Changed

- build(deps): bump actions/checkout from 4.1.7 to 4.2.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/46](https://redirect.github.com/go-viper/mapstructure/pull/46)
- build(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/47](https://redirect.github.com/go-viper/mapstructure/pull/47)
- \[enhancement] Add check for `reflect.Value` in
`ComposeDecodeHookFunc` by
[@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[https://github.com/go-viper/mapstructure/pull/52](https://redirect.github.com/go-viper/mapstructure/pull/52)
- build(deps): bump actions/setup-go from 5.0.2 to 5.1.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/51](https://redirect.github.com/go-viper/mapstructure/pull/51)
- build(deps): bump actions/checkout from 4.2.0 to 4.2.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/50](https://redirect.github.com/go-viper/mapstructure/pull/50)
- build(deps): bump actions/setup-go from 5.1.0 to 5.2.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/55](https://redirect.github.com/go-viper/mapstructure/pull/55)
- build(deps): bump actions/setup-go from 5.2.0 to 5.3.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/58](https://redirect.github.com/go-viper/mapstructure/pull/58)
- ci: add Go 1.24 to the test matrix by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/74](https://redirect.github.com/go-viper/mapstructure/pull/74)
- build(deps): bump golangci/golangci-lint-action from 6.1.1 to 6.5.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/72](https://redirect.github.com/go-viper/mapstructure/pull/72)
- build(deps): bump golangci/golangci-lint-action from 6.5.0 to 6.5.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/76](https://redirect.github.com/go-viper/mapstructure/pull/76)
- build(deps): bump actions/setup-go from 5.3.0 to 5.4.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/78](https://redirect.github.com/go-viper/mapstructure/pull/78)
- feat: add decode hook for netip.Prefix by
[@&#8203;tklauser](https://redirect.github.com/tklauser) in
[https://github.com/go-viper/mapstructure/pull/85](https://redirect.github.com/go-viper/mapstructure/pull/85)
- Updates by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/86](https://redirect.github.com/go-viper/mapstructure/pull/86)
- build(deps): bump github/codeql-action from 2.13.4 to 3.28.15 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/87](https://redirect.github.com/go-viper/mapstructure/pull/87)
- build(deps): bump actions/setup-go from 5.4.0 to 5.5.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/93](https://redirect.github.com/go-viper/mapstructure/pull/93)
- build(deps): bump github/codeql-action from 3.28.15 to 3.28.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/92](https://redirect.github.com/go-viper/mapstructure/pull/92)
- build(deps): bump github/codeql-action from 3.28.17 to 3.28.19 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/97](https://redirect.github.com/go-viper/mapstructure/pull/97)
- build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/96](https://redirect.github.com/go-viper/mapstructure/pull/96)
- Update README.md by
[@&#8203;peczenyj](https://redirect.github.com/peczenyj) in
[https://github.com/go-viper/mapstructure/pull/90](https://redirect.github.com/go-viper/mapstructure/pull/90)
- Add omitzero tag. by
[@&#8203;Crystalix007](https://redirect.github.com/Crystalix007) in
[https://github.com/go-viper/mapstructure/pull/98](https://redirect.github.com/go-viper/mapstructure/pull/98)
- Use error structs instead of duplicated strings by
[@&#8203;m1k1o](https://redirect.github.com/m1k1o) in
[https://github.com/go-viper/mapstructure/pull/102](https://redirect.github.com/go-viper/mapstructure/pull/102)
- build(deps): bump github/codeql-action from 3.28.19 to 3.29.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/go-viper/mapstructure/pull/101](https://redirect.github.com/go-viper/mapstructure/pull/101)
- feat: add common error interface by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/105](https://redirect.github.com/go-viper/mapstructure/pull/105)
- update linter by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/go-viper/mapstructure/pull/106](https://redirect.github.com/go-viper/mapstructure/pull/106)
- Feature allow unset pointer by
[@&#8203;rostislaved](https://redirect.github.com/rostislaved) in
[https://github.com/go-viper/mapstructure/pull/80](https://redirect.github.com/go-viper/mapstructure/pull/80)

#### New Contributors

- [@&#8203;tklauser](https://redirect.github.com/tklauser) made their
first contribution in
[https://github.com/go-viper/mapstructure/pull/85](https://redirect.github.com/go-viper/mapstructure/pull/85)
- [@&#8203;peczenyj](https://redirect.github.com/peczenyj) made their
first contribution in
[https://github.com/go-viper/mapstructure/pull/90](https://redirect.github.com/go-viper/mapstructure/pull/90)
- [@&#8203;Crystalix007](https://redirect.github.com/Crystalix007) made
their first contribution in
[https://github.com/go-viper/mapstructure/pull/98](https://redirect.github.com/go-viper/mapstructure/pull/98)
- [@&#8203;rostislaved](https://redirect.github.com/rostislaved) made
their first contribution in
[https://github.com/go-viper/mapstructure/pull/80](https://redirect.github.com/go-viper/mapstructure/pull/80)

**Full Changelog**:
https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-05 02:51:18 +00:00
renovate[bot] 76ac517446
fix(security): update vulnerable-dependencies (#1664)
This PR contains the following updates:

| Package | Change | Age | Confidence | Type | Update |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.18.1-20250127221518-be6d1143b690.1` ->
`v1.18.1-20250529171031-ebdc14163473.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20250529171031-ebdc14163473.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20250127221518-be6d1143b690.1/v1.18.1-20250529171031-ebdc14163473.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.5.1-20250127221518-be6d1143b690.2` ->
`v1.5.1-20250529171031-ebdc14163473.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20250529171031-ebdc14163473.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20250127221518-be6d1143b690.2/v1.5.1-20250529171031-ebdc14163473.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.5-20250127221518-be6d1143b690.1` ->
`v1.36.6-20250529171031-ebdc14163473.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.6-20250529171031-ebdc14163473.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.5-20250127221518-be6d1143b690.1/v1.36.6-20250529171031-ebdc14163473.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.7.4` -> `v3.8.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.4/v3.8.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[github.com/fsnotify/fsnotify](https://redirect.github.com/fsnotify/fsnotify)
| `v1.8.0` -> `v1.9.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2ffsnotify%2ffsnotify/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2ffsnotify%2ffsnotify/v1.8.0/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.11.2` -> `v0.11.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.2/v0.11.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
|
[github.com/open-feature/open-feature-operator/apis](https://redirect.github.com/open-feature/open-feature-operator)
| `v0.2.44` -> `v0.2.45` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.45?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.44/v0.2.45?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.21.1` -> `v1.22.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.21.1/v1.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| [github.com/spf13/viper](https://redirect.github.com/spf13/viper) |
`v1.19.0` -> `v1.20.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fviper/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fviper/v1.19.0/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| [go](https://go.dev/)
([source](https://redirect.github.com/golang/go)) | `1.24.2` -> `1.24.4`
|
[![age](https://developer.mend.io/api/mc/badges/age/golang-version/go/1.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/golang-version/go/1.24.2/1.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| toolchain | patch |
|
[go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://redirect.github.com/open-telemetry/opentelemetry-go-contrib)
| `v0.60.0` -> `v0.62.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fcontrib%2finstrumentation%2fnet%2fhttp%2fotelhttp/v0.62.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fcontrib%2finstrumentation%2fnet%2fhttp%2fotelhttp/v0.60.0/v0.62.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.57.0` -> `v0.59.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.59.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.57.0/v0.59.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.35.0` -> `v1.37.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.37.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.35.0/v1.37.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| [go.uber.org/mock](https://redirect.github.com/uber/mock) | `v0.5.0`
-> `v0.5.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.uber.org%2fmock/v0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.uber.org%2fmock/v0.5.0/v0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
| [gocloud.dev](https://redirect.github.com/google/go-cloud) | `v0.40.0`
-> `v0.42.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/gocloud.dev/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/gocloud.dev/v0.40.0/v0.42.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| golang.org/x/crypto | `v0.33.0` -> `v0.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.33.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| indirect | minor |
| golang.org/x/crypto | `v0.33.0` -> `v0.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.33.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| golang.org/x/mod | `v0.23.0` -> `v0.25.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.23.0/v0.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| golang.org/x/net | `v0.35.0` -> `v0.38.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.35.0/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| golang.org/x/net | `v0.35.0` -> `v0.38.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.35.0/v0.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| indirect | minor |
| golang.org/x/sync | `v0.11.0` -> `v0.15.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsync/v0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsync/v0.11.0/v0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) |
`v1.71.0` -> `v1.73.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.73.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.71.0/v1.73.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[k8s.io/apimachinery](https://redirect.github.com/kubernetes/apimachinery)
| `v0.31.4` -> `v0.33.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fapimachinery/v0.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fapimachinery/v0.31.4/v0.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
| [k8s.io/client-go](https://redirect.github.com/kubernetes/client-go) |
`v0.31.4` -> `v0.33.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fclient-go/v0.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fclient-go/v0.31.4/v0.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |

### GitHub Vulnerability Alerts

#### [CVE-2025-22869](https://nvd.nist.gov/vuln/detail/CVE-2025-22869)

SSH servers which implement file transfer protocols are vulnerable to a
denial of service attack from clients which complete the key exchange
slowly, or not at all, causing pending content to be read into memory,
but never transmitted.

#### [CVE-2025-22870](https://nvd.nist.gov/vuln/detail/CVE-2025-22870)

Matching of hosts against proxy patterns can improperly treat an IPv6
zone ID as a hostname component. For example, when the NO_PROXY
environment variable is set to "*.example.com", a request to
"[::1%25.example.com]:80` will incorrectly match and not be proxied.

#### [CVE-2025-22872](https://nvd.nist.gov/vuln/detail/CVE-2025-22872)

The tokenizer incorrectly interprets tags with unquoted attribute values
that end with a solidus character (/) as self-closing. When directly
using Tokenizer, this can result in such tags incorrectly being marked
as self-closing, and when using the Parse functions, this can result in
content following such tags as being placed in the wrong scope during
DOM construction, but only when tags are in foreign content (e.g.
<math>, <svg>, etc contexts).

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.8.4`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.8.4)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.8.3...v3.8.4)

#### What's Changed

- operation.go: guard global mem from concurent writes on startup and
config by [@&#8203;Moisi](https://redirect.github.com/Moisi) in
[https://github.com/diegoholiveira/jsonlogic/pull/124](https://redirect.github.com/diegoholiveira/jsonlogic/pull/124)

#### New Contributors

- [@&#8203;Moisi](https://redirect.github.com/Moisi) made their first
contribution in
[https://github.com/diegoholiveira/jsonlogic/pull/124](https://redirect.github.com/diegoholiveira/jsonlogic/pull/124)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.8.3...v3.8.4

###
[`v3.8.3`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.8.3)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.8.2...v3.8.3)

#### What's Changed

- fix(122): Negating an empty slice should return true by
[@&#8203;juannorris](https://redirect.github.com/juannorris) in
[https://github.com/diegoholiveira/jsonlogic/pull/123](https://redirect.github.com/diegoholiveira/jsonlogic/pull/123)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.8.2...v3.8.3

###
[`v3.8.2`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.8.2)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.8.1...v3.8.2)

#### What's Changed

- fix: allow 'map primitives' in ValidateJsonLogic by
[@&#8203;juannorris](https://redirect.github.com/juannorris) in
[https://github.com/diegoholiveira/jsonlogic/pull/121](https://redirect.github.com/diegoholiveira/jsonlogic/pull/121)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.8.1...v3.8.2

###
[`v3.8.1`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.8.1)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.8.0...v3.8.1)

#### What's Changed

- Enhancement proposal for test names in TestRulesFromJsonLogic test
suite by [@&#8203;juannorris](https://redirect.github.com/juannorris) in
[https://github.com/diegoholiveira/jsonlogic/pull/116](https://redirect.github.com/diegoholiveira/jsonlogic/pull/116)
- disable setup-go dependency cache by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/117](https://redirect.github.com/diegoholiveira/jsonlogic/pull/117)
- Make IF operator behave lazily (like AND and OR) by
[@&#8203;juannorris](https://redirect.github.com/juannorris) in
[https://github.com/diegoholiveira/jsonlogic/pull/118](https://redirect.github.com/diegoholiveira/jsonlogic/pull/118)
- Remove some unused code by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/119](https://redirect.github.com/diegoholiveira/jsonlogic/pull/119)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.8.0...v3.8.1

###
[`v3.8.0`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.8.0)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.5...v3.8.0)

#### What's Changed

##### Performance Enhancements

- Reduced memory usage by ~2% across all operations
- Decreased allocation count by ~5% through better memory pre-allocation
- Improved execution time by ~2.5% on average
- Most significant speedups in equality operations (+10%) and complex
condition evaluation (+8%)

To better understand this numbers, I published the benchmark suite in
https://github.com/diegoholiveira/jsonlogic/tree/main/benchmark

##### Code Improvements

- Renamed 'arrays.go' to 'lists.go' for better semantic clarity
- Added pre-allocation of slices with appropriate capacity for improved
performance
- Optimized common operations with early returns for empty or
single-element arrays
- Enhanced memory efficiency in list operations (filter, map, merge)
- Improved type handling and nil checks in equality operations
- Added optimized paths for sum and concatenation operations

This release focuses on performance optimization and code quality
improvements, making the library more efficient while maintaining full
compatibility with the JSONLogic specification.

###
[`v3.7.5`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.5)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.4...v3.7.5)

#### What's Changed

- create the javascript package to encapsulate specific JS behavior by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/106](https://redirect.github.com/diegoholiveira/jsonlogic/pull/106)
- create the `typing` package with types conversion helpers by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/107](https://redirect.github.com/diegoholiveira/jsonlogic/pull/107)
- Improve go docs by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/108](https://redirect.github.com/diegoholiveira/jsonlogic/pull/108)
- fix: ensure default values are used only when required by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/111](https://redirect.github.com/diegoholiveira/jsonlogic/pull/111)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.7.4...v3.7.5

</details>

<details>
<summary>fsnotify/fsnotify (github.com/fsnotify/fsnotify)</summary>

###
[`v1.9.0`](https://redirect.github.com/fsnotify/fsnotify/releases/tag/v1.9.0)

[Compare
Source](https://redirect.github.com/fsnotify/fsnotify/compare/v1.8.0...v1.9.0)

##### Changes and fixes

- all: make BufferedWatcher buffered again ([#&#8203;657])

- inotify: fix race when adding/removing watches while a watched path is
being deleted ([#&#8203;678], [#&#8203;686])

- inotify: don't send empty event if a watched path is unmounted
([#&#8203;655])

- inotify: don't register duplicate watches when watching both a symlink
and its target; previously that would get "half-added" and removing the
second would panic ([#&#8203;679])

- kqueue: fix watching relative symlinks ([#&#8203;681])

- kqueue: correctly mark pre-existing entries when watching a link to a
dir on kqueue ([#&#8203;682])

- illumos: don't send error if changed file is deleted while processing
the event ([#&#8203;678])

[#&#8203;657]: https://redirect.github.com/fsnotify/fsnotify/pull/657

[#&#8203;678]: https://redirect.github.com/fsnotify/fsnotify/pull/678

[#&#8203;686]: https://redirect.github.com/fsnotify/fsnotify/pull/686

[#&#8203;655]: https://redirect.github.com/fsnotify/fsnotify/pull/655

[#&#8203;681]: https://redirect.github.com/fsnotify/fsnotify/pull/681

[#&#8203;679]: https://redirect.github.com/fsnotify/fsnotify/pull/679

[#&#8203;682]: https://redirect.github.com/fsnotify/fsnotify/pull/682

</details>

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.22.0`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.22.0):
- 2025-04-07

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.21.1...v1.22.0)

⚠️ This release contains potential breaking change if you use
experimental `zstd` support introduce in
[#&#8203;1496](https://redirect.github.com/prometheus/client_golang/issues/1496)
⚠️

Experimental support for `zstd` on scrape was added, controlled by the
request `Accept-Encoding` header.
It was enabled by default since version 1.20, but now you need to add a
blank import to enable it.
The decision to make it opt-in by default was originally made because
the Go standard library was expected to have default zstd support added
soon,

[https://github.com/golang/go/issues/62513](https://redirect.github.com/golang/go/issues/62513)
however, the work took longer than anticipated and it will be postponed
to upcoming major Go versions.

e.g.:

> ```go
> import (
>   _ "github.com/prometheus/client_golang/prometheus/promhttp/zstd"
> )
> ```

- \[FEATURE] prometheus: Add new CollectorFunc utility
[#&#8203;1724](https://redirect.github.com/prometheus/client_golang/issues/1724)
- \[CHANGE] Minimum required Go version is now 1.22 (we also test
client\_golang against latest go version - 1.24)
[#&#8203;1738](https://redirect.github.com/prometheus/client_golang/issues/1738)
- \[FEATURE] api: `WithLookbackDelta` and `WithStats` options have been
added to API client.
[#&#8203;1743](https://redirect.github.com/prometheus/client_golang/issues/1743)
- \[CHANGE] ⚠️ promhttp: Isolate zstd support and
klauspost/compress library use to promhttp/zstd package.
[#&#8203;1765](https://redirect.github.com/prometheus/client_golang/issues/1765)

<details>
<summary> All Changes </summary>

- build(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1720](https://redirect.github.com/prometheus/client_golang/pull/1720)0
- build(deps): bump google.golang.org/protobuf from 1.36.1 to 1.36.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1719](https://redirect.github.com/prometheus/client_golang/pull/1719)9
- Update RELEASE.md by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1721](https://redirect.github.com/prometheus/client_golang/pull/1721)1
- chore(docs): Add links for the upstream PRs by
[@&#8203;kakkoyun](https://redirect.github.com/kakkoyun) in
[https://github.com/prometheus/client_golang/pull/1722](https://redirect.github.com/prometheus/client_golang/pull/1722)2
- Added tips on releasing client and checking with k8s. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1723](https://redirect.github.com/prometheus/client_golang/pull/1723)3
- feat: Add new CollectorFunc utility by
[@&#8203;Saumya40-codes](https://redirect.github.com/Saumya40-codes) in
[https://github.com/prometheus/client_golang/pull/1724](https://redirect.github.com/prometheus/client_golang/pull/1724)4
- build(deps): bump google.golang.org/protobuf from 1.36.3 to 1.36.4 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1725](https://redirect.github.com/prometheus/client_golang/pull/1725)5
- build(deps): bump the github-actions group with 5 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1726](https://redirect.github.com/prometheus/client_golang/pull/1726)6
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1727](https://redirect.github.com/prometheus/client_golang/pull/1727)7
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1731](https://redirect.github.com/prometheus/client_golang/pull/1731)1
- build(deps): bump golang.org/x/sys from 0.29.0 to 0.30.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1739](https://redirect.github.com/prometheus/client_golang/pull/1739)9
- build(deps): bump google.golang.org/protobuf from 1.36.4 to 1.36.5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1740](https://redirect.github.com/prometheus/client_golang/pull/1740)0
- Cleanup dependabot config by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1741](https://redirect.github.com/prometheus/client_golang/pull/1741)1
- Upgrade Golang version v1.24 by
[@&#8203;dongjiang1989](https://redirect.github.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1738](https://redirect.github.com/prometheus/client_golang/pull/1738)8
- build(deps): bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1742](https://redirect.github.com/prometheus/client_golang/pull/1742)2
- Merging 1.21 release back to main. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1744](https://redirect.github.com/prometheus/client_golang/pull/1744)4
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1745](https://redirect.github.com/prometheus/client_golang/pull/1745)5
- Add support for undocumented query options for API by
[@&#8203;mahendrapaipuri](https://redirect.github.com/mahendrapaipuri)
in
[https://github.com/prometheus/client_golang/pull/1743](https://redirect.github.com/prometheus/client_golang/pull/1743)3
- exp/api: Add experimental exp module; Add remote API with write client
and handler. by [@&#8203;bwplotka](https://redirect.github.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1658](https://redirect.github.com/prometheus/client_golang/pull/1658)8
- exp/api: Add accepted msg type validation to handler by
[@&#8203;saswatamcode](https://redirect.github.com/saswatamcode) in
[https://github.com/prometheus/client_golang/pull/1750](https://redirect.github.com/prometheus/client_golang/pull/1750)0
- build(deps): bump the github-actions group with 5 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1751](https://redirect.github.com/prometheus/client_golang/pull/1751)1
- build(deps): bump github.com/klauspost/compress from 1.17.11 to 1.18.0
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1752](https://redirect.github.com/prometheus/client_golang/pull/1752)2
- build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1753](https://redirect.github.com/prometheus/client_golang/pull/1753)3
- exp: Reset snappy buf by
[@&#8203;saswatamcode](https://redirect.github.com/saswatamcode) in
[https://github.com/prometheus/client_golang/pull/1756](https://redirect.github.com/prometheus/client_golang/pull/1756)6
- Merge release 1.21.1 to main. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1762](https://redirect.github.com/prometheus/client_golang/pull/1762)2
- exp: Add dependabot config by
[@&#8203;saswatamcode](https://redirect.github.com/saswatamcode) in
[https://github.com/prometheus/client_golang/pull/1754](https://redirect.github.com/prometheus/client_golang/pull/1754)4
- build(deps): bump peter-evans/create-pull-request from 7.0.7 to 7.0.8
in the github-actions group by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1764](https://redirect.github.com/prometheus/client_golang/pull/1764)4
- promhttp: Isolate zstd support and klauspost/compress library use to
promhttp/zstd package by
[@&#8203;liggitt](https://redirect.github.com/liggitt) in
[https://github.com/prometheus/client_golang/pull/1765](https://redirect.github.com/prometheus/client_golang/pull/1765)5
- Cut 1.22.0-rc.0 by
[@&#8203;kakkoyun](https://redirect.github.com/kakkoyun) in
[https://github.com/prometheus/client_golang/pull/1768](https://redirect.github.com/prometheus/client_golang/pull/1768)8

</details>

#### New Contributors
* @&#8203;Saumya40-codes made their first
contributi[https://github.com/prometheus/client_golang/pull/1724](https://redirect.github.com/prometheus/client_golang/pull/1724)l/1724
* @&#8203;mahendrapaipuri made their first
contributi[https://github.com/prometheus/client_golang/pull/1743](https://redirect.github.com/prometheus/client_golang/pull/1743)l/1743
* @&#8203;liggitt made their first
contributi[https://github.com/prometheus/client_golang/pull/1765](https://redirect.github.com/prometheus/client_golang/pull/1765)l/1765

**Full Changelog**:
https://github.com/prometheus/client\_golang/compare/v1.21.1...v1.22.0-rc.0

</details>

<details>
<summary>spf13/viper (github.com/spf13/viper)</summary>

###
[`v1.20.1`](https://redirect.github.com/spf13/viper/releases/tag/v1.20.1)

[Compare
Source](https://redirect.github.com/spf13/viper/compare/v1.20.0...v1.20.1)

<!-- Release notes generated using configuration in .github/release.yml
at v1.20.1 -->

##### What's Changed

##### Bug Fixes 🐛

- Backport config type fixes to 1.20.x by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/2005](https://redirect.github.com/spf13/viper/pull/2005)

**Full Changelog**:
https://github.com/spf13/viper/compare/v1.20.0...v1.20.1

###
[`v1.20.0`](https://redirect.github.com/spf13/viper/releases/tag/v1.20.0)

[Compare
Source](https://redirect.github.com/spf13/viper/compare/v1.19.0...v1.20.0)

<!-- Release notes generated using configuration in .github/release.yml
at v1.20.0 -->

> \[!WARNING]
> This release includes a few minor breaking changes. Read the [upgrade
guide](https://redirect.github.com/spf13/viper/blob/master/UPGRADE.md#v120x)
for details.

#### What's Changed

##### Exciting New Features 🎉

- New encoding layer by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1869](https://redirect.github.com/spf13/viper/pull/1869)

##### Enhancements 🚀

- Drop Go 1.20 support by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1846](https://redirect.github.com/spf13/viper/pull/1846)
- Drop slog shim by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1848](https://redirect.github.com/spf13/viper/pull/1848)
- Replace file searching API with a finder by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1849](https://redirect.github.com/spf13/viper/pull/1849)
- Finder feature flag by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1852](https://redirect.github.com/spf13/viper/pull/1852)
- Allow setting options on the global Viper instance by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1856](https://redirect.github.com/spf13/viper/pull/1856)
- Add experimental flag for bind struct by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1854](https://redirect.github.com/spf13/viper/pull/1854)
- Make the remote package a separate module by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1860](https://redirect.github.com/spf13/viper/pull/1860)
- Add decoder hook option by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1872](https://redirect.github.com/spf13/viper/pull/1872)
- Encoder improvements by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1885](https://redirect.github.com/spf13/viper/pull/1885)
- Get uint8 by
[@&#8203;martinconic](https://redirect.github.com/martinconic) in
[https://github.com/spf13/viper/pull/1894](https://redirect.github.com/spf13/viper/pull/1894)

##### Bug Fixes 🐛

- Fix missing config type when reading from a buffer by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1857](https://redirect.github.com/spf13/viper/pull/1857)
- fix: do not allow setting dependencies to nil values by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1871](https://redirect.github.com/spf13/viper/pull/1871)
- feat: copy keydelim from parent chart in viper.Sub() by
[@&#8203;obs-gh-alexlew](https://redirect.github.com/obs-gh-alexlew) in
[https://github.com/spf13/viper/pull/1887](https://redirect.github.com/spf13/viper/pull/1887)

##### Breaking Changes 🛠

- Drop encoding formats: HCL, Java properties, INI by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1870](https://redirect.github.com/spf13/viper/pull/1870)

##### Dependency Updates ⬆️

- chore: update mapstructure by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1723](https://redirect.github.com/spf13/viper/pull/1723)
- chore: update crypt by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1834](https://redirect.github.com/spf13/viper/pull/1834)
- build(deps): bump github/codeql-action from 3.25.7 to 3.25.8 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1853](https://redirect.github.com/spf13/viper/pull/1853)
- Revert to go-difflib and go-spew releases by
[@&#8203;skitt](https://redirect.github.com/skitt) in
[https://github.com/spf13/viper/pull/1861](https://redirect.github.com/spf13/viper/pull/1861)
- build(deps): bump actions/dependency-review-action from 4.3.2 to 4.3.3
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1862](https://redirect.github.com/spf13/viper/pull/1862)
- build(deps): bump github/codeql-action from 3.25.8 to 3.25.10 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1865](https://redirect.github.com/spf13/viper/pull/1865)
- build(deps): bump actions/checkout from 4.1.6 to 4.1.7 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1864](https://redirect.github.com/spf13/viper/pull/1864)
- chore: update crypt by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1866](https://redirect.github.com/spf13/viper/pull/1866)
- build(deps): bump github/codeql-action from 3.25.10 to 3.25.11 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1876](https://redirect.github.com/spf13/viper/pull/1876)
- build(deps): bump google.golang.org/grpc from 1.64.0 to 1.64.1 in
/remote by [@&#8203;dependabot](https://redirect.github.com/dependabot)
in
[https://github.com/spf13/viper/pull/1878](https://redirect.github.com/spf13/viper/pull/1878)
- build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1879](https://redirect.github.com/spf13/viper/pull/1879)
- build(deps): bump actions/dependency-review-action from 4.3.3 to 4.3.4
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1881](https://redirect.github.com/spf13/viper/pull/1881)
- build(deps): bump github/codeql-action from 3.25.11 to 3.25.12 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1880](https://redirect.github.com/spf13/viper/pull/1880)
- build(deps): bump github/codeql-action from 3.25.12 to 3.25.13 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1883](https://redirect.github.com/spf13/viper/pull/1883)
- chore(deps): update crypt by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1884](https://redirect.github.com/spf13/viper/pull/1884)
- chore: update dependencies by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1888](https://redirect.github.com/spf13/viper/pull/1888)
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.0.0 to
2.1.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1901](https://redirect.github.com/spf13/viper/pull/1901)
- build(deps): bump github.com/spf13/cast from 1.6.0 to 1.7.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1899](https://redirect.github.com/spf13/viper/pull/1899)
- build(deps): bump github/codeql-action from 3.25.13 to 3.26.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1897](https://redirect.github.com/spf13/viper/pull/1897)
- build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1893](https://redirect.github.com/spf13/viper/pull/1893)
- build(deps): bump github/codeql-action from 3.26.0 to 3.26.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1903](https://redirect.github.com/spf13/viper/pull/1903)
- build(deps): bump github/codeql-action from 3.26.2 to 3.26.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1905](https://redirect.github.com/spf13/viper/pull/1905)
- build(deps): bump github/codeql-action from 3.26.3 to 3.26.5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1909](https://redirect.github.com/spf13/viper/pull/1909)
- Update Go by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1913](https://redirect.github.com/spf13/viper/pull/1913)
- chore: update crypt package by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1914](https://redirect.github.com/spf13/viper/pull/1914)
- build(deps): bump github/codeql-action from 3.26.5 to 3.26.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1915](https://redirect.github.com/spf13/viper/pull/1915)
- build(deps): bump mheap/github-action-required-labels from 5.4.1 to
5.4.2 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1916](https://redirect.github.com/spf13/viper/pull/1916)
- build(deps): bump cachix/install-nix-action from 27 to 28 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1919](https://redirect.github.com/spf13/viper/pull/1919)
- build(deps): bump github/codeql-action from 3.26.6 to 3.26.7 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1920](https://redirect.github.com/spf13/viper/pull/1920)
- chore: update crypt by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1921](https://redirect.github.com/spf13/viper/pull/1921)
- build(deps): bump github/codeql-action from 3.26.7 to 3.26.8 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1923](https://redirect.github.com/spf13/viper/pull/1923)
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.1.0 to
2.2.1 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1925](https://redirect.github.com/spf13/viper/pull/1925)
- build(deps): bump github/codeql-action from 3.26.8 to 3.26.11 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1932](https://redirect.github.com/spf13/viper/pull/1932)
- build(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1930](https://redirect.github.com/spf13/viper/pull/1930)
- build(deps): bump actions/checkout from 4.1.7 to 4.2.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1928](https://redirect.github.com/spf13/viper/pull/1928)
- build(deps): bump actions/checkout from 4.2.0 to 4.2.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1936](https://redirect.github.com/spf13/viper/pull/1936)
- build(deps): bump github/codeql-action from 3.26.11 to 3.27.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1948](https://redirect.github.com/spf13/viper/pull/1948)
- build(deps): bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1944](https://redirect.github.com/spf13/viper/pull/1944)
- build(deps): bump actions/setup-go from 5.0.2 to 5.1.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1942](https://redirect.github.com/spf13/viper/pull/1942)
- build(deps): bump actions/dependency-review-action from 4.3.4 to 4.4.0
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1943](https://redirect.github.com/spf13/viper/pull/1943)
- build(deps): bump actions/checkout from 4.2.1 to 4.2.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1941](https://redirect.github.com/spf13/viper/pull/1941)
- build(deps): bump github/codeql-action from 3.27.2 to 3.27.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1949](https://redirect.github.com/spf13/viper/pull/1949)
- build(deps): bump github/codeql-action from 3.27.3 to 3.27.7 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1958](https://redirect.github.com/spf13/viper/pull/1958)
- build(deps): bump mheap/github-action-required-labels from 5.4.2 to
5.5.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1957](https://redirect.github.com/spf13/viper/pull/1957)
- build(deps): bump actions/dependency-review-action from 4.4.0 to 4.5.0
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1953](https://redirect.github.com/spf13/viper/pull/1953)
- build(deps): bump actions/setup-go from 5.1.0 to 5.2.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1959](https://redirect.github.com/spf13/viper/pull/1959)
- build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1954](https://redirect.github.com/spf13/viper/pull/1954)
- build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 in /remote
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1960](https://redirect.github.com/spf13/viper/pull/1960)
- build(deps): bump github/codeql-action from 3.27.7 to 3.27.9 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1964](https://redirect.github.com/spf13/viper/pull/1964)
- chore: update afero by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1973](https://redirect.github.com/spf13/viper/pull/1973)
- build(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1968](https://redirect.github.com/spf13/viper/pull/1968)
- build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/viper/pull/1979](https://redirect.github.com/spf13/viper/pull/1979)
- ci: add Go 1.24 to the test matrix by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1983](https://redirect.github.com/spf13/viper/pull/1983)

##### Other Changes

- refactor: move remote code to separate file by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1847](https://redirect.github.com/spf13/viper/pull/1847)
- refactor: cleanup unused encoding code by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1889](https://redirect.github.com/spf13/viper/pull/1889)
- Fix issues reported by testifylint by
[@&#8203;deining](https://redirect.github.com/deining) in
[https://github.com/spf13/viper/pull/1965](https://redirect.github.com/spf13/viper/pull/1965)
- docs: add update instructions for 1.20 by
[@&#8203;sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1992](https://redirect.github.com/spf13/viper/pull/1992)

#### New Contributors

- [@&#8203;obs-gh-alexlew](https://redirect.github.com/obs-gh-alexlew)
made their first contribution in
[https://github.com/spf13/viper/pull/1887](https://redirect.github.com/spf13/viper/pull/1887)
- [@&#8203;martinconic](https://redirect.github.com/martinconic) made
their first contribution in
[https://github.com/spf13/viper/pull/1894](https://redirect.github.com/spf13/viper/pull/1894)
- [@&#8203;deining](https://redirect.github.com/deining) made their
first contribution in
[https://github.com/spf13/viper/pull/1965](https://redirect.github.com/spf13/viper/pull/1965)

**Full Changelog**:
https://github.com/spf13/viper/compare/v1.19.0...v1.20.0

</details>

<details>
<summary>golang/go (go)</summary>

###
[`v1.24.4`](https://redirect.github.com/golang/go/compare/go1.24.3...go1.24.4)

###
[`v1.24.3`](https://redirect.github.com/golang/go/compare/go1.24.2...go1.24.3)

</details>

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

###
[`v1.37.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.37.0):
/v0.59.0/v0.13.0

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

##### Added

- The `go.opentelemetry.io/otel/semconv/v1.33.0` package.
The package contains semantic conventions from the `v1.33.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.33.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.32.0.`([#&#8203;6799](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6799))
- The `go.opentelemetry.io/otel/semconv/v1.34.0` package.
The package contains semantic conventions from the `v1.34.0` version of
the OpenTelemetry Semantic Conventions.
([#&#8203;6812](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6812))
- Add metric's schema URL as `otel_scope_schema_url` label in
`go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;5947](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5947))
- Add metric's scope attributes as `otel_scope_[attribute]` labels in
`go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;5947](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5947))
- Add `EventName` to `EnabledParameters` in
`go.opentelemetry.io/otel/log`.
([#&#8203;6825](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6825))
- Add `EventName` to `EnabledParameters` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;6825](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6825))
- Changed handling of `go.opentelemetry.io/otel/exporters/prometheus`
metric renaming to add unit suffixes when it doesn't match one of the
pre-defined values in the unit suffix map.
([#&#8203;6839](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6839))

##### Changed

- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/bridge/opentracing`.
([#&#8203;6827](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6827))
- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/exporters/zipkin`.
([#&#8203;6829](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6829))
- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/metric`.
([#&#8203;6832](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6832))
- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/sdk/resource`.
([#&#8203;6834](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6834))
- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;6835](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6835))
- The semantic conventions have been upgraded from `v1.26.0` to
`v1.34.0` in `go.opentelemetry.io/otel/trace`.
([#&#8203;6836](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6836))
- `Record.Resource` now returns `*resource.Resource` instead of
`resource.Resource` in `go.opentelemetry.io/otel/sdk/log`.
([#&#8203;6864](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6864))
- Retry now shows error cause for context timeout in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`,
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`,
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`,
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`,
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`,
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;6898](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6898))

##### Fixed

- Stop stripping trailing slashes from configured endpoint URL in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`.
([#&#8203;6710](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6710))
- Stop stripping trailing slashes from configured endpoint URL in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;6710](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6710))
- Stop stripping trailing slashes from configured endpoint URL in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`.
([#&#8203;6710](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6710))
- Stop stripping trailing slashes from configured endpoint URL in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;6710](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6710))
- Validate exponential histogram scale range for Prometheus
compatibility in `go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;6822](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6822))
- Context cancellation during metric pipeline produce does not corrupt
data in `go.opentelemetry.io/otel/sdk/metric`.
([#&#8203;6914](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6914))

##### Removed

- `go.opentelemetry.io/otel/exporters/prometheus` no longer exports
`otel_scope_info` metric.
([#&#8203;6770](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6770))

#### What's Changed

- Fix dependencies to unreleased sdk/logtest by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6800](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6800)
- Release experimental logs 0.12.1 by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6802](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6802)
- Fix broken link in changelog by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6805](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6805)
- Retract v0.12.0 for log exporters by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6804](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6804)
- chore(deps): update python:3.13.3-slim-bullseye docker digest to
[`45338d2`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/45338d2)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6807](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6807)
- remove internal/matchers by
[@&#8203;codeimmortal](https://redirect.github.com/codeimmortal) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6777](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6777)
- Release log/v0.12.2 by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6806](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6806)
- chore(deps): update python:3.13.3-slim-bullseye docker digest to
[`f0acec6`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/f0acec6)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6810](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6810)
- Update the required approvals policy by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6783](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6783)
- Generate `semconv/v1.33.0` by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6799](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6799)
- chore(deps): update module github.com/jgautheron/goconst to v1.8.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6815](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6815)
- chore(deps): update module

</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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-04 16:10:16 -04:00
Todd Baert 7a7977555d
Update renovate.json
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-04 14:59:00 -04:00
Brianna Bland 07a45d9b22
feat: add sync_context to SyncFlags (#1642)
## This PR

- adds comment about `GetMetadata` being deprecated in future release
- implements the `sync_context` field to the `SyncFlags` of
`flag-sync/handler.go`

### Related Issues

Fixes #1635

---------

Signed-off-by: bbland1 <104288486+bbland1@users.noreply.github.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-03 15:36:07 -04:00
Todd Baert 1ccc07e98d
docs: adr for fractional (#1640)
Adds ADR for fractional.

_As written_ this is historical, however, we can modify this one in this
PR if you would like. I know @tangenti @dominikhaska @cupofcat are
interested in some changes here. Feel free to suggest them and if we
have a consensus we can turn the changes into roadmap items.

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-06-26 16:09:45 -04:00
Todd Baert 607290951d
docs: add flag config adr (#1637)
Another "retrospective" ADR, like the cucumber one.

This explains our JSONLogic choice, shared `$evaluators`, as well as the
the semantics of flagd's use of OpenFeature's [resolution
reasons](https://openfeature.dev/specification/types#resolution-reason).

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-06-26 16:09:25 -04:00
Michael Beemer c90c91f730
docs: refines the code default adr (#1648)
## This PR

- updates the code default ADR to use `FLAG_NOT_FOUND` errors codes
instead of an undefined value.

### Notes

This update will have nearly identical end results but will be easier to
implement and more consistent. Core to this change is switching from
using an empty value as the indicator to using the `FLAG_NOT_FOUND`
error code. While this may seem odd at first, it's in line with the
behavior a user sees when first releasing a disabled flag. This will
allow users to `create a new disabled flag` -> `enable the flag for a
subset of users without impacting others` -> `enable the flag for
everyone` -> `deprecate the flag`.

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-06-24 19:23:10 -04:00
Michael Beemer 0642ac8c70
docs: add code default adr (#1639)
## This PR

- ADR to add support for explicitly deferring to the code default.

### Notes

This has been a challenge for users because enabling a feature for
targeting requires a default variant to be used, which may not match the
default used in code.

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-06-24 12:23:15 -04:00
github-actions[bot] 23e15540a7
chore: release main (#1643)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.5</summary>

##
[0.12.5](https://github.com/open-feature/flagd/compare/flagd/v0.12.4...flagd/v0.12.5)
(2025-06-13)


###  New Features

* add server-side deadline to sync service
([#1638](https://github.com/open-feature/flagd/issues/1638))
([b70fa06](b70fa06b66))
* updating context using headers
([#1641](https://github.com/open-feature/flagd/issues/1641))
([ba34815](ba348152b6))
</details>

<details><summary>core: 0.11.5</summary>

##
[0.11.5](https://github.com/open-feature/flagd/compare/core/v0.11.4...core/v0.11.5)
(2025-06-13)


###  New Features

* add server-side deadline to sync service
([#1638](https://github.com/open-feature/flagd/issues/1638))
([b70fa06](b70fa06b66))
* updating context using headers
([#1641](https://github.com/open-feature/flagd/issues/1641))
([ba34815](ba348152b6))
</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>
2025-06-19 11:04:29 -04:00
alexandraoberaigner b70fa06b66
feat: add server-side deadline to sync service (#1638)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

- adds server side deadline for sync and event streams configurable via
cmd argument `--stream-deadline`

### Related Issues

#1582

### Notes
<!-- any additional notes for this PR -->


### How to test

1. Run flagd with `--stream-deadline 3s` // 3s can be replaced with any
duration the deadline should have
2. Test Event Stream deadline: run `grpcurl -v --proto
schemas/protobuf/flagd/evaluation/v1/evaluation.proto -plaintext
localhost:8013 flagd.evaluation.v1.Service/EventStream` or similar
depending on your flagd settings to check if the deadline exceeded is
returned after the specified duration
3. Test Sync Service Stream deadline: run `grpcurl -v --proto
schemas/protobuf/flagd/sync/v1/sync.proto -plaintext localhost:8015
flagd.sync.v1.FlagSyncService/SyncFlags` or similar depending on your
flagd settings to check if the deadline exceeded is returned after the
specified duration

Signed-off-by: alexandra.oberaigner <alexandra.oberaigner@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-06-13 15:50:48 -04:00
Rahul Baradol ba348152b6
feat: updating context using headers (#1641)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

Able to update context map using headers present in 
- OFREP requests
- Connect Requests (via Flag Evaluator V2 service)

### Related Issues
Fixes #1583 

### Notes
Context values passed via headers is high priority

If same context key is updated via
- Headers
- Request Body
- Static Config

_Context via Headers will be considered_

### Usage 
```
flagd start --port 8013 --uri file:./samples/example_flags.flagd.json -H Header=contextKey
```
or
```
flagd start --port 8013 --uri file:./samples/example_flags.flagd.json --context-from-header Header=contextKey
```

---------

Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
2025-06-13 10:02:35 -04:00
Todd Baert bf10ff30dc
docs(ADR): add gherkin ADR (#1631)
Adds an ADR based on the new template, explaining the reasoning behind
the use of cucumber/gherkin.

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
2025-06-05 14:52:57 -04:00
github-actions[bot] cb2b8eeb9c
chore: release main (#1605)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.4</summary>

##
[0.12.4](https://github.com/open-feature/flagd/compare/flagd/v0.12.3...flagd/v0.12.4)
(2025-05-28)


### 🐛 Bug Fixes

* Bump OpenTelemetry instrumentation dependencies
([#1616](https://github.com/open-feature/flagd/issues/1616))
([11db29d](11db29dc3a))


###  New Features

* add traces to ofrep endpoint
([#1593](https://github.com/open-feature/flagd/issues/1593))
([a5d43bc](a5d43bc1de))


### 🧹 Chore

* **deps:** update dependency go to v1.24.1
([#1559](https://github.com/open-feature/flagd/issues/1559))
([cd46044](cd4604471b))
* **security:** upgrade dependency versions
([#1632](https://github.com/open-feature/flagd/issues/1632))
([761d870](761d870a3c))
</details>

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

##
[0.7.4](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.3...flagd-proxy/v0.7.4)
(2025-05-28)


### 🧹 Chore

* **deps:** update dependency go to v1.24.1
([#1559](https://github.com/open-feature/flagd/issues/1559))
([cd46044](cd4604471b))
* **security:** upgrade dependency versions
([#1632](https://github.com/open-feature/flagd/issues/1632))
([761d870](761d870a3c))
</details>

<details><summary>core: 0.11.4</summary>

##
[0.11.4](https://github.com/open-feature/flagd/compare/core/v0.11.3...core/v0.11.4)
(2025-05-28)


### 🐛 Bug Fixes

* incorrect comparison used for time
([#1608](https://github.com/open-feature/flagd/issues/1608))
([8c5ac2f](8c5ac2f2c3))


### 🧹 Chore

* **deps:** update dependency go to v1.24.1
([#1559](https://github.com/open-feature/flagd/issues/1559))
([cd46044](cd4604471b))
* **security:** upgrade dependency versions
([#1632](https://github.com/open-feature/flagd/issues/1632))
([761d870](761d870a3c))


### 🔄 Refactoring

* Refactor the cron function in http sync
([#1600](https://github.com/open-feature/flagd/issues/1600))
([babcacf](babcacfe4d))
* removed hardcoded metric export interval and use otel default
([#1621](https://github.com/open-feature/flagd/issues/1621))
([81c66eb](81c66ebf2b))
</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>
2025-06-02 15:47:43 -04:00
i-m-addycoder 761d870a3c
chore(security): upgrade dependency versions (#1632)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

- upgrades 2 dependency versions to fix CVEs

### Notes
<!-- any additional notes for this PR -->

Dependency upgrades and corresponding CVEs
- github.com/golang-jwt/jwt/v5 | v5.2.1 -
https://www.cve.org/CVERecord?id=CVE-2025-30204 - `go get
github.com/golang-jwt/jwt/v5@v5.2.2` in core, flagd and flagd-proxy
directories
- golang.org/x/oauth2/jws | v0.25.0 and v0.26.0 -
https://www.cve.org/CVERecord?id=CVE-2025-22868 - `go get
golang.org/x/oauth2@v0.27.0` in core, flagd and flagd-proxy directories

### How to test
<!-- if applicable, add testing instructions under this section -->

1. `make workspace-init`
2. `make test`

Signed-off-by: Aditya Thakur <aditya.t.01011@gmail.com>
2025-05-28 15:44:01 -04:00
Michael Beemer 7566f518c8
docs(ADR): add architecture decision template (#1630)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-05-15 14:09:08 -04:00
Michael Beemer 81c66ebf2b
refactor: removed hardcoded metric export interval and use otel default (#1621)
Signed-off-by: Michael Beemer <michael.beemer@dynatrace.com>
2025-05-06 23:29:06 -04:00
Kyle e8d6d6d892
docs: improve content tab anchors on getting started (#1628)
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
2025-04-29 14:09:53 -04:00
Kyle e0cf061cb8
docs: add documentation on running flagd within docker-compose (#1626)
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
2025-04-28 14:38:39 -04:00
Todd Baert 3887a53c49
chore: use publish env
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-04-16 12:42:45 -04:00
Michael Beemer f94ebeed3e
docs: clarify that bucketing keys are strings (#1619)
Signed-off-by: Michael Beemer <michael.beemer@dynatrace.com>
2025-04-10 11:03:31 +02:00
Simon Schrottner a5d43bc1de
feat: add traces to ofrep endpoint (#1593)
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-04-10 09:19:15 +02:00
Jorge Creixell 11db29dc3a
fix: Bump OpenTelemetry instrumentation dependencies (#1616)
Signed-off-by: Jorge Creixell <jorge.creixell@grafana.com>
2025-04-08 23:05:23 +02:00
Simon Schrottner ac52674454
chore: add global maintainers to the codeowners (#1617)
global maintainers approvals etc should have the same effect as the one
of the flagd maintainers

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-04-05 17:16:28 +01:00
Zhiwei Liang babcacfe4d
refactor: Refactor the cron function in http sync (#1600)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
Refactor the cron function in the `Sync` function for the HTTP sync.
This might improve the performance as well because it reduces the number
of HTTP requests.

Signed-off-by: Zhiwei Liang <zhiwei.liang27@pm.me>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-03-27 16:02:48 -04:00
Matthew Wilson 8c5ac2f2c3
fix: incorrect comparison used for time (#1608)
Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com>
2025-03-27 14:28:26 -04:00
Michael Beemer ddfa0203ce
docs: add providerId as a configuration option (#1567)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-03-27 12:28:07 -04:00
renovate[bot] cd4604471b
chore(deps): update dependency go to v1.24.1 (#1559)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://go.dev/)
([source](https://redirect.github.com/golang/go)) | toolchain | minor |
`1.22.9` -> `1.24.1` |

---

### Release Notes

<details>
<summary>golang/go (go)</summary>

###
[`v1.24.1`](https://redirect.github.com/golang/go/compare/go1.24.0...go1.24.1)

###
[`v1.24.0`](https://redirect.github.com/golang/go/compare/go1.23.6...go1.24.0)

###
[`v1.23.7`](https://redirect.github.com/golang/go/compare/go1.23.6...go1.23.7)

###
[`v1.23.6`](https://redirect.github.com/golang/go/compare/go1.23.5...go1.23.6)

###
[`v1.23.5`](https://redirect.github.com/golang/go/compare/go1.23.4...go1.23.5)

###
[`v1.23.4`](https://redirect.github.com/golang/go/compare/go1.23.3...go1.23.4)

###
[`v1.23.3`](https://redirect.github.com/golang/go/compare/go1.23.2...go1.23.3)

###
[`v1.23.2`](https://redirect.github.com/golang/go/compare/go1.23.1...go1.23.2)

###
[`v1.23.1`](https://redirect.github.com/golang/go/compare/go1.23.0...go1.23.1)

###
[`v1.23.0`](https://redirect.github.com/golang/go/compare/go1.22.12...go1.23.0)

###
[`v1.22.12`](https://redirect.github.com/golang/go/compare/go1.22.11...go1.22.12)

###
[`v1.22.11`](https://redirect.github.com/golang/go/compare/go1.22.10...go1.22.11)

###
[`v1.22.10`](https://redirect.github.com/golang/go/compare/go1.22.9...go1.22.10)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

---------

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-03-25 14:55:03 -04:00
github-actions[bot] 3f4690e550
chore: release main (#1571)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.3</summary>

##
[0.12.3](https://github.com/open-feature/flagd/compare/flagd/v0.12.2...flagd/v0.12.3)
(2025-03-25)


### 🐛 Bug Fixes

* add support for unix socket connection in sync service
([#1518](https://github.com/open-feature/flagd/issues/1518))
([#1560](https://github.com/open-feature/flagd/issues/1560))
([e2203a1](e2203a13ca))
* **deps:** update module github.com/open-feature/flagd/core to v0.11.2
([#1570](https://github.com/open-feature/flagd/issues/1570))
([e151b1f](e151b1f975))
* **deps:** update module github.com/prometheus/client_golang to v1.21.1
([#1576](https://github.com/open-feature/flagd/issues/1576))
([cd95193](cd95193f71))
* **deps:** update module google.golang.org/grpc to v1.71.0
([#1578](https://github.com/open-feature/flagd/issues/1578))
([5c2c64f](5c2c64f878))
* incorrect metadata returned per source
([#1599](https://github.com/open-feature/flagd/issues/1599))
([b333e11](b333e11ecf))


###  New Features

* accept version numbers which are not strings
([#1589](https://github.com/open-feature/flagd/issues/1589))
([6a13796](6a137967a2))
</details>

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

##
[0.7.3](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.2...flagd-proxy/v0.7.3)
(2025-03-25)


### 🐛 Bug Fixes

* **deps:** update module github.com/open-feature/flagd/core to v0.11.2
([#1570](https://github.com/open-feature/flagd/issues/1570))
([e151b1f](e151b1f975))
* **deps:** update module github.com/prometheus/client_golang to v1.21.1
([#1576](https://github.com/open-feature/flagd/issues/1576))
([cd95193](cd95193f71))
* **deps:** update module google.golang.org/grpc to v1.71.0
([#1578](https://github.com/open-feature/flagd/issues/1578))
([5c2c64f](5c2c64f878))
</details>

<details><summary>core: 0.11.3</summary>

##
[0.11.3](https://github.com/open-feature/flagd/compare/core/v0.11.2...core/v0.11.3)
(2025-03-25)


### 🐛 Bug Fixes

* **deps:** update github.com/open-feature/flagd-schemas digest to
9b0ee43 ([#1598](https://github.com/open-feature/flagd/issues/1598))
([0587ce4](0587ce44e6))
* **deps:** update github.com/open-feature/flagd-schemas digest to
e840a03 ([#1587](https://github.com/open-feature/flagd/issues/1587))
([9ee0c57](9ee0c573d6))
* **deps:** update module connectrpc.com/otelconnect to v0.7.2
([#1574](https://github.com/open-feature/flagd/issues/1574))
([6094dce](6094dce5c0))
* **deps:** update module github.com/google/go-cmp to v0.7.0
([#1569](https://github.com/open-feature/flagd/issues/1569))
([6e9dbd2](6e9dbd2dbf))
* **deps:** update module github.com/prometheus/client_golang to v1.21.1
([#1576](https://github.com/open-feature/flagd/issues/1576))
([cd95193](cd95193f71))
* **deps:** update module google.golang.org/grpc to v1.71.0
([#1578](https://github.com/open-feature/flagd/issues/1578))
([5c2c64f](5c2c64f878))
* incorrect metadata returned per source
([#1599](https://github.com/open-feature/flagd/issues/1599))
([b333e11](b333e11ecf))


###  New Features

* accept version numbers which are not strings
([#1589](https://github.com/open-feature/flagd/issues/1589))
([6a13796](6a137967a2))
</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>
2025-03-25 14:38:14 -04:00
renovate[bot] 0587ce44e6
fix(deps): update github.com/open-feature/flagd-schemas digest to 9b0ee43 (#1598)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `e840a03` -> `9b0ee43` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-25 17:57:33 +00:00
Todd Baert b333e11ecf
fix: incorrect metadata returned per source (#1599)
This PR fixes an issue where the wrong metadata is returned when a
selector is used.

This bug is easy to fix, but was also easy to write. We eventually need
to refactor the flag memory store (`flags.go`) to store all flags per
source. This was retrofitted in to support selectors, from a
single-flagSet model.

To test, do the manual test specified in
https://github.com/open-feature/flagd/issues/1597.

Fixes: https://github.com/open-feature/flagd/issues/1597

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-03-25 09:44:23 -04:00
renovate[bot] 9ee0c573d6
fix(deps): update github.com/open-feature/flagd-schemas digest to e840a03 (#1587)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `bb76343` -> `e840a03` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE5NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-14 15:22:39 +00:00
chrfwow 6a137967a2
feat: accept version numbers which are not strings (#1589)
## This PR
Fixes errors when the provided version is not a string but a number
(e.g. versions like 1.0, 2, ...) and improves the test suite to use our
`parseSemverEvaluationData` function. Furthermore, logging now includes
erroneous inputs.

---------

Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Co-authored-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-03-14 11:38:20 +01:00
renovate[bot] 779e8f929a
fix(deps): update opentelemetry-go monorepo (#1581)
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.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.34.0/v1.35.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.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.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.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.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.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.56.0` -> `v0.57.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.57.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.57.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.56.0/v0.57.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.56.0/v0.57.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.34.0` -> `v1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.35.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.35.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.34.0/v1.35.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.34.0/v1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.35.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.35.0):
/v0.57.0/v0.11.0

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

#### Overview

This release is the last to support [Go 1.22].
The next release will require at least [Go 1.23].

##### Added

- Add `ValueFromAttribute` and `KeyValueFromAttribute` in
`go.opentelemetry.io/otel/log`.
([#&#8203;6180](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6180))
- Add `EventName` and `SetEventName` to `Record` in
`go.opentelemetry.io/otel/log`.
([#&#8203;6187](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6187))
- Add `EventName` to `RecordFactory` in
`go.opentelemetry.io/otel/log/logtest`.
([#&#8203;6187](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6187))
- `AssertRecordEqual` in `go.opentelemetry.io/otel/log/logtest` checks
`Record.EventName`.
([#&#8203;6187](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6187))
- Add `EventName` and `SetEventName` to `Record` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;6193](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6193))
- Add `EventName` to `RecordFactory` in
`go.opentelemetry.io/otel/sdk/log/logtest`.
([#&#8203;6193](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6193))
- Emit `Record.EventName` field in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`.
([#&#8203;6211](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6211))
- Emit `Record.EventName` field in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;6211](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6211))
- Emit `Record.EventName` field in
`go.opentelemetry.io/otel/exporters/stdout/stdoutlog`
([#&#8203;6210](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6210))
-   The `go.opentelemetry.io/otel/semconv/v1.28.0` package.
The package contains semantic conventions from the `v1.28.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.28.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.27.0`([#&#8203;6236](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6236))
-   The `go.opentelemetry.io/otel/semconv/v1.30.0` package.
The package contains semantic conventions from the `v1.30.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.30.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.28.0`([#&#8203;6240](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6240))
-   Document the pitfalls of using `Resource` as a comparable type.
`Resource.Equal` and `Resource.Equivalent` should be used instead.
([#&#8203;6272](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6272))
- Support \[Go 1.24].
([#&#8203;6304](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6304))
- Add `FilterProcessor` and `EnabledParameters` in
`go.opentelemetry.io/otel/sdk/log`.
It replaces
`go.opentelemetry.io/otel/sdk/log/internal/x.FilterProcessor`.
Compared to previous version it additionally gives the possibility to
filter by resource and instrumentation scope.
([#&#8203;6317](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6317))

##### Changed

- Update `github.com/prometheus/common` to `v0.62.0`, which changes the
`NameValidationScheme` to `NoEscaping`.
This allows metrics names to keep original delimiters (e.g. `.`), rather
than replacing with underscores.
This is controlled by the `Content-Type` header, or can be reverted by
setting `NameValidationScheme` to `LegacyValidation` in
`github.com/prometheus/common/model`.
([#&#8203;6198](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6198))

##### Fixes

- Eliminate goroutine leak for the processor returned by
`NewSimpleSpanProcessor` in `go.opentelemetry.io/otel/sdk/trace` when
`Shutdown` is called and the passed `ctx` is canceled and
`SpanExporter.Shutdown` has not returned.
([#&#8203;6368](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6368))
- Eliminate goroutine leak for the processor returned by
`NewBatchSpanProcessor` in `go.opentelemetry.io/otel/sdk/trace` when
`ForceFlush` is called and the passed `ctx` is canceled and
`SpanExporter.Export` has not returned.
([#&#8203;6369](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6369))

[Go 1.23]: https://go.dev/doc/go1.23

[Go 1.22]: https://go.dev/doc/go1.22

#### What's Changed

- chore(deps): update golang.org/x/telemetry digest to
[`04cd7ba`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/04cd7ba)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6176](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6176)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.26.0 by [@&#8203;renovate](https://redirect.github.com/renovate)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6186](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6186)
- chore(deps): update module github.com/pjbgf/sha1cd to v0.3.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6188](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6188)
- chore(deps): update dependency codespell to v2.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6189](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6189)
- log: Add ValueFromAttribute and KeyValueFromAttribute by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6180](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6180)
- fix(deps): update module github.com/opentracing-contrib/go-grpc to
v0.1.1 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6191](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6191)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest
to
[`2f9c7e3`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/2f9c7e3)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6190](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6190)
- log: Add EventName by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6187](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6187)
- sdk/log: Add EventName by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6193](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6193)
- chore(deps): update codecov/codecov-action action to v5.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6195](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6195)
- fix(deps): update googleapis to
[`138b5a5`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/138b5a5)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6194](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6194)
- fix(deps): update module go.opentelemetry.io/build-tools/crosslink to
v0.17.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6197](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6197)
- fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to
v0.17.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6199](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6199)
- fix(deps): update module go.opentelemetry.io/build-tools/semconvgen to
v0.17.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6202](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6202)
- fix(deps): update module go.opentelemetry.io/build-tools/multimod to
v0.17.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6200](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6200)
- chore: Group renovate build-tools updates by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6201](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6201)
- Update module github.com/prometheus/common to v0.62.0 and fix tests by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6198](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6198)
- chore(deps): update module github.com/go-git/go-git/v5 to v5.13.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6204](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6204)
- chore(deps): update codecov/codecov-action action to v5.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6207](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6207)
- fix(deps): update module google.golang.org/grpc to v1.70.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6208](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6208)
- fix(deps): update googleapis to
[`65684f5`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/65684f5)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6212](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6212)
- chore(deps): update codecov/codecov-action action to v5.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6213](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6213)
- fix(deps): update module google.golang.org/protobuf to v1.36.4 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6214](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6214)
- otlplog: Emit Record.EventName field by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6211](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6211)
- chore: Update Logs API design doc by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6206](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6206)
- fix(deps): update googleapis to
[`29210b9`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/29210b9)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6217](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6217)
- chore(deps): update module github.com/cyphar/filepath-securejoin to
v0.4.1 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6218](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6218)
- fix(deps): update golang.org/x to
[`e0ece0d`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e0ece0d)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6219](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6219)
- chore(deps): update dependency codespell to v2.4.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6221](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6221)
- fix(deps): update golang.org/x to
[`e0ece0d`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e0ece0d)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6222](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6222)
- stdoutlog: Emit Record.EventName field by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6210](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6210)
- Update codespell target by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6223](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6223)
- chore(deps): update module github.com/spf13/pflag to v1.0.6 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6224](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6224)
- chore(deps): update module github.com/skeema/knownhosts to v1.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6231](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6231)
- Weaver by [@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5898](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5898)
- chore(deps): update module github.com/polyfloyd/go-errorlint to v1.7.1
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6237](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6237)
- Generate the `semconv/v1.28.0` package by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6236](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6236)
- Use archive URL for weaver registry by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6235](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6235)
- sdk/log: Assign fltrProcessors on provider creation instead of lazy by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6239](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6239)
- Generate `semconv/v1.30.0` by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6240](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6240)
- Add an auto-instrumentable no-op implementation to the `trace` package
by [@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6203](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6203)
- fix(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6249](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6249)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`29210b9`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/29210b9)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6250](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6250)
- chore(deps): update module golang.org/x/text to v0.22.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6252](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6252)
- fix(deps): update googleapis to
[`7023788`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/7023788)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6251](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6251)
- chore(deps): update golang.org/x/telemetry digest to
[`3af0d96`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/3af0d96)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6253](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6253)
- chore(deps): update module google.golang.org/grpc to v1.70.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6254](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6254)
- fix(deps): update module go.opentelemetry.io/otel/trace to v1.34.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6256](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6256)
- fix(deps): update module go.opentelemetry.io/collector/pdata to
v1.25.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6255](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6255)
- chore(deps): update module github.com/cloudflare/circl to v1.6.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6259](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6259)
- chore(deps): update lycheeverse/lychee-action action to v2.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6258](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6258)
- chore(deps): update module github.com/catenacyber/perfsprint to v0.8.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6261](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6261)
- Create scorecard.yml to enable OSSF Scorecard reporting by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6247](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6247)
- chore(deps): update actions/upload-artifact digest to
[`ff15f03`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/ff15f03)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6262](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6262)
- chore(deps): update actions/checkout action to v4.2.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6263](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6263)
- chore(deps): update golang.org/x/telemetry digest to
[`c67c2d1`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/c67c2d1)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6264](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6264)
- chore(deps): update ossf/scorecard-action action to v2.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6265](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6265)
- chore(deps): update actions/upload-artifact action to v4 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6266](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6266)
- fix(deps): update build-tools to v0.18.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6276](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6276)
- fix(deps): update module google.golang.org/protobuf to v1.36.5 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6277](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6277)
- Use renovate best-practices by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6267](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6267)
- chore(deps): pin dependencies by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6278](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6278)
- chore(deps): update golang.org/x/telemetry digest to
[`557cf9c`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/557cf9c)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6279](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6279)
- Fix comment of the RecordOnly sampling decision by
[@&#8203;XSAM](https://redirect.github.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6257](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6257)
- Default github workflow permission read-all by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6268](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6268)
- Add an OpenSSF badge to README.md by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6269](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6269)
- chore(deps): update python docker tag to v3.13.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6283](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6283)
- fix(deps): update golang.org/x to
[`f9890c6`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/f9890c6)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6282](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6282)
- chore(deps): update github/codeql-action digest to
[`9e8d078`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/9e8d078)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6287](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6287)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.26.1 by [@&#8203;renovate](https://redirect.github.com/renovate)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6288](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6288)
- chore(deps): update module golang.org/x/crypto to v0.33.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6290](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6290)
- fix(deps): update googleapis to
[`e9438ea`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e9438ea)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6289](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6289)
- chore(deps): update otel/weaver docker tag to v0.13.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6292](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6292)
- chore(deps): update module 4d63.com/gochecknoglobals to v0.2.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6291](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6291)
- chore(deps): update module go-simpler.org/sloglint to v0.9.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6293](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6293)
- chore(deps): update module github.com/catenacyber/perfsprint to v0.8.1
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6294](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6294)
- Close stale issues and PRs after 2 years of inactivity by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6284](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6284)
- chore(deps): pin actions/stale action to
[`5bef64f`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/5bef64f)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6295](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6295)
- fix(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6297](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6297)
- chore(deps): update module github.com/ldez/exptostd to v0.4.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6300](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6300)
- fix(deps): update module github.com/golangci/golangci-lint to v1.64.2
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6301](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6301)
- Document and check resource comparability by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6272](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6272)
- chore(deps): update module github.com/mgechev/revive to v1.6.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6306](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6306)
- chore(deps): update otel/weaver docker tag to v0.13.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6309](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6309)
- fix(deps): update module github.com/golangci/golangci-lint to v1.64.4
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6310](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6310)
- chore(deps): update golang.org/x/telemetry digest to
[`7530529`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/7530529)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6305](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6305)
- chore(deps): update module github.com/gostaticanalysis/forcetypeassert
to v0.2.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6312](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6312)
- fix(deps): update googleapis to
[`5a70512`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/5a70512)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6308](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6308)
- Add support for Go 1.24 by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6304](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6304)
- Replace tenv with usetesting by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6313](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6313)
- chore(deps): update module github.com/securego/gosec/v2 to v2.22.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6314](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6314)
- \[chore] Fix go-work Make target with the highest required Go version
by [@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6285](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6285)
- chore(deps): update module github.com/tdakkota/asciicheck to v0.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6316](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6316)
- fix(deps): update module github.com/golangci/golangci-lint to v1.64.5
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6319](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6319)
- chore(deps): update otel/weaver docker tag to v0.13.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6318](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6318)
- sdk/log: Change BenchmarkLoggerNewRecord to BenchmarkLoggerEmit by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6315](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6315)
- chore(deps): update golang.org/x/telemetry digest to
[`6f9b61d`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/6f9b61d)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6321](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6321)
- chore(deps): update module github.com/tdakkota/asciicheck to v0.4.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6322](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6322)
- chore(deps): update module github.com/tetafro/godot to v1.5.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6323](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6323)
- \[chore] Use public Linux ARM64 runners by
[@&#8203;Kielek](https://redirect.github.com/Kielek) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6320](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6320)
- chore(deps): update module github.com/mgechev/revive to v1.7.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6326](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6326)
- chore(deps): update module github.com/spf13/cobra to v1.9.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6324](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6324)
- chore(deps): update module github.com/4meepo/tagalign to v1.4.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6327](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6327)
- fix(deps): update golang.org/x to
[`eff6e97`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/eff6e97)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6325](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6325)
- fix(deps): update golang.org/x to
[`aa4b98e`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/aa4b98e)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6336](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6336)
- chore(deps): update module github.com/nunnatsa/ginkgolinter to v0.19.1
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6311](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6311)
- sdk/log: Add FilterProcessor and EnabledParameters by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6317](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6317)
- chore(deps): update actions/cache digest to
[`0c907a7`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/0c907a7)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6337](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6337)
- fix(deps): update googleapis to
[`56aae31`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/56aae31)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6338](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6338)
- chore(deps): update module github.com/catenacyber/perfsprint to v0.8.2
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6339](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6339)
- Add FOSSA scanning workflow by
[@&#8203;opentelemetrybot](https://redirect.github.com/opentelemetrybot)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6331](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6331)
- chore(deps): update module github.com/kisielk/errcheck to v1.9.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6340](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6340)
- \[chore] Add a policy on adding tests by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6334](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6334)
- \[chore] Add OpenSSF Best Practices badge by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6345](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6345)
- chore(deps): update golang.org/x/telemetry digest to
[`165e2f8`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/165e2f8)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6346](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6346)
- chore(deps): update module github.com/quasilyte/go-ruleguard to v0.4.4
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6348](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6348)
- chore(deps): update module github.com/ldez/exptostd to v0.4.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6357](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6357)
- chore(deps): update actions/upload-artifact digest to
[`4cec3d8`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/4cec3d8)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6356](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6356)
- chore(deps): update github/codeql-action digest to
[`b56ba49`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/b56ba49)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6354](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6354)
- chore(deps): update ossf/scorecard-action action to v2.4.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6358](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6358)
- fix(deps): update module github.com/google/go-cmp to v0.7.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6359](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6359)
- chore(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6355](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6355)
- chore(deps): update module
github.com/gaijinentertainment/go-exhaustruct/v3 to v3.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6361](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6361)
- chore(deps): update python:3.13.2-slim-bullseye docker digest to
[`d3852c9`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/d3852c9)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6367](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6367)
- chore(deps): update module golang.org/x/crypto to v0.35.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6366](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6366)
- \[chore] clean up revive configuration by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6353](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6353)
- chore(deps): update python:3.13.2-slim-bullseye docker digest to
[`31b581c`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/31b581c)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6370](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6370)
- chore(deps): update module go.opentelemetry.io/build-tools to v0.19.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6374](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6374)
- chore(deps): update module github.com/bombsimon/wsl/v4 to v4.6.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6373](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6373)
- fix(deps): update build-tools to v0.19.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6376](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6376)
- chore(deps): update actions/download-artifact digest to
[`cc20338`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/cc20338)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6377](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6377)
- sdk/trace: Fix goroutine leak in simpleSpanProcessor.Shutdown by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6368](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6368)
- chore(deps): update codecov/codecov-action action to v5.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6380](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6380)
- chore(deps): update module github.com/catenacyber/perfsprint to v0.9.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6379](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6379)
- sdk/trace: Fix gorountine leak in batchSpanProcessor.ForceFlush by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6369](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6369)
- chore(deps): update module github.com/protonmail/go-crypto to v1.1.6
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6383](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6383)
- chore(deps): update module github.com/go-git/go-git/v5 to v5.14.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6385](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6385)
- chore(deps): update actions/cache digest to
[`d4323d4`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/d4323d4)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6384](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6384)
- chore(deps): update module github.com/kkhaike/contextcheck to v1.1.6
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6387](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6387)
- chore(deps): update module 4d63.com/gocheckcompilerdirectives to
v1.3.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6388](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6388)
- fix(deps): update golang.org/x to
[`dead583`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/dead583)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6389](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6389)
- chore(deps): update mvdan.cc/unparam digest to
[`0df0534`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/0df0534)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6391](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6391)
- fix(deps): update module github.com/golangci/golangci-lint to v1.64.6
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6394](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6394)
- chore(deps): update github.com/golangci/dupl digest to
[`44c6a0b`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/44c6a0b)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6398](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6398)
- Look at stale issues in ascending order by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6396](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6396)
- fix(deps): update build-tools to v0.20.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6403](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6403)
- Move trace sdk tests from trace_test into trace package by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6400](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6400)
- fix(deps): update module google.golang.org/grpc to v1.71.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6409](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6409)
- chore(deps): update module github.com/ryancurrah/gomodguard to v1.4.1
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6411](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6411)
- chore(deps): update module github.com/securego/gosec/v2 to v2.22.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6412](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6412)
- Release v1.35.0/v0.57.0/v0.11.0 by
[@&#8203;XSAM](https://redirect.github.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6407](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6407)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.34.0...v1.35.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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-06 02:58:01 +00:00
renovate[bot] 5c2c64f878
fix(deps): update module google.golang.org/grpc to v1.71.0 (#1578)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### API Changes

- balancer: Custom LB policies that record metrics must use the new
`MetricsRecorder` method on `Balancer.ClientConn` instead of the removed
`Balancer.BuildOptions.MetricsRecorder` field to obtain a metrics
recorder.
([#&#8203;8027](https://redirect.github.com/grpc/grpc-go/issues/8027))
- balancer: `balancer.ClientConn` implementations must now embed a
delegate implementation. This allows grpc-go to add new methods to the
interface and remain backward compatible.
([#&#8203;8026](https://redirect.github.com/grpc/grpc-go/issues/8026))
- balancer/endpointsharding: The constructor accepts the child
balancer's builder and a struct with optional configuration.
([#&#8203;8052](https://redirect.github.com/grpc/grpc-go/issues/8052))

### New Features

- xds: Add support for dualstack via the
[additional_addresses](df394a41c8/api/envoy/config/endpoint/v3/endpoint_components.proto (L91-L96))
field in the Endpoint resource. To disable this feature, set the
environment variable `GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS=false`.
([#&#8203;8134](https://redirect.github.com/grpc/grpc-go/issues/8134))
- stats/opentelemetry: Add experimental support for OpenTelemetry
tracing.
([#&#8203;7852](https://redirect.github.com/grpc/grpc-go/issues/7852))
- xds/internal/xdsclient: Add counter metrics for valid and invalid
resource updates.
([#&#8203;8038](https://redirect.github.com/grpc/grpc-go/issues/8038))
- balancer/leastrequest, roundrobin: Add dualstack support.
([#&#8203;7969](https://redirect.github.com/grpc/grpc-go/issues/7969),
[#&#8203;7966](https://redirect.github.com/grpc/grpc-go/issues/7966))
- balancer/endpointsharding: Balancers created with the new
`DisableAutoReconnect` option will not attempt to call `ExitIdle`
automatically on their children when the children report idle.
([#&#8203;8052](https://redirect.github.com/grpc/grpc-go/issues/8052))

### Bug Fixes

- client: Fix support for proxies when using `grpc.NewClient` so the
target is resolved by the proxy as expected.
([#&#8203;7881](https://redirect.github.com/grpc/grpc-go/issues/7881))
- Added `WithLocalDNSResolution()` dial option to explicitly force
target resolution on the client instead.
([#&#8203;7881](https://redirect.github.com/grpc/grpc-go/issues/7881))
- weightedtarget: Return erroring picker when no targets are configured.
([#&#8203;8070](https://redirect.github.com/grpc/grpc-go/issues/8070))
- xds: Fail RPCs with `UNAVAILABLE` when the EDS resource is missing or
contains no endpoints
([#&#8203;8070](https://redirect.github.com/grpc/grpc-go/issues/8070))
- xdsclient: Fix a bug where connectivity failures were reported to
resource watchers before trying all listed servers.
([#&#8203;8075](https://redirect.github.com/grpc/grpc-go/issues/8075))
- grpc: Fix the number of bytes reported in the error message when
encoded messages are larger than 4GB.
([#&#8203;8033](https://redirect.github.com/grpc/grpc-go/issues/8033))
- rls: Fix a bug where RLS channel updates could be lost during startup.
([#&#8203;8055](https://redirect.github.com/grpc/grpc-go/issues/8055))
- xds: Fixed a bug preventing tests from creating multiple servers or
channels with different bootstrap configs.
([#&#8203;8050](https://redirect.github.com/grpc/grpc-go/issues/8050))
- grpc: Fix message length checks when compression is enabled and
`maxReceiveMessageSize` is `MaxInt`
([#&#8203;7918](https://redirect.github.com/grpc/grpc-go/issues/7918))
- Special Thanks:
[@&#8203;vinothkumarr227](https://redirect.github.com/vinothkumarr227)

### Documentation

- client: Improve documentation of `grpc.NewClient` and
`ClientConn.CanonicalTarget` by providing examples.
([#&#8203;8078](https://redirect.github.com/grpc/grpc-go/issues/8078))
- examples/features/dualstack: New example demonstrating usage of
endpoints and dualstack functionality.
([#&#8203;8098](https://redirect.github.com/grpc/grpc-go/issues/8098))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 02:05:07 +00:00
renovate[bot] cd95193f71
fix(deps): update module github.com/prometheus/client_golang to v1.21.1 (#1576)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.21.0` -> `v1.21.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.21.0/v1.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.21.0/v1.21.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.21.1`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.21.1):
/ 2025-03-04

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.21.0...v1.21.1)

This release addresses a major performance regression introduced in
[#&#8203;1661](https://redirect.github.com/prometheus/client_golang/issues/1661)
-- thanks to all who [reported this
quickly](https://redirect.github.com/prometheus/client_golang/issues/1748):
[@&#8203;chlunde](https://redirect.github.com/chlunde),
[@&#8203;dethi](https://redirect.github.com/dethi),
[@&#8203;aaronbee](https://redirect.github.com/aaronbee)
[@&#8203;tsuna](https://redirect.github.com/tsuna) 💪🏽. This patch
release also fixes the iOS build.

We will be hardening the release process even further
([#&#8203;1759](https://redirect.github.com/prometheus/client_golang/issues/1759),
[#&#8203;1761](https://redirect.github.com/prometheus/client_golang/issues/1761))
to prevent this in future, sorry for the inconvenience!

The high concurrency optimization is planned to be eventually
reintroduced, however in a much safer manner, potentially in a separate
API.

- \[BUGFIX] prometheus: Revert of `Inc`, `Add` and `Observe` cumulative
metric CAS optimizations
([#&#8203;1661](https://redirect.github.com/prometheus/client_golang/issues/1661)),
causing regressions on low concurrency cases
[#&#8203;1757](https://redirect.github.com/prometheus/client_golang/issues/1757)
- \[BUGFIX] prometheus: Fix GOOS=ios build, broken due to
process_collector_\* wrong build tags.
[#&#8203;1758](https://redirect.github.com/prometheus/client_golang/issues/1758)

<details>
<summary>All commits</summary>

- Revert "exponential backoff for CAS operations on floats" and cut
1.21.1 by [@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1757](https://redirect.github.com/prometheus/client_golang/pull/1757)
- Fix ios build for 1.21.1 by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1758](https://redirect.github.com/prometheus/client_golang/pull/1758)

</details>

**Full Changelog**:
https://github.com/prometheus/client_golang/compare/v1.21.0...v1.21.1

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 23:02:32 +00:00
renovate[bot] 6094dce5c0
fix(deps): update module connectrpc.com/otelconnect to v0.7.2 (#1574)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[connectrpc.com/otelconnect](https://redirect.github.com/connectrpc/otelconnect-go)
| `v0.7.1` -> `v0.7.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/connectrpc.com%2fotelconnect/v0.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/connectrpc.com%2fotelconnect/v0.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/connectrpc.com%2fotelconnect/v0.7.1/v0.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/connectrpc.com%2fotelconnect/v0.7.1/v0.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>connectrpc/otelconnect-go
(connectrpc.com/otelconnect)</summary>

###
[`v0.7.2`](https://redirect.github.com/connectrpc/otelconnect-go/releases/tag/v0.7.2)

[Compare
Source](https://redirect.github.com/connectrpc/otelconnect-go/compare/v0.7.1...v0.7.2)

#### What's Changed

##### Enhancements

- Reduce unnecessary allocations in interceptors by
[@&#8203;pkwarren](https://redirect.github.com/pkwarren) in
[#&#8203;185](https://redirect.github.com/connectrpc/otelconnect-go/issues/185)

##### Other changes

- Fixup links by
[@&#8203;stefanvanburen](https://redirect.github.com/stefanvanburen) in
[#&#8203;181](https://redirect.github.com/connectrpc/otelconnect-go/issues/181)

#### New Contributors

- [@&#8203;stefanvanburen](https://redirect.github.com/stefanvanburen)
made their first contribution in
[#&#8203;181](https://redirect.github.com/connectrpc/otelconnect-go/issues/181)

**Full Changelog**:
https://github.com/connectrpc/otelconnect-go/compare/v0.7.1...v0.7.2

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 19:37:16 +00:00
alexandraoberaigner e2203a13ca
fix: add support for unix socket connection in sync service (#1518) (#1560)
## This PR
adds support for unix sockets in sync service

### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->

Fixes #1518

### How to test
start flagd with the new option `-e /tmp/socketpath` and try to connect
with an in-process provider to the same socket path & request a flag

---------

Signed-off-by: Alexandra Oberaigner <alexandra.oberaigner@dynatrace.com>
Signed-off-by: alexandraoberaigner <82218944+alexandraoberaigner@users.noreply.github.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-02-24 22:51:39 -05:00
renovate[bot] e151b1f975
fix(deps): update module github.com/open-feature/flagd/core to v0.11.2 (#1570)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.11.1` -> `v0.11.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.1/v0.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.1/v0.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-feature/flagd
(github.com/open-feature/flagd/core)</summary>

###
[`v0.11.2`](https://redirect.github.com/open-feature/flagd/releases/tag/flagd/v0.11.2):
flagd: v0.11.2

##### 🐛 Bug Fixes

- **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240215170432-1e611e2999cc.1
([#&#8203;1372](https://redirect.github.com/open-feature/flagd/issues/1372))
([ae24595](ae2459504f))
- **deps:** update module github.com/open-feature/flagd/core to v0.10.1
([#&#8203;1355](https://redirect.github.com/open-feature/flagd/issues/1355))
([8fcfb14](8fcfb146b0))
- **deps:** update module golang.org/x/net to v0.28.0
([#&#8203;1380](https://redirect.github.com/open-feature/flagd/issues/1380))
([239a432](239a432c18))
- **deps:** update module golang.org/x/sync to v0.8.0
([#&#8203;1378](https://redirect.github.com/open-feature/flagd/issues/1378))
([4804c17](4804c17a67))

##### 🧹 Chore

- **deps:** update dependency go to v1.22.6
([#&#8203;1297](https://redirect.github.com/open-feature/flagd/issues/1297))
([50b92c1](50b92c17cf))
- **deps:** update golang docker tag to v1.23
([#&#8203;1382](https://redirect.github.com/open-feature/flagd/issues/1382))
([abb5ca3](abb5ca3e31))
- improve gRPC sync service shutdown behavior
([#&#8203;1375](https://redirect.github.com/open-feature/flagd/issues/1375))
([79d9085](79d9085a50))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-23 11:27:01 +00:00
renovate[bot] 6e9dbd2dbf
fix(deps): update module github.com/google/go-cmp to v0.7.0 (#1569)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/google/go-cmp](https://redirect.github.com/google/go-cmp)
| `v0.6.0` -> `v0.7.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fgo-cmp/v0.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoogle%2fgo-cmp/v0.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoogle%2fgo-cmp/v0.6.0/v0.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoogle%2fgo-cmp/v0.6.0/v0.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>google/go-cmp (github.com/google/go-cmp)</summary>

###
[`v0.7.0`](https://redirect.github.com/google/go-cmp/releases/tag/v0.7.0)

[Compare
Source](https://redirect.github.com/google/go-cmp/compare/v0.6.0...v0.7.0)

New API:

- ([#&#8203;367](https://redirect.github.com/google/go-cmp/issues/367))
Support compare functions with SortSlices and SortMaps

Panic messaging:

- ([#&#8203;370](https://redirect.github.com/google/go-cmp/issues/370))
Detect proto.Message types when failing to export a field

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-22 01:53:21 +00:00
github-actions[bot] e199e33d21
chore: release main (#1546)
Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
2025-02-21 15:59:21 -05:00
Michael Beemer 57fcca7d92
docs: add rust provider
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-02-21 19:50:42 +00:00
katsumata(TK) cd3c3c6e4b
docs: fix url for flags.json (#1553)
Signed-off-by: katsumata <12413150+winor30@users.noreply.github.com>
2025-02-21 08:05:41 -05:00
cupofcat 1a97ca5f81
feat: Adding gRPC dial option override to grpc_sync.go (#1563)
Signed-off-by: Maks Osowski <maks@google.com>
2025-02-20 16:54:30 -05:00
renovate[bot] a3d41625a2
fix(deps): update module github.com/prometheus/client_golang to v1.21.0 (#1568)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.20.5` -> `v1.21.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.20.5/v1.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.20.5/v1.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.21.0`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.21.0):
/ 2025-02-19

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.5...v1.21.0)

⚠️ This release contains potential breaking change if you upgrade
`github.com/prometheus/common` to 0.62+ together with client_golang (and
depend on the strict, legacy validation for the label names). New common
version [changes `model.NameValidationScheme` global
variable](https://redirect.github.com/prometheus/common/pull/724), which
relaxes the validation of label names and metric name, allowing all
UTF-8 characters. Typically, this should not break any user, unless your
test or usage expects strict certain names to panic/fail on
client_golang metric registration, gathering or scrape. In case of
problems change `model.NameValidationScheme` to old
`model.LegacyValidation` value in your project `init` function.
⚠️

- \[BUGFIX] gocollector: Fix help message for runtime/metric metrics.
[#&#8203;1583](https://redirect.github.com/prometheus/client_golang/issues/1583)
- \[BUGFIX] prometheus: Fix `Desc.String()` method for no labels case.
[#&#8203;1687](https://redirect.github.com/prometheus/client_golang/issues/1687)
- \[PERF] prometheus: Optimize popular `prometheus.BuildFQName`
function; now up to 30% faster.
[#&#8203;1665](https://redirect.github.com/prometheus/client_golang/issues/1665)
- \[PERF] prometheus: Optimize `Inc`, `Add` and `Observe` cumulative
metrics; now up to 50% faster under high concurrent contention.
[#&#8203;1661](https://redirect.github.com/prometheus/client_golang/issues/1661)
- \[CHANGE] Upgrade prometheus/common to 0.62.0 which changes
`model.NameValidationScheme` global variable.
[#&#8203;1712](https://redirect.github.com/prometheus/client_golang/issues/1712)
- \[CHANGE] Add support for Go 1.23.
[#&#8203;1602](https://redirect.github.com/prometheus/client_golang/issues/1602)
- \[FEATURE] process_collector: Add support for Darwin systems.
[#&#8203;1600](https://redirect.github.com/prometheus/client_golang/issues/1600)
[#&#8203;1616](https://redirect.github.com/prometheus/client_golang/issues/1616)
[#&#8203;1625](https://redirect.github.com/prometheus/client_golang/issues/1625)
[#&#8203;1675](https://redirect.github.com/prometheus/client_golang/issues/1675)
[#&#8203;1715](https://redirect.github.com/prometheus/client_golang/issues/1715)
- \[FEATURE] api: Add ability to invoke `CloseIdleConnections` on
api.Client using `api.Client.(CloseIdler).CloseIdleConnections()`
casting.
[#&#8203;1513](https://redirect.github.com/prometheus/client_golang/issues/1513)
- \[FEATURE] promhttp: Add
`promhttp.HandlerOpts.EnableOpenMetricsTextCreatedSamples` option to
create OpenMetrics \_created lines. Not recommended unless you want to
use opt-in Created Timestamp feature. Community works on OpenMetrics 2.0
format that should make those lines obsolete (they increase cardinality
significantly).
[#&#8203;1408](https://redirect.github.com/prometheus/client_golang/issues/1408)
- \[FEATURE] prometheus: Add `NewConstNativeHistogram` function.
[#&#8203;1654](https://redirect.github.com/prometheus/client_golang/issues/1654)

<details>
<summary> All commits </summary>
* Merge release-1.20 to main by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1582
* gocollector: Tiny fix for help message with runtime/metrics source. by
@&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1583
* ci: bump dagger to the latest version by @&#8203;marcosnils in
https://github.com/prometheus/client_golang/pull/1588
* Merge release-1.20 back to main by @&#8203;ArthurSens in
https://github.com/prometheus/client_golang/pull/1593
* Update linting by @&#8203;SuperQ in
https://github.com/prometheus/client_golang/pull/1603
* Update supported Go versions by @&#8203;SuperQ in
https://github.com/prometheus/client_golang/pull/1602
* build(deps): bump golang.org/x/sys from 0.22.0 to 0.24.0 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1611
* build(deps): bump github.com/prometheus/common from 0.55.0 to 0.57.0
by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1612
* changed the name of all variables with min/max name by
@&#8203;parthlaw in
https://github.com/prometheus/client_golang/pull/1606
* Update Dagger and build. by @&#8203;SuperQ in
https://github.com/prometheus/client_golang/pull/1610
* build(deps): bump github/codeql-action from 3.25.15 to 3.26.6 in the
github-actions group across 1 directory by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1614
* examples: Improved GoCollector example. by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1589
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1615
* process_collector: fill in most statistics on macOS by
@&#8203;mharbison72 in
https://github.com/prometheus/client_golang/pull/1600
*  http client defer CloseIdleConnections by @&#8203;cuisongliu in
https://github.com/prometheus/client_golang/pull/1513
* Set allow-utf-8 in Format during tests to avoid escaping. by
@&#8203;ywwg in https://github.com/prometheus/client_golang/pull/1618
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1622
* Merge Release 1.20 back to main by @&#8203;ArthurSens in
https://github.com/prometheus/client_golang/pull/1627
* examples: Add custom labels example by @&#8203;ying-jeanne in
https://github.com/prometheus/client_golang/pull/1626
* Refactor default runtime metrics tests for Go collector so that
default runtime metric set autogenerates by @&#8203;vesari in
https://github.com/prometheus/client_golang/pull/1631
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1628
* process_xxx_memory statistics for macOS (cgo) by @&#8203;mharbison72
in https://github.com/prometheus/client_golang/pull/1616
* build(deps): bump github.com/klauspost/compress from 1.17.9 to 1.17.10
by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1633
* build(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1632
* process_collector: Add Platform-Specific Describe for processCollector
by @&#8203;ying-jeanne in
https://github.com/prometheus/client_golang/pull/1625
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1635
* build(deps): bump the github-actions group with 4 updates by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1634
* Optionally print OM created lines by @&#8203;ArthurSens in
https://github.com/prometheus/client_golang/pull/1408
* process_collector: merge wasip1 and js into a single implementation by
@&#8203;ying-jeanne in
https://github.com/prometheus/client_golang/pull/1644
* Merge release 1.20 to main by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1647
* Add Arianna as maintainer 💪 by @&#8203;ArthurSens in
https://github.com/prometheus/client_golang/pull/1651
* test add headers round tripper by @&#8203;Manask322 in
https://github.com/prometheus/client_golang/pull/1657
* build(deps): bump github.com/klauspost/compress from 1.17.10 to
1.17.11 by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1668
* build(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1669
* build(deps): bump github.com/prometheus/common from 0.59.1 to 0.60.1
by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1667
* build(deps): bump google.golang.org/protobuf from 1.34.2 to 1.35.1 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1670
* Optimize BuildFQName function by @&#8203;jkroepke in
https://github.com/prometheus/client_golang/pull/1665
* fix: use injected now() instead of time.Now() in summary methods by
@&#8203;imorph in https://github.com/prometheus/client_golang/pull/1672
* process_collector: avoid a compiler warning on macOS (fixes
#&#8203;1660) by @&#8203;mharbison72 in
https://github.com/prometheus/client_golang/pull/1675
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1674
* build(deps): bump the github-actions group across 1 directory with 3
updates by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1678
* [chore]: enable perfsprint linter by @&#8203;mmorel-35 in
https://github.com/prometheus/client_golang/pull/1676
* Duplicate of #&#8203;1662 by @&#8203;imorph in
https://github.com/prometheus/client_golang/pull/1673
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1679
* chore: enable usestdlibvars linter by @&#8203;mmorel-35 in
https://github.com/prometheus/client_golang/pull/1680
* Add: exponential backoff for CAS operations on floats by
@&#8203;imorph in https://github.com/prometheus/client_golang/pull/1661
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1683
* [1617] Add ConstnativeHistogram by @&#8203;shivanthzen in
https://github.com/prometheus/client_golang/pull/1654
* fix: replace fmt.Errorf with errors.New by @&#8203;kakkoyun in
https://github.com/prometheus/client_golang/pull/1689
* Add codeowners by @&#8203;kakkoyun in
https://github.com/prometheus/client_golang/pull/1688
* fix: add very small delay between observations in
`TestHistogramAtomicObserve` by @&#8203;imorph in
https://github.com/prometheus/client_golang/pull/1691
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1692
* Fix: handle nil variableLabels in Desc.String() method and add tests
for nil label values by @&#8203;kakkoyun in
https://github.com/prometheus/client_golang/pull/1687
* examples: Follow best practices and established naming conventions by
@&#8203;lilic in https://github.com/prometheus/client_golang/pull/1650
* setup OSSF Scorecard workflow by @&#8203;mmorel-35 in
https://github.com/prometheus/client_golang/pull/1432
* build(deps): bump google.golang.org/protobuf from 1.35.1 to 1.35.2 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1697
* build(deps): bump golang.org/x/sys from 0.26.0 to 0.27.0 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1696
* build(deps): bump the github-actions group with 5 updates by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1695
* update links to openmetrics to reference the v1.0.0 release by
@&#8203;dashpole in
https://github.com/prometheus/client_golang/pull/1699
* build(deps): bump google.golang.org/protobuf from 1.35.2 to 1.36.1 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1706
* build(deps): bump golang.org/x/sys from 0.27.0 to 0.28.0 by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1705
* build(deps): bump the github-actions group with 5 updates by
@&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1707
* build(deps): bump github.com/prometheus/common from 0.60.1 to 0.61.0
by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1704
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1703
* Synchronize common files from prometheus/prometheus by @&#8203;prombot
in https://github.com/prometheus/client_golang/pull/1708
* Upgrade to prometheus/common 0.62.0 with breaking change by
@&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1712
* build(deps): bump golang.org/x/net from 0.26.0 to 0.33.0 in
/tutorials/whatsup by @&#8203;dependabot in
https://github.com/prometheus/client_golang/pull/1713
* docs: Add RELEASE.md for the release process by @&#8203;kakkoyun in
https://github.com/prometheus/client_golang/pull/1690
* tutorials/whatsup: Updated deps by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1716
* process collector: Fixed pedantic registry failures on darwin with
cgo. by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1715
* Revert "ci: daggerize test and lint pipelines (#&#8203;1534)" by
@&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1717
* Cut 1.21.0-rc.0 by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1718
* Cut 1.21 by @&#8203;bwplotka in
https://github.com/prometheus/client_golang/pull/1737
</details>

##### New Contributors
* @&#8203;parthlaw made their first
contributi[https://github.com/prometheus/client_golang/pull/1606](https://redirect.github.com/prometheus/client_golang/pull/1606)l/1606
* @&#8203;mharbison72 made their first
contributi[https://github.com/prometheus/client_golang/pull/1600](https://redirect.github.com/prometheus/client_golang/pull/1600)l/1600
* @&#8203;cuisongliu made their first
contributi[https://github.com/prometheus/client_golang/pull/1513](https://redirect.github.com/prometheus/client_golang/pull/1513)l/1513
* @&#8203;ying-jeanne made their first
contributi[https://github.com/prometheus/client_golang/pull/1626](https://redirect.github.com/prometheus/client_golang/pull/1626)l/1626
* @&#8203;Manask322 made their first
contributi[https://github.com/prometheus/client_golang/pull/1657](https://redirect.github.com/prometheus/client_golang/pull/1657)l/1657
* @&#8203;jkroepke made their first
contributi[https://github.com/prometheus/client_golang/pull/1665](https://redirect.github.com/prometheus/client_golang/pull/1665)l/1665
* @&#8203;imorph made their first
contributi[https://github.com/prometheus/client_golang/pull/1672](https://redirect.github.com/prometheus/client_golang/pull/1672)l/1672
* @&#8203;mmorel-35 made their first
contributi[https://github.com/prometheus/client_golang/pull/1676](https://redirect.github.com/prometheus/client_golang/pull/1676)l/1676
* @&#8203;shivanthzen made their first
contributi[https://github.com/prometheus/client_golang/pull/1654](https://redirect.github.com/prometheus/client_golang/pull/1654)l/1654
* @&#8203;dashpole made their first
contributi[https://github.com/prometheus/client_golang/pull/1699](https://redirect.github.com/prometheus/client_golang/pull/1699)l/1699

**Full Changelog**:
https://github.com/prometheus/client_golang/compare/v1.20.5...v1.21.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 17:13:05 +00:00
renovate[bot] a48cc80239
fix(deps): update module github.com/spf13/cobra to v1.9.1 (#1566)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/spf13/cobra](https://redirect.github.com/spf13/cobra) |
`v1.9.0` -> `v1.9.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fspf13%2fcobra/v1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fspf13%2fcobra/v1.9.0/v1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.9.0/v1.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>

###
[`v1.9.1`](https://redirect.github.com/spf13/cobra/releases/tag/v1.9.1)

[Compare
Source](https://redirect.github.com/spf13/cobra/compare/v1.9.0...v1.9.1)

##### 🐛 Fixes

- Fix CompletionFunc implementation by
[@&#8203;ccoVeille](https://redirect.github.com/ccoVeille) in
[https://github.com/spf13/cobra/pull/2234](https://redirect.github.com/spf13/cobra/pull/2234)
- Revert "Make detection for test-binary more universal
([#&#8203;2173](https://redirect.github.com/spf13/cobra/issues/2173))"
by [@&#8203;marckhouzam](https://redirect.github.com/marckhouzam) in
[https://github.com/spf13/cobra/pull/2235](https://redirect.github.com/spf13/cobra/pull/2235)

**Full Changelog**:
https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 07:25:21 +00:00
renovate[bot] 345d2a9207
fix(deps): update module github.com/spf13/cobra to v1.9.0 (#1564)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/spf13/cobra](https://redirect.github.com/spf13/cobra) |
`v1.8.1` -> `v1.9.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fspf13%2fcobra/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fspf13%2fcobra/v1.8.1/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.8.1/v1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>

###
[`v1.9.0`](https://redirect.github.com/spf13/cobra/releases/tag/v1.9.0)

[Compare
Source](https://redirect.github.com/spf13/cobra/compare/v1.8.1...v1.9.0)

####  Features

- Allow linker to perform deadcode elimination for program using Cobra
by [@&#8203;aarzilli](https://redirect.github.com/aarzilli) in
[https://github.com/spf13/cobra/pull/1956](https://redirect.github.com/spf13/cobra/pull/1956)
- Add default completion command even if there are no other sub-commands
by [@&#8203;marckhouzam](https://redirect.github.com/marckhouzam) in
[https://github.com/spf13/cobra/pull/1559](https://redirect.github.com/spf13/cobra/pull/1559)
- Add CompletionWithDesc helper by
[@&#8203;ccoVeille](https://redirect.github.com/ccoVeille) in
[https://github.com/spf13/cobra/pull/2231](https://redirect.github.com/spf13/cobra/pull/2231)

#### 🐛 Fixes

- Fix deprecation comment for Command.SetOutput by
[@&#8203;thaJeztah](https://redirect.github.com/thaJeztah) in
[https://github.com/spf13/cobra/pull/2172](https://redirect.github.com/spf13/cobra/pull/2172)
- fix(completions): Complete map flags multiple times by
[@&#8203;gabe565](https://redirect.github.com/gabe565) in
[https://github.com/spf13/cobra/pull/2174](https://redirect.github.com/spf13/cobra/pull/2174)
- Replace deprecated ioutil usage by
[@&#8203;nirs](https://redirect.github.com/nirs) in
[https://github.com/spf13/cobra/pull/2181](https://redirect.github.com/spf13/cobra/pull/2181)
- Fix --version help and output for plugins by
[@&#8203;nirs](https://redirect.github.com/nirs) in
[https://github.com/spf13/cobra/pull/2180](https://redirect.github.com/spf13/cobra/pull/2180)
- Allow to reset the templates to the default by
[@&#8203;marckhouzam](https://redirect.github.com/marckhouzam) in
[https://github.com/spf13/cobra/pull/2229](https://redirect.github.com/spf13/cobra/pull/2229)

#### 🤖 Completions

- Make Powershell completion work in constrained mode by
[@&#8203;lstemplinger](https://redirect.github.com/lstemplinger) in
[https://github.com/spf13/cobra/pull/2196](https://redirect.github.com/spf13/cobra/pull/2196)
- Improve detection for flags that accept multiple values by
[@&#8203;thaJeztah](https://redirect.github.com/thaJeztah) in
[https://github.com/spf13/cobra/pull/2210](https://redirect.github.com/spf13/cobra/pull/2210)
- add CompletionFunc type to help with completions by
[@&#8203;ccoVeille](https://redirect.github.com/ccoVeille) in
[https://github.com/spf13/cobra/pull/2220](https://redirect.github.com/spf13/cobra/pull/2220)
- Add similar whitespace escape logic to bash v2 completions than in
other completions by
[@&#8203;kangasta](https://redirect.github.com/kangasta) in
[https://github.com/spf13/cobra/pull/1743](https://redirect.github.com/spf13/cobra/pull/1743)
- Print ActiveHelp for bash along other completions by
[@&#8203;marckhouzam](https://redirect.github.com/marckhouzam) in
[https://github.com/spf13/cobra/pull/2076](https://redirect.github.com/spf13/cobra/pull/2076)
- fix(bash): nounset unbound file filter variable on empty extension by
[@&#8203;scop](https://redirect.github.com/scop) in
[https://github.com/spf13/cobra/pull/2228](https://redirect.github.com/spf13/cobra/pull/2228)

#### 🧪 Testing

- Test also with go 1.23 by
[@&#8203;nirs](https://redirect.github.com/nirs) in
[https://github.com/spf13/cobra/pull/2182](https://redirect.github.com/spf13/cobra/pull/2182)
- Make detection for test-binary more universal by
[@&#8203;thaJeztah](https://redirect.github.com/thaJeztah) in
[https://github.com/spf13/cobra/pull/2173](https://redirect.github.com/spf13/cobra/pull/2173)

#### ✍🏼 Documentation

- docs: update README.md by
[@&#8203;eltociear](https://redirect.github.com/eltociear) in
[https://github.com/spf13/cobra/pull/2197](https://redirect.github.com/spf13/cobra/pull/2197)
- Improve site formatting by
[@&#8203;nirs](https://redirect.github.com/nirs) in
[https://github.com/spf13/cobra/pull/2183](https://redirect.github.com/spf13/cobra/pull/2183)
- doc: add Conduit by [@&#8203;raulb](https://redirect.github.com/raulb)
in
[https://github.com/spf13/cobra/pull/2230](https://redirect.github.com/spf13/cobra/pull/2230)
- doc: azion project added to the list of CLIs that use cobra by
[@&#8203;maxwelbm](https://redirect.github.com/maxwelbm) in
[https://github.com/spf13/cobra/pull/2198](https://redirect.github.com/spf13/cobra/pull/2198)
- Fix broken links in active_help.md by
[@&#8203;vuil](https://redirect.github.com/vuil) in
[https://github.com/spf13/cobra/pull/2202](https://redirect.github.com/spf13/cobra/pull/2202)
- chore: fix function name in comment by
[@&#8203;zhuhaicity](https://redirect.github.com/zhuhaicity) in
[https://github.com/spf13/cobra/pull/2216](https://redirect.github.com/spf13/cobra/pull/2216)

#### 🔧 Dependency upgrades

- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6
by [@&#8203;thaJeztah](https://redirect.github.com/thaJeztah) in
[https://github.com/spf13/cobra/pull/2206](https://redirect.github.com/spf13/cobra/pull/2206)
- Update to latest go-md2man by
[@&#8203;mikelolasagasti](https://redirect.github.com/mikelolasagasti)
in
[https://github.com/spf13/cobra/pull/2201](https://redirect.github.com/spf13/cobra/pull/2201)
- Upgrade `pflag` dependencies for v1.9.0 by
[@&#8203;jpmcb](https://redirect.github.com/jpmcb) in
[https://github.com/spf13/cobra/pull/2233](https://redirect.github.com/spf13/cobra/pull/2233)

***

Thank you to all of our amazing contributors and all the great work
that's been going into the completions feature!!

##### 👋🏼 New Contributors

- [@&#8203;gabe565](https://redirect.github.com/gabe565) made their
first contribution in
[https://github.com/spf13/cobra/pull/2174](https://redirect.github.com/spf13/cobra/pull/2174)
- [@&#8203;maxwelbm](https://redirect.github.com/maxwelbm) made their
first contribution in
[https://github.com/spf13/cobra/pull/2198](https://redirect.github.com/spf13/cobra/pull/2198)
- [@&#8203;lstemplinger](https://redirect.github.com/lstemplinger) made
their first contribution in
[https://github.com/spf13/cobra/pull/2196](https://redirect.github.com/spf13/cobra/pull/2196)
- [@&#8203;vuil](https://redirect.github.com/vuil) made their first
contribution in
[https://github.com/spf13/cobra/pull/2202](https://redirect.github.com/spf13/cobra/pull/2202)
- [@&#8203;mikelolasagasti](https://redirect.github.com/mikelolasagasti)
made their first contribution in
[https://github.com/spf13/cobra/pull/2201](https://redirect.github.com/spf13/cobra/pull/2201)
- [@&#8203;zhuhaicity](https://redirect.github.com/zhuhaicity) made
their first contribution in
[https://github.com/spf13/cobra/pull/2216](https://redirect.github.com/spf13/cobra/pull/2216)
- [@&#8203;ccoVeille](https://redirect.github.com/ccoVeille) made their
first contribution in
[https://github.com/spf13/cobra/pull/2220](https://redirect.github.com/spf13/cobra/pull/2220)
- [@&#8203;kangasta](https://redirect.github.com/kangasta) made their
first contribution in
[https://github.com/spf13/cobra/pull/1743](https://redirect.github.com/spf13/cobra/pull/1743)
- [@&#8203;aarzilli](https://redirect.github.com/aarzilli) made their
first contribution in
[https://github.com/spf13/cobra/pull/1956](https://redirect.github.com/spf13/cobra/pull/1956)

**Full Changelog**:
https://github.com/spf13/cobra/compare/v1.8.1...v1.9.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-15 22:43:04 +00:00
renovate[bot] 130904c212
chore(deps): update golang docker tag to v1.24 (#1561)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | minor | `1.23-alpine` -> `1.24-alpine` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 03:39:57 +00:00
renovate[bot] 13146e5ac3
fix(deps): update module golang.org/x/net to v0.35.0 (#1557)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 11:13:06 +00:00
renovate[bot] 0dfa799566
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.4 (#1556)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.7.3` -> `v3.7.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.3/v3.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.3/v3.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.7.4`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.4)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.3...v3.7.4)

#### What's Changed

- Replace range loops over operators with map lookups by
[@&#8203;juannorris](https://redirect.github.com/juannorris) in
[https://github.com/diegoholiveira/jsonlogic/pull/102](https://redirect.github.com/diegoholiveira/jsonlogic/pull/102)
- Fix minus with empty list by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/103](https://redirect.github.com/diegoholiveira/jsonlogic/pull/103)
- Fix div with empty list by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/104](https://redirect.github.com/diegoholiveira/jsonlogic/pull/104)

#### New Contributors

- [@&#8203;juannorris](https://redirect.github.com/juannorris) made
their first contribution in
[https://github.com/diegoholiveira/jsonlogic/pull/102](https://redirect.github.com/diegoholiveira/jsonlogic/pull/102)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.7.3...v3.7.4

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 04:42:00 +00:00
renovate[bot] 23afa9c18c
fix(deps): update golang.org/x/exp digest to 939b2ce (#1555)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `f9890c6` -> `939b2ce` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 01:04:15 +00:00
Todd Baert 096aae5d9d
docs: metadata conceptual doc (#1550)
Adds a bit of conceptual docs about metadata. We already have lots of
detail on how to configure it, how it's merged in the `definitions`
page, and how it's implemented in in-process providers.

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-02-10 11:36:14 -05:00
renovate[bot] 7cef153a27
fix(deps): update module golang.org/x/crypto to v0.33.0 (#1552)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-08 04:33:00 +00:00
renovate[bot] 02c4b42501
fix(deps): update golang.org/x/exp digest to f9890c6 (#1551)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `e0ece0d` -> `f9890c6` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-07 08:21:43 +00:00
renovate[bot] d3eb44ed45
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.5-20250127221518-be6d1143b690.1 (#1549)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.4-20250127221518-be6d1143b690.1` ->
`v1.36.5-20250127221518-be6d1143b690.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.5-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.5-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20250127221518-be6d1143b690.1/v1.36.5-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20250127221518-be6d1143b690.1/v1.36.5-20250127221518-be6d1143b690.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 22:20:12 +00:00
renovate[bot] 7b2b7ccbdf
fix(deps): update module google.golang.org/protobuf to v1.36.5 (#1548)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.36.5`](https://redirect.github.com/protocolbuffers/protobuf-go/compare/v1.36.4...v1.36.5)

[Compare
Source](https://redirect.github.com/protocolbuffers/protobuf-go/compare/v1.36.4...v1.36.5)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 18:44:48 +00:00
Michael Beemer c9b936e44a
fix: enable SBOM generation and provenance in release workflow (#1547)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-02-04 15:17:54 -05:00
renovate[bot] ca663b5832
fix(deps): update module github.com/open-feature/flagd/core to v0.11.1 (#1545)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.11.0` -> `v0.11.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.0/v0.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.0/v0.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-feature/flagd
(github.com/open-feature/flagd/core)</summary>

###
[`v0.11.1`](https://redirect.github.com/open-feature/flagd/releases/tag/flagd/v0.11.1):
flagd: v0.11.1

##### 🐛 Bug Fixes

- **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#&#8203;1342](https://redirect.github.com/open-feature/flagd/issues/1342))
([efdd921](efdd921399))
- **deps:** update module github.com/open-feature/flagd/core to v0.10.0
([#&#8203;1340](https://redirect.github.com/open-feature/flagd/issues/1340))
([1e487b4](1e487b4baf))
- **deps:** update module golang.org/x/net to v0.27.0
([#&#8203;1353](https://redirect.github.com/open-feature/flagd/issues/1353))
([df9834b](df9834bea2))
- **deps:** update module google.golang.org/grpc to v1.65.0
([#&#8203;1346](https://redirect.github.com/open-feature/flagd/issues/1346))
([72a6b87](72a6b876e8))
- **deps:** update opentelemetry-go monorepo
([#&#8203;1347](https://redirect.github.com/open-feature/flagd/issues/1347))
([37fb3cd](37fb3cd81d))
- invalid scoped-sync responses for empty flags
([#&#8203;1352](https://redirect.github.com/open-feature/flagd/issues/1352))
([51371d2](51371d25e2))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 20:11:16 +00:00
renovate[bot] 6fe7bd2a3e
fix(deps): update module golang.org/x/mod to v0.23.0 (#1544)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 19:50:11 +00:00
github-actions[bot] 82dc4e4c6c
chore: release main (#1542)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.1</summary>

##
[0.12.1](https://github.com/open-feature/flagd/compare/flagd/v0.12.0...flagd/v0.12.1)
(2025-02-04)


### 🐛 Bug Fixes

* **deps:** update module github.com/open-feature/flagd/core to v0.11.0
([#1541](https://github.com/open-feature/flagd/issues/1541))
([986a436](986a436e10))
* **deps:** update module golang.org/x/sync to v0.11.0
([#1543](https://github.com/open-feature/flagd/issues/1543))
([7d6c0dc](7d6c0dc6e6))
</details>

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

##
[0.7.1](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.7.0...flagd-proxy/v0.7.1)
(2025-02-04)


### 🐛 Bug Fixes

* **deps:** update module github.com/open-feature/flagd/core to v0.11.0
([#1541](https://github.com/open-feature/flagd/issues/1541))
([986a436](986a436e10))
* **deps:** update module golang.org/x/sync to v0.11.0
([#1543](https://github.com/open-feature/flagd/issues/1543))
([7d6c0dc](7d6c0dc6e6))
</details>

<details><summary>core: 0.11.1</summary>

##
[0.11.1](https://github.com/open-feature/flagd/compare/core/v0.11.0...core/v0.11.1)
(2025-02-04)


### 🐛 Bug Fixes

* **deps:** update module golang.org/x/sync to v0.11.0
([#1543](https://github.com/open-feature/flagd/issues/1543))
([7d6c0dc](7d6c0dc6e6))
</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>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-02-04 13:03:48 -05:00
Todd Baert 573bbfbf21 fix: sbom generation error
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-02-04 12:55:17 -05:00
renovate[bot] 7d6c0dc6e6
fix(deps): update module golang.org/x/sync to v0.11.0 (#1543)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 17:48:38 +00:00
renovate[bot] 986a436e10
fix(deps): update module github.com/open-feature/flagd/core to v0.11.0 (#1541)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.8` -> `v0.11.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.8/v0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.8/v0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-feature/flagd
(github.com/open-feature/flagd/core)</summary>

###
[`v0.11.0`](https://redirect.github.com/open-feature/flagd/releases/tag/flagd/v0.11.0):
flagd: v0.11.0

##### ⚠ BREAKING CHANGES

- support emitting errors from the bulk evaluator
([#&#8203;1338](https://redirect.github.com/open-feature/flagd/issues/1338))

##### 🐛 Bug Fixes

- **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.16.2-20240215170432-1e611e2999cc.1
([#&#8203;1293](https://redirect.github.com/open-feature/flagd/issues/1293))
([2694e7f](2694e7f99f))
- **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.1
([#&#8203;1333](https://redirect.github.com/open-feature/flagd/issues/1333))
([494062f](494062fed8))
- **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.34.2-20240215170432-1e611e2999cc.2
([#&#8203;1330](https://redirect.github.com/open-feature/flagd/issues/1330))
([32291ad](32291ad93d))
- **deps:** update module github.com/open-feature/flagd/core to v0.9.3
([#&#8203;1296](https://redirect.github.com/open-feature/flagd/issues/1296))
([1f7b8bd](1f7b8bd938))
- **deps:** update module github.com/rs/cors to v1.11.0
([#&#8203;1299](https://redirect.github.com/open-feature/flagd/issues/1299))
([5f77541](5f775413fb))
- **deps:** update module github.com/spf13/cobra to v1.8.1
([#&#8203;1332](https://redirect.github.com/open-feature/flagd/issues/1332))
([c62bcb0](c62bcb0ec6))
- **deps:** update module github.com/spf13/viper to v1.19.0
([#&#8203;1334](https://redirect.github.com/open-feature/flagd/issues/1334))
([1097b99](1097b9961b))
- **deps:** update module golang.org/x/net to v0.26.0
([#&#8203;1337](https://redirect.github.com/open-feature/flagd/issues/1337))
([83bdbb5](83bdbb5e7e))
- **deps:** update opentelemetry-go monorepo
([#&#8203;1314](https://redirect.github.com/open-feature/flagd/issues/1314))
([e9f1a7a](e9f1a7a048))
- readable error messages
([#&#8203;1325](https://redirect.github.com/open-feature/flagd/issues/1325))
([7ff33ef](7ff33effcc))

#####  New Features

- support `FLAGD_DEBUG` / `--debug` / `-x`
([#&#8203;1326](https://redirect.github.com/open-feature/flagd/issues/1326))
([298bd36](298bd36698))
- support emitting errors from the bulk evaluator
([#&#8203;1338](https://redirect.github.com/open-feature/flagd/issues/1338))
([b9c099c](b9c099cb7f))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-31 21:19:10 +00:00
github-actions[bot] a444b74685
chore: release main (#1527)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.12.0</summary>

##
[0.12.0](https://github.com/open-feature/flagd/compare/flagd/v0.11.8...flagd/v0.12.0)
(2025-01-31)


### ⚠ BREAKING CHANGES

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))

### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.18.1-20250127221518-be6d1143b690.1
([#1535](https://github.com/open-feature/flagd/issues/1535))
([d5ec921](d5ec921f02))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20250127221518-be6d1143b690.2
([#1536](https://github.com/open-feature/flagd/issues/1536))
([e23060f](e23060f24b))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20241220192239-696330adaff0.1
([#1529](https://github.com/open-feature/flagd/issues/1529))
([8881a80](8881a804b4))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20250127221518-be6d1143b690.1
([#1537](https://github.com/open-feature/flagd/issues/1537))
([f74207b](f74207bc13))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.8
([#1526](https://github.com/open-feature/flagd/issues/1526))
([fbf2ed5](fbf2ed527f))
* **deps:** update module google.golang.org/grpc to v1.70.0
([#1528](https://github.com/open-feature/flagd/issues/1528))
([79b2b0a](79b2b0a6bb))


###  New Features

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))
([b49abf9](b49abf9506))
</details>

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

##
[0.7.0](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.11...flagd-proxy/v0.7.0)
(2025-01-31)


### ⚠ BREAKING CHANGES

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))

### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20250127221518-be6d1143b690.2
([#1536](https://github.com/open-feature/flagd/issues/1536))
([e23060f](e23060f24b))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20241220192239-696330adaff0.1
([#1529](https://github.com/open-feature/flagd/issues/1529))
([8881a80](8881a804b4))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20250127221518-be6d1143b690.1
([#1537](https://github.com/open-feature/flagd/issues/1537))
([f74207b](f74207bc13))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.8
([#1526](https://github.com/open-feature/flagd/issues/1526))
([fbf2ed5](fbf2ed527f))
* **deps:** update module google.golang.org/grpc to v1.70.0
([#1528](https://github.com/open-feature/flagd/issues/1528))
([79b2b0a](79b2b0a6bb))


###  New Features

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))
([b49abf9](b49abf9506))
</details>

<details><summary>core: 0.11.0</summary>

##
[0.11.0](https://github.com/open-feature/flagd/compare/core/v0.10.8...core/v0.11.0)
(2025-01-31)


### ⚠ BREAKING CHANGES

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))

### 🐛 Bug Fixes

* **deps:** update github.com/open-feature/flagd-schemas digest to
bb76343 ([#1534](https://github.com/open-feature/flagd/issues/1534))
([8303353](8303353a1b))
* **deps:** update golang.org/x/exp digest to 3edf0e9
([#1538](https://github.com/open-feature/flagd/issues/1538))
([7a06567](7a0656713a))
* **deps:** update golang.org/x/exp digest to e0ece0d
([#1539](https://github.com/open-feature/flagd/issues/1539))
([4281c6e](4281c6e80b))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20250127221518-be6d1143b690.2
([#1536](https://github.com/open-feature/flagd/issues/1536))
([e23060f](e23060f24b))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20241220192239-696330adaff0.1
([#1529](https://github.com/open-feature/flagd/issues/1529))
([8881a80](8881a804b4))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.4-20250127221518-be6d1143b690.1
([#1537](https://github.com/open-feature/flagd/issues/1537))
([f74207b](f74207bc13))
* **deps:** update module google.golang.org/grpc to v1.70.0
([#1528](https://github.com/open-feature/flagd/issues/1528))
([79b2b0a](79b2b0a6bb))


###  New Features

* flagSetMetadata in OFREP/ResolveAll, core refactors
([#1540](https://github.com/open-feature/flagd/issues/1540))
([b49abf9](b49abf9506))
* support yaml in blob, file, and http syncs
([#1522](https://github.com/open-feature/flagd/issues/1522))
([76d673a](76d673ae8f))
</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>
2025-01-31 11:09:22 -05:00
Todd Baert b49abf9506
feat!: flagSetMetadata in OFREP/ResolveAll, core refactors (#1540)
⚠️ This PR brings a breaking change to the
[flagd-core](https://pkg.go.dev/github.com/open-feature/flagd/core)
library: the `IStore` interface now returns an additional value
representing the flag set metadata. There are no breaking changes in
flagd's behavior.

Changes in flagd:

- returns flag set metadata as metadata for error flags (best effort)
- returns flag set metadata in OFREP and RPC calls
- moves metadata merging logic to evaluator (all flags inherent flag set
metadata, but can override, as as before but now reusable in flagd core)
- removes duplicated flag set metadata keys when the same flag set
metadata key exists in multiple sources

### To Test

- requires `curl`, `grpcurl`, and `jq`

#### RPC

```shell
grpcurl -import-path  /...../schemas/protobuf/flagd/evaluation/v1  -proto evaluation.proto -plaintext  localhost:8013 flagd.evaluation.v1.Service/ResolveAll | jq
```

### OFREP

```shell
curl --location 'http://localhost:8016/ofrep/v1/evaluate/flags'  --header 'Content-Type: application/json' --data '{"context": {"color": "yellow"}}'  | jq
```

### Sync

```shell
grpcurl -import-path /...../schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext   localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags    | jq -r .flagConfiguration  | jq
```

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-01-31 10:54:47 -05:00
renovate[bot] 4281c6e80b
fix(deps): update golang.org/x/exp digest to e0ece0d (#1539)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `3edf0e9` -> `e0ece0d` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 00:40:09 +00:00
Michael Beemer 76d673ae8f
feat: support yaml in blob, file, and http syncs (#1522)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-01-28 12:53:53 -05:00
renovate[bot] 7a0656713a
fix(deps): update golang.org/x/exp digest to 3edf0e9 (#1538)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `7588d65` -> `3edf0e9` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 17:41:59 +00:00
renovate[bot] f74207bc13
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.4-20250127221518-be6d1143b690.1 (#1537)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.4-20241220192239-696330adaff0.1` ->
`v1.36.4-20250127221518-be6d1143b690.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20241220192239-696330adaff0.1/v1.36.4-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20241220192239-696330adaff0.1/v1.36.4-20250127221518-be6d1143b690.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 17:25:17 +00:00
renovate[bot] e23060f24b
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20250127221518-be6d1143b690.2 (#1536)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.5.1-20241220192239-696330adaff0.2` ->
`v1.5.1-20250127221518-be6d1143b690.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20250127221518-be6d1143b690.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20250127221518-be6d1143b690.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.2/v1.5.1-20250127221518-be6d1143b690.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.2/v1.5.1-20250127221518-be6d1143b690.2?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 14:32:54 +00:00
renovate[bot] d5ec921f02
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.18.1-20250127221518-be6d1143b690.1 (#1535)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.18.1-20241220192239-696330adaff0.1` ->
`v1.18.1-20250127221518-be6d1143b690.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20241220192239-696330adaff0.1/v1.18.1-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20241220192239-696330adaff0.1/v1.18.1-20250127221518-be6d1143b690.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 10:38:19 +00:00
Simon Schrottner f298866122
feat: migrate file evaluation to own provider type (#1525)
update of spec for https://github.com/open-feature/flagd/issues/1504

---------

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-01-28 08:02:28 +01:00
renovate[bot] 8303353a1b
fix(deps): update github.com/open-feature/flagd-schemas digest to bb76343 (#1534)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `37baa2c` -> `bb76343` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 04:39:49 +00:00
renovate[bot] 8881a804b4
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.4-20241220192239-696330adaff0.1 (#1529)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.3-20241220192239-696330adaff0.1` ->
`v1.36.4-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.4-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.3-20241220192239-696330adaff0.1/v1.36.4-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.3-20241220192239-696330adaff0.1/v1.36.4-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-26 12:54:55 +00:00
renovate[bot] 79b2b0a6bb
fix(deps): update module google.golang.org/grpc to v1.70.0 (#1528)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### Behavior Changes

- client: reject service configs containing an invalid retryPolicy in
accordance with gRFCs
[A21](https://redirect.github.com/grpc/proposal/blob/master/A21-service-config-error-handling.md)
and
[A6](https://redirect.github.com/grpc/proposal/blob/master/A6-client-retries.md).
([#&#8203;7905](https://redirect.github.com/grpc/grpc-go/issues/7905))
- Note that this is a potential breaking change for some users using an
invalid configuration, but continuing to allow this behavior would
violate our cross-language compatibility requirements.

### New Features

- xdsclient: fallback to a secondary management server (if specified in
the bootstrap configuration) when the primary is down is enabled by
default. Can be disabled by setting the environment variable
`GRPC_EXPERIMENTAL_XDS_FALLBACK` to `false`.
([#&#8203;7949](https://redirect.github.com/grpc/grpc-go/issues/7949))
- experimental/credentials: experimental transport credentials are added
which don't enforce ALPN.
([#&#8203;7980](https://redirect.github.com/grpc/grpc-go/issues/7980))
- These credentials will be removed in an upcoming grpc-go release.
Users must not rely on these credentials directly. Instead, they should
either vendor a specific version of gRPC or copy the relevant
credentials into their own codebase if absolutely necessary.

### Bug Fixes

- xds: fix a possible deadlock that happens when both the client
application and the xDS management server (responsible for configuring
the client) are using the xds:/// scheme in their target URIs.
([#&#8203;8011](https://redirect.github.com/grpc/grpc-go/issues/8011))

### Performance

- server: for unary requests, free raw request message data as soon as
parsing is finished instead of waiting until the method handler returns.
([#&#8203;7998](https://redirect.github.com/grpc/grpc-go/issues/7998))
    -   Special Thanks: [@&#8203;lqs](https://redirect.github.com/lqs)

### Documentation

- examples/features/gracefulstop: add example to demonstrate server
graceful stop.
([#&#8203;7865](https://redirect.github.com/grpc/grpc-go/issues/7865))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 00:36:28 +00:00
renovate[bot] fbf2ed527f
fix(deps): update module github.com/open-feature/flagd/core to v0.10.8 (#1526)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.7` -> `v0.10.8` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.7/v0.10.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.7/v0.10.8?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-23 21:40:12 +00:00
github-actions[bot] 166c40a438
chore: release main (#1519)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.8</summary>

##
[0.11.8](https://github.com/open-feature/flagd/compare/flagd/v0.11.7...flagd/v0.11.8)
(2025-01-19)


### 🐛 Bug Fixes

* **deps:** update module github.com/open-feature/flagd/core to v0.10.7
([#1521](https://github.com/open-feature/flagd/issues/1521))
([bf8e7e0](bf8e7e06d9))
* **deps:** update opentelemetry-go monorepo
([#1524](https://github.com/open-feature/flagd/issues/1524))
([eeae9a6](eeae9a64ca))
* Skip flagd banner when non-console logger in use
([#1516](https://github.com/open-feature/flagd/issues/1516))
([bae9b6f](bae9b6fb3b))
</details>

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

##
[0.6.11](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.10...flagd-proxy/v0.6.11)
(2025-01-19)


### 🐛 Bug Fixes

* **deps:** update module github.com/open-feature/flagd/core to v0.10.7
([#1521](https://github.com/open-feature/flagd/issues/1521))
([bf8e7e0](bf8e7e06d9))
* **deps:** update opentelemetry-go monorepo
([#1524](https://github.com/open-feature/flagd/issues/1524))
([eeae9a6](eeae9a64ca))
* Skip flagd banner when non-console logger in use
([#1516](https://github.com/open-feature/flagd/issues/1516))
([bae9b6f](bae9b6fb3b))
</details>

<details><summary>core: 0.10.8</summary>

##
[0.10.8](https://github.com/open-feature/flagd/compare/core/v0.10.7...core/v0.10.8)
(2025-01-19)


### 🐛 Bug Fixes

* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to
v3.7.3 ([#1520](https://github.com/open-feature/flagd/issues/1520))
([db2f990](db2f99021d))
* **deps:** update opentelemetry-go monorepo
([#1524](https://github.com/open-feature/flagd/issues/1524))
([eeae9a6](eeae9a64ca))
</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>
2025-01-23 10:01:31 -05:00
renovate[bot] eeae9a64ca
fix(deps): update opentelemetry-go monorepo (#1524)
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.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.33.0/v1.34.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.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.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.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.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.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.55.0` -> `v0.56.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.56.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.56.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.55.0/v0.56.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.55.0/v0.56.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.33.0` -> `v1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.34.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.34.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.33.0/v1.34.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.33.0/v1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.34.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.34.0):
/v0.56.0/v0.10.0

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

##### Overview

##### Changed

- Remove the notices from `Logger` to make the whole Logs API
user-facing in `go.opentelemetry.io/otel/log`.
([#&#8203;6167](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6167))

##### Fixed

- Relax minimum Go version to 1.22.0 in various modules.
([#&#8203;6073](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6073))
- The `Type` name logged for the
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` client
is corrected from `otlphttpgrpc` to `otlptracegrpc`.
([#&#8203;6143](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6143))
- The `Type` name logged for the
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlphttpgrpc` client
is corrected from `otlphttphttp` to `otlptracehttp`.
([#&#8203;6143](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6143))

##### What's Changed

- fix(deps): update module google.golang.org/grpc to v1.69.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6037](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6037)
- build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0 in
/internal/tools by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6036](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6036)
- fix(deps): update golang.org/x/exp digest to
[`4a55095`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/4a55095)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6039](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6039)
- \[chore] Have renovate update our tools deps by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6038](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6038)
- Fix broken link by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6042](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6042)
- chore(deps): update github.com/golang/groupcache digest to
[`2c02b82`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/2c02b82)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6043](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6043)
- chore(deps): update github.com/burntsushi/toml digest to
[`b7406c0`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/b7406c0)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6041](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6041)
- chore(deps): update github.com/matoous/godox digest to
[`94d1edd`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/94d1edd)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6044](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6044)
- chore(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6046](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6046)
- chore(deps): update mvdan.cc/unparam digest to
[`57a3b42`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/57a3b42)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6047](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6047)
- fix(deps): update googleapis to
[`9240e9c`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/9240e9c)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6048](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6048)
- chore(deps): update module github.com/antonboom/nilnil to v1.0.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6050](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6050)
- chore(deps): update module dario.cat/mergo to v1.0.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6049](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6049)
- chore(deps): update module github.com/butuzov/ireturn to v0.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6051](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6051)
- chore(deps): update module github.com/go-xmlfmt/xmlfmt to v1.1.3 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6052](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6052)
- chore(deps): update module github.com/jjti/go-spancheck to v0.6.4 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6053](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6053)
- chore(deps): update module github.com/alecthomas/go-check-sumtype to
v0.3.1 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6059](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6059)
- chore(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/6058](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6058)
- chore(deps): update module github.com/ashanbrown/makezero to v1.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6060](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6060)
- chore(deps): update module github.com/butuzov/mirror to v1.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6061](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6061)
- chore(deps): update module github.com/microsoft/go-winio to v0.6.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6056](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6056)
- chore(deps): update module github.com/cloudflare/circl to v1.5.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6063](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6063)
- chore(deps): update module github.com/ckaznocha/intrange to v0.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6062](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6062)
- chore(deps): update module github.com/magiconair/properties to v1.8.9
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6054](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6054)
- chore(deps): update module github.com/masterminds/semver/v3 to v3.3.1
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6055](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6055)
- chore(deps): update module github.com/cyphar/filepath-securejoin to
v0.3.6 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6066](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6066)
- chore(deps): update module github.com/curioswitch/go-reassign to
v0.3.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6065](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6065)
- chore(deps): update module github.com/djarvur/go-err113 to v0.1.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6068](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6068)
- fix(deps): update golang.org/x to
[`b2144cd`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/b2144cd)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6067](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6067)
- chore(deps): update module github.com/fsnotify/fsnotify to v1.8.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6069](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6069)
- chore(deps): update module github.com/go-git/go-billy/v5 to v5.6.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6070](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6070)
- chore(deps): update module github.com/ldez/gomoddirectives to v0.6.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6072](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6072)
- chore(deps): update module github.com/prometheus/common to v0.61.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6075](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6075)
- chore(deps): update module github.com/stbenjam/no-sprintf-host-port to
v0.2.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6081](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6081)
- chore(deps): update module github.com/spf13/cast to v1.7.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6080](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6080)
- chore(deps): update module github.com/skeema/knownhosts to v1.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6079](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6079)
- chore(deps): update module github.com/sanposhiho/wastedassign/v2 to
v2.1.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6078](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6078)
- chore(deps): update module github.com/protonmail/go-crypto to v1.1.3
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6076](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6076)
- chore(deps): update module github.com/sagikazarmark/locafero to v0.6.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6077](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6077)
- chore(deps): update module github.com/tomarrell/wrapcheck/v2 to
v2.10.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6083](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6083)
- chore(deps): update module github.com/tdakkota/asciicheck to v0.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6082](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6082)
- chore(deps): update module github.com/uudashr/gocognit to v1.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6087](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6087)
- chore(deps): update module github.com/spf13/cast to v1.7.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6086](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6086)
- chore(deps): update github.com/timakin/bodyclose digest to
[`adbc21e`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/adbc21e)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6045](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6045)
- chore(deps): update module github.com/uudashr/iface to v1.3.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6088](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6088)
- fix(deps): update module google.golang.org/protobuf to v1.36.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6089](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6089)
- chore(deps): update codecov/codecov-action action to v5.1.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6090](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6090)
- fix(deps): update module google.golang.org/grpc to v1.69.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6091](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6091)
- chore(deps): update module golang.org/x/net to v0.33.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6092](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6092)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest
to
[`9e4b4d4`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/9e4b4d4)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6096](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6096)
- chore(deps): update lycheeverse/lychee-action action to v2.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6099](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6099)
- fix(deps): update googleapis to
[`6b3ec00`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/6b3ec00)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6101](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6101)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.25.1 by [@&#8203;renovate](https://redirect.github.com/renovate)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6103](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6103)
- chore(deps): update golang.org/x/telemetry digest to
[`cc96b6e`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/cc96b6e)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6102](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6102)
- chore(deps): update github.com/timakin/bodyclose digest to
[`1db5c5c`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/1db5c5c)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6105](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6105)
- \[chore] Move the changelog guard by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6100](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6100)
- Only run links check on main branch merge by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6098](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6098)
- fix(deps): update googleapis to
[`6982302`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/6982302)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6108](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6108)
- fix(deps): update module google.golang.org/protobuf to v1.36.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6109](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6109)
- chore(deps): update module github.com/tetafro/godot to v1.4.20 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6110](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6110)
- chore(deps): update github.com/golangci/gofmt digest to
[`057b062`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/057b062)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6111](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6111)
- chore(deps): update module github.com/ldez/grignotin to v0.7.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6112](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6112)
- fix(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6121](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6121)
- chore(deps): update mvdan.cc/unparam digest to
[`447d509`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/447d509)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6115](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6115)
- chore(deps): update module github.com/julz/importas to v0.2.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6116](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6116)
- chore(deps): update module github.com/karamaru-alpha/copyloopvar to
v1.2.1 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6126](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6126)
- chore(deps): update module github.com/ldez/grignotin to v0.8.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6129](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6129)
- fix(deps): update module github.com/golangci/golangci-lint to v1.63.4
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6128](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6128)
- chore(deps): update module github.com/go-git/go-git/v5 to v5.13.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6125](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6125)
- chore(deps): update module github.com/pjbgf/sha1cd to v0.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6123](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6123)
- fix(deps): update googleapis to
[`5f5ef82`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/5f5ef82)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6133](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6133)
- chore(deps): update module github.com/alingse/nilnesserr to v0.1.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6134](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6134)
- fix(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6135](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6135)
- Minimum go version dependency downgraded back to 1.22.0 in various
packages by [@&#8203;codeboten](https://redirect.github.com/codeboten)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6073](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6073)
- chore(deps): update module github.com/protonmail/go-crypto to v1.1.4
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6137](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6137)
- fix(deps): update module google.golang.org/protobuf to v1.36.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6138](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6138)
- chore(deps): update module github.com/uudashr/iface to v1.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6139](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6139)
- chore(deps): update module github.com/securego/gosec/v2 to v2.22.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6141](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6141)
- chore(deps): update module github.com/sagikazarmark/locafero to v0.7.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6140](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6140)
- chore(deps): update module go.opentelemetry.io/build-tools to v0.16.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6146](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6146)
- fix(deps): update module go.opentelemetry.io/build-tools/crosslink to
v0.16.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6147](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6147)
- fix(deps): update module go.opentelemetry.io/build-tools/multimod to
v0.16.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6149](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6149)
- fix(deps): update module go.opentelemetry.io/build-tools/semconvgen to
v0.16.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6150](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6150)
- fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to
v0.16.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6148](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6148)
- docs: update badge link by
[@&#8203;codeboten](https://redirect.github.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6144](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6144)
- Fix otlptrace client types by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6143](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6143)
- chore(deps): update module github.com/mattn/go-colorable to v0.1.14 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6151](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6151)
- chore(deps): update module github.com/go-git/go-billy/v5 to v5.6.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6122](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6122)
- chore(deps): update module github.com/cyphar/filepath-securejoin to
v0.4.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6157](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6157)
- fix(deps): update module google.golang.org/grpc to v1.69.4 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6159](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6159)
- Fix demo links by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6160](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6160)
- fix(deps): update module golang.org/x/vuln to v1.1.4 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6161](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6161)
- chore(deps): update module github.com/crocmagnon/fatcontext to v0.6.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6162](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6162)
- chore(deps): update module github.com/ldez/exptostd to v0.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6163](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6163)
- fix(deps): update googleapis to
[`1a7da9e`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/1a7da9e)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6164](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6164)
- chore(deps): update module github.com/protonmail/go-crypto to v1.1.5
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6165](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6165)
- fix(deps): update module google.golang.org/protobuf to v1.36.3 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6166](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6166)
- log: Make whole Logs API user-facing by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6167](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6167)
- Release v1.34.0/v0.56.0/v0.10.0 by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6174](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6174)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.33.0...v1.34.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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-19 17:09:21 +00:00
renovate[bot] db2f99021d
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.3 (#1520)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.7.1` -> `v3.7.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.1/v3.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.1/v3.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.7.3`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.3)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.2...v3.7.3)

#### What's Changed

- Fix some comparisons by
[@&#8203;gburt](https://redirect.github.com/gburt) in
[https://github.com/diegoholiveira/jsonlogic/pull/100](https://redirect.github.com/diegoholiveira/jsonlogic/pull/100)
- small cleanup by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/101](https://redirect.github.com/diegoholiveira/jsonlogic/pull/101)

#### New Contributors

- [@&#8203;gburt](https://redirect.github.com/gburt) made their first
contribution in
[https://github.com/diegoholiveira/jsonlogic/pull/100](https://redirect.github.com/diegoholiveira/jsonlogic/pull/100)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.7.2...v3.7.3

###
[`v3.7.2`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.2)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.1...v3.7.2)

#### What's Changed

- Modify `_or` to return the parsed value instead of the original value
by [@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)
in
[https://github.com/diegoholiveira/jsonlogic/pull/99](https://redirect.github.com/diegoholiveira/jsonlogic/pull/99)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.7.1...v3.7.2

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-19 12:53:57 +00:00
renovate[bot] bf8e7e06d9
fix(deps): update module github.com/open-feature/flagd/core to v0.10.7 (#1521)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.6` -> `v0.10.7` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.6/v0.10.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.6/v0.10.7?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-19 09:33:45 +00:00
Austin Drenski bae9b6fb3b
fix: Skip flagd banner when non-console logger in use (#1516)
## This PR

- Moves the (very nice) flagd console banner behind a flag check to
avoid sending the (again, very nice) console banner to JSON log files,
sinks, k8s trailers, etc.

### How to test

```console
$ go run main.go start -f file:../config/samples/example_flags.flagd.json

                 ______   __       ________   _______    ______
                /_____/\ /_/\     /_______/\ /______/\  /_____/\
                \::::_\/_\:\ \    \::: _  \ \\::::__\/__\:::_ \ \
                 \:\/___/\\:\ \    \::(_)  \ \\:\ /____/\\:\ \ \ \
                  \:::._\/ \:\ \____\:: __  \ \\:\\_  _\/ \:\ \ \ \
                   \:\ \    \:\/___/\\:.\ \  \ \\:\_\ \ \  \:\/.:| |
                    \_\/     \_____\/ \__\/\__\/ \_____\/   \____/_/

2025-01-15T19:41:51.347-0500    info    cmd/start.go:124        flagd version: dev (HEAD), built at: unknown    {"component": "start"}
2025-01-15T19:41:51.347-0500    info    flag-sync/sync_service.go:87    starting flag sync service on port 8015 {"component": "FlagSyncService"}
2025-01-15T19:41:51.347-0500    info    file/filepath_sync.go:62        Starting filepath sync notifier {"component": "sync", "sync": "fileinfo"}
2025-01-15T19:41:51.347-0500    info    ofrep/ofrep_service.go:58       ofrep service listening at 8016 {"component": "OFREPService"}
2025-01-15T19:41:51.347-0500    info    flag-evaluation/connect_service.go:249  metrics and probes listening at 8014    {"component": "service"}
2025-01-15T19:41:51.347-0500    info    file/filepath_sync.go:101       watching filepath: ../config/samples/example_flags.flagd.json   {"component": "sync", "sync": "fileinfo"}
2025-01-15T19:41:51.347-0500    info    flag-evaluation/connect_service.go:229  Flag IResolver listening at [::]:8013   {"component": "service"}
```

```console
$ go run main.go start -f file:../config/samples/example_flags.flagd.json --log-format console

                 ______   __       ________   _______    ______
                /_____/\ /_/\     /_______/\ /______/\  /_____/\
                \::::_\/_\:\ \    \::: _  \ \\::::__\/__\:::_ \ \
                 \:\/___/\\:\ \    \::(_)  \ \\:\ /____/\\:\ \ \ \
                  \:::._\/ \:\ \____\:: __  \ \\:\\_  _\/ \:\ \ \ \
                   \:\ \    \:\/___/\\:.\ \  \ \\:\_\ \ \  \:\/.:| |
                    \_\/     \_____\/ \__\/\__\/ \_____\/   \____/_/

2025-01-15T19:41:39.375-0500    info    cmd/start.go:124        flagd version: dev (HEAD), built at: unknown    {"component": "start"}
2025-01-15T19:41:39.376-0500    info    flag-sync/sync_service.go:87    starting flag sync service on port 8015 {"component": "FlagSyncService"}
2025-01-15T19:41:39.378-0500    info    file/filepath_sync.go:62        Starting filepath sync notifier {"component": "sync", "sync": "fileinfo"}
2025-01-15T19:41:39.380-0500    info    ofrep/ofrep_service.go:58       ofrep service listening at 8016 {"component": "OFREPService"}
2025-01-15T19:41:39.380-0500    info    flag-evaluation/connect_service.go:249  metrics and probes listening at 8014    {"component": "service"}
2025-01-15T19:41:39.380-0500    info    flag-evaluation/connect_service.go:229  Flag IResolver listening at [::]:8013   {"component": "service"}
2025-01-15T19:41:39.381-0500    info    file/filepath_sync.go:101       watching filepath: ../config/samples/example_flags.flagd.json   {"component": "sync", "sync": "fileinfo"}
```

```console
$ go run main.go start -f file:../config/samples/example_flags.flagd.json --log-format json
{"level":"info","ts":"2025-01-15T19:41:19.857-0500","caller":"cmd/start.go:124","msg":"flagd version: dev (HEAD), built at: unknown","component":"start"}
{"level":"info","ts":"2025-01-15T19:41:19.857-0500","caller":"flag-sync/sync_service.go:87","msg":"starting flag sync service on port 8015","component":"FlagSyncService"}
{"level":"info","ts":"2025-01-15T19:41:19.861-0500","caller":"file/filepath_sync.go:62","msg":"Starting filepath sync notifier","component":"sync","sync":"fileinfo"}
{"level":"info","ts":"2025-01-15T19:41:19.863-0500","caller":"ofrep/ofrep_service.go:58","msg":"ofrep service listening at 8016","component":"OFREPService"}
{"level":"info","ts":"2025-01-15T19:41:19.863-0500","caller":"flag-evaluation/connect_service.go:249","msg":"metrics and probes listening at 8014","component":"service"}
{"level":"info","ts":"2025-01-15T19:41:19.864-0500","caller":"file/filepath_sync.go:101","msg":"watching filepath: ../config/samples/example_flags.flagd.json","component":"sync","sync":"fileinfo"}
{"level":"info","ts":"2025-01-15T19:41:19.864-0500","caller":"flag-evaluation/connect_service.go:229","msg":"Flag IResolver listening at [::]:8013","component":"service"}
```

Signed-off-by: Austin Drenski <austin@austindrenski.io>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-01-17 09:54:50 -05:00
github-actions[bot] 600ce46d61
chore: release main (#1514)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.7</summary>

##
[0.11.7](https://github.com/open-feature/flagd/compare/flagd/v0.11.6...flagd/v0.11.7)
(2025-01-16)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.3-20241220192239-696330adaff0.1
([#1513](https://github.com/open-feature/flagd/issues/1513))
([64c5787](64c57875b0))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.6
([#1515](https://github.com/open-feature/flagd/issues/1515))
([586cb62](586cb62e63))
* **sync:** fixing missing handover of ssl configuration
([#1517](https://github.com/open-feature/flagd/issues/1517))
([998a216](998a21637e))
</details>

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

##
[0.6.10](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.9...flagd-proxy/v0.6.10)
(2025-01-16)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.3-20241220192239-696330adaff0.1
([#1513](https://github.com/open-feature/flagd/issues/1513))
([64c5787](64c57875b0))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.6
([#1515](https://github.com/open-feature/flagd/issues/1515))
([586cb62](586cb62e63))
</details>

<details><summary>core: 0.10.7</summary>

##
[0.10.7](https://github.com/open-feature/flagd/compare/core/v0.10.6...core/v0.10.7)
(2025-01-16)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.3-20241220192239-696330adaff0.1
([#1513](https://github.com/open-feature/flagd/issues/1513))
([64c5787](64c57875b0))
</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>
2025-01-16 11:12:29 -05:00
Simon Schrottner 998a21637e
fix(sync): fixing missing handover of ssl configuration (#1517)
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-01-16 09:30:37 -05:00
renovate[bot] 586cb62e63
fix(deps): update module github.com/open-feature/flagd/core to v0.10.6 (#1515)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.5` -> `v0.10.6` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.5/v0.10.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.5/v0.10.6?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 01:25:22 +00:00
renovate[bot] 64c57875b0
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.3-20241220192239-696330adaff0.1 (#1513)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.2-20241220192239-696330adaff0.1` ->
`v1.36.3-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.3-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.3-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.2-20241220192239-696330adaff0.1/v1.36.3-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.2-20241220192239-696330adaff0.1/v1.36.3-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-15 21:30:17 +00:00
github-actions[bot] ada1c07099
chore: release main (#1483)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.6</summary>

##
[0.11.6](https://github.com/open-feature/flagd/compare/flagd/v0.11.5...flagd/v0.11.6)
(2025-01-15)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.17.0-20241220192239-696330adaff0.1
([#1488](https://github.com/open-feature/flagd/issues/1488))
([8e09457](8e09457d73))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.18.1-20241220192239-696330adaff0.1
([#1506](https://github.com/open-feature/flagd/issues/1506))
([b868194](b8681947bf))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.1
([#1489](https://github.com/open-feature/flagd/issues/1489))
([53add83](53add83a49))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.2
([#1492](https://github.com/open-feature/flagd/issues/1492))
([9f1d94a](9f1d94a42a))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20241220192239-696330adaff0.1
([#1490](https://github.com/open-feature/flagd/issues/1490))
([6edce72](6edce72e8c))
* **deps:** update module github.com/mattn/go-colorable to v0.1.14
([#1508](https://github.com/open-feature/flagd/issues/1508))
([87727f7](87727f7f8f))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.5
([#1482](https://github.com/open-feature/flagd/issues/1482))
([ce48cb7](ce48cb7576))
* **deps:** update module golang.org/x/net to v0.33.0 [security]
([#1486](https://github.com/open-feature/flagd/issues/1486))
([4764077](476407769f))
* **deps:** update module golang.org/x/net to v0.34.0
([#1498](https://github.com/open-feature/flagd/issues/1498))
([7584f95](7584f95e4d))
* **deps:** update module google.golang.org/grpc to v1.69.2
([#1484](https://github.com/open-feature/flagd/issues/1484))
([6b40ad3](6b40ad34c8))
* **deps:** update module google.golang.org/grpc to v1.69.4
([#1510](https://github.com/open-feature/flagd/issues/1510))
([76d6353](76d6353840))
* **deps:** update module google.golang.org/protobuf to v1.36.1
([#1491](https://github.com/open-feature/flagd/issues/1491))
([2c729a7](2c729a7c21))
* **deps:** update opentelemetry-go monorepo
([#1470](https://github.com/open-feature/flagd/issues/1470))
([26b0b1a](26b0b1af8b))


###  New Features

* add ssl support to sync service
([#1479](https://github.com/open-feature/flagd/issues/1479))
([#1501](https://github.com/open-feature/flagd/issues/1501))
([d50fcc8](d50fcc821c))
</details>

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

##
[0.6.9](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.8...flagd-proxy/v0.6.9)
(2025-01-15)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.1
([#1489](https://github.com/open-feature/flagd/issues/1489))
([53add83](53add83a49))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.2
([#1492](https://github.com/open-feature/flagd/issues/1492))
([9f1d94a](9f1d94a42a))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20241220192239-696330adaff0.1
([#1490](https://github.com/open-feature/flagd/issues/1490))
([6edce72](6edce72e8c))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.2-20241220192239-696330adaff0.1
([#1502](https://github.com/open-feature/flagd/issues/1502))
([426c36e](426c36e838))
* **deps:** update module github.com/mattn/go-colorable to v0.1.14
([#1508](https://github.com/open-feature/flagd/issues/1508))
([87727f7](87727f7f8f))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.5
([#1482](https://github.com/open-feature/flagd/issues/1482))
([ce48cb7](ce48cb7576))
* **deps:** update module golang.org/x/net to v0.33.0 [security]
([#1486](https://github.com/open-feature/flagd/issues/1486))
([4764077](476407769f))
* **deps:** update module golang.org/x/net to v0.34.0
([#1498](https://github.com/open-feature/flagd/issues/1498))
([7584f95](7584f95e4d))
* **deps:** update module google.golang.org/grpc to v1.69.2
([#1484](https://github.com/open-feature/flagd/issues/1484))
([6b40ad3](6b40ad34c8))
* **deps:** update module google.golang.org/grpc to v1.69.4
([#1510](https://github.com/open-feature/flagd/issues/1510))
([76d6353](76d6353840))
* **deps:** update opentelemetry-go monorepo
([#1470](https://github.com/open-feature/flagd/issues/1470))
([26b0b1a](26b0b1af8b))
</details>

<details><summary>core: 0.10.6</summary>

##
[0.10.6](https://github.com/open-feature/flagd/compare/core/v0.10.5...core/v0.10.6)
(2025-01-15)


### 🐛 Bug Fixes

* **deps:** update github.com/open-feature/flagd-schemas digest to
37baa2c ([#1499](https://github.com/open-feature/flagd/issues/1499))
([1a853f7](1a853f79dc))
* **deps:** update github.com/open-feature/flagd-schemas digest to
b81a56e ([#1391](https://github.com/open-feature/flagd/issues/1391))
([6a3d8ac](6a3d8ac251))
* **deps:** update golang.org/x/exp digest to 7588d65
([#1495](https://github.com/open-feature/flagd/issues/1495))
([242e594](242e59450c))
* **deps:** update golang.org/x/exp digest to b2144cd
([#1320](https://github.com/open-feature/flagd/issues/1320))
([a692b00](a692b009ae))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.1
([#1489](https://github.com/open-feature/flagd/issues/1489))
([53add83](53add83a49))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20241220192239-696330adaff0.2
([#1492](https://github.com/open-feature/flagd/issues/1492))
([9f1d94a](9f1d94a42a))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20241220192239-696330adaff0.1
([#1490](https://github.com/open-feature/flagd/issues/1490))
([6edce72](6edce72e8c))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.2-20241220192239-696330adaff0.1
([#1502](https://github.com/open-feature/flagd/issues/1502))
([426c36e](426c36e838))
* **deps:** update module connectrpc.com/connect to v1.18.1
([#1507](https://github.com/open-feature/flagd/issues/1507))
([89d3259](89d32591db))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to
v3.7.0 ([#1496](https://github.com/open-feature/flagd/issues/1496))
([e1fe149](e1fe1490fd))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to
v3.7.1 ([#1509](https://github.com/open-feature/flagd/issues/1509))
([9d06812](9d0681270f))
* **deps:** update module golang.org/x/crypto to v0.32.0
([#1497](https://github.com/open-feature/flagd/issues/1497))
([63a34d2](63a34d23ae))
* **deps:** update module google.golang.org/grpc to v1.69.2
([#1484](https://github.com/open-feature/flagd/issues/1484))
([6b40ad3](6b40ad34c8))
* **deps:** update module google.golang.org/grpc to v1.69.4
([#1510](https://github.com/open-feature/flagd/issues/1510))
([76d6353](76d6353840))
* **deps:** update opentelemetry-go monorepo
([#1470](https://github.com/open-feature/flagd/issues/1470))
([26b0b1a](26b0b1af8b))


###  New Features

* add ssl support to sync service
([#1479](https://github.com/open-feature/flagd/issues/1479))
([#1501](https://github.com/open-feature/flagd/issues/1501))
([d50fcc8](d50fcc821c))
* support flag metadata
([#1476](https://github.com/open-feature/flagd/issues/1476))
([13fbbad](13fbbad4d8))
</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>
2025-01-15 15:05:02 -05:00
aasifkhan7 13fbbad4d8
feat: support flag metadata (#1476)
- Adds functionality to return flag metadata as part of the response.

Signed-off-by: Aasif Khan <aasifk106@gmail.com>
2025-01-15 14:49:03 -05:00
renovate[bot] 26b0b1af8b
fix(deps): update opentelemetry-go monorepo (#1470)
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.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.32.0/v1.33.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.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.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.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.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.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.54.0` -> `v0.55.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.55.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.55.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.54.0/v0.55.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.54.0/v0.55.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.32.0` -> `v1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.33.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.33.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.32.0/v1.33.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.32.0/v1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.33.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.33.0):
/v0.55.0/v0.9.0/v0.0.12

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

##### Overview

##### Added

- Add `Reset` method to `SpanRecorder` in
`go.opentelemetry.io/otel/sdk/trace/tracetest`.
([#&#8203;5994](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5994))
- Add `EnabledInstrument` interface in
`go.opentelemetry.io/otel/sdk/metric/internal/x`. This is an
experimental interface that is implemented by synchronous instruments
provided by `go.opentelemetry.io/otel/sdk/metric`. Users can use it to
avoid performing computationally expensive operations when recording
measurements. It does not fall within the scope of the OpenTelemetry Go
versioning and stability [policy](./VERSIONING.md) and it may be changed
in backwards incompatible ways or removed in feature releases.
([#&#8203;6016](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6016))

##### Changed

- The default global API now supports full auto-instrumentation from the
`go.opentelemetry.io/auto` package. See that package for more
information.
([#&#8203;5920](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5920))
- Propagate non-retryable error messages to client in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;5929](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5929))
- Propagate non-retryable error messages to client in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;5929](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5929))
- Propagate non-retryable error messages to client in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;5929](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5929))
- Performance improvements for attribute value `AsStringSlice`,
`AsFloat64Slice`, `AsInt64Slice`, `AsBoolSlice`.
([#&#8203;6011](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6011))
- Change `EnabledParameters` to have a `Severity` field instead of a
getter and setter in `go.opentelemetry.io/otel/log`.
([#&#8203;6009](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6009))

##### Fixed

- Fix inconsistent request body closing in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;5954](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5954))
- Fix inconsistent request body closing in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;5954](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5954))
- Fix inconsistent request body closing in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;5954](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5954))
- Fix invalid exemplar keys in
`go.opentelemetry.io/otel/exporters/prometheus`.
([#&#8203;5995](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5995))
- Fix attribute value truncation in
`go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;5997](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5997))
- Fix attribute value truncation in `go.opentelemetry.io/otel/sdk/log`.
([#&#8203;6032](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/6032))

##### What's Changed

- fix(deps): update module google.golang.org/grpc to v1.68.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5955](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5955)
- chore(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5962](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5962)
- fix(deps): update golang.org/x/exp digest to
[`2d47ceb`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/2d47ceb)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5963](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5963)
- otlp: Clients to close body uniformly by
[@&#8203;mark-pictor-csec](https://redirect.github.com/mark-pictor-csec)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5954](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5954)
- Fix lint issues for golangci-lint 1.62.0 by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5967](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5967)
- fix(deps): update module github.com/golangci/golangci-lint to v1.62.0
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5966](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5966)
- chore(deps): update googleapis to
[`e0fbfb7`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e0fbfb7)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5971](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5971)
- chore(deps): update googleapis to
[`65e8d21`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/65e8d21)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5972](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5972)
- fix(deps): update module google.golang.org/protobuf to v1.35.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5975](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5975)
- \[chore]: enable int-conversion rule of perfsprint by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5964](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5964)
- chore(deps): update codecov/codecov-action action to v5 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5977](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5977)
- \[chore] Fix codecov action usage by
[@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5979](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5979)
- chore(deps): update codecov/codecov-action action to v5.0.2 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5981](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5981)
- \[chore]: enable all rules of perfsprint by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5978](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5978)
- Add toolchain check by
[@&#8203;cheese-head](https://redirect.github.com/cheese-head) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5983](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5983)
- \[chore] Fix VERSIONING.md missing parenthesis by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5984](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5984)
- chore(deps): update googleapis to
[`e639e21`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e639e21)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5985](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5985)
- chore(deps): update codecov/codecov-action action to v5.0.3 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5986](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5986)
- fix(deps): update module github.com/masterminds/semver/v3 to v3.3.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5987](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5987)
- Propagate non-retryable error messages to client by
[@&#8203;mark-pictor-csec](https://redirect.github.com/mark-pictor-csec)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5929](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5929)
- chore(deps): update codecov/codecov-action action to v5.0.5 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5991](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5991)
- chore(deps): update codecov/codecov-action action to v5.0.6 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5992](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5992)
- chore(deps): update codecov/codecov-action action to v5.0.7 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5993](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5993)
- Use auto-instrumentation SDK in global tracing by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5920](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5920)
- Escape exemplar keys to fix invalid key errors by
[@&#8203;dashpole](https://redirect.github.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5995](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5995)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.24.0 by [@&#8203;renovate](https://redirect.github.com/renovate)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5998](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5998)
- fix(deps): update module github.com/stretchr/testify to v1.10.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6000](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6000)
- Corrent comments for the metric data storage location by
[@&#8203;yumosx](https://redirect.github.com/yumosx) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5999](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5999)
- fix(deps): update module github.com/golangci/golangci-lint to v1.62.2
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6003](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6003)
- \[chore]: enable usestdlibvars linter by
[@&#8203;mmorel-35](https://redirect.github.com/mmorel-35) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6001](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6001)
- feat(trace): add concurrent-safe `Reset` method to `SpanRecorder` by
[@&#8203;flc1125](https://redirect.github.com/flc1125) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5994](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5994)
- Fix attribute value truncation by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5997](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5997)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest
to
[`8dc4a50`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/8dc4a50)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6005](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6005)
- Fix span option typo in SDK span End, and WithAttributes only being
available on span start by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6006](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6006)
- chore(deps): update github.com/golang/groupcache digest to
[`2c02b82`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/2c02b82)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6010](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6010)
- fix(deps): update module go.opentelemetry.io/proto/otlp to v1.4.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6013](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6013)
- chore(deps): update googleapis to
[`19429a9`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/19429a9)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6014](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6014)
- Performance improvements for attribute value `AsStringSlice`,
`AsFloat64Slice`, `AsInt64Slice`, `AsBoolSlice` by
[@&#8203;boekkooi-impossiblecloud](https://redirect.github.com/boekkooi-impossiblecloud)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/6011](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6011)
- log: Change EnabledParameters to have a field instead of getter and
setter by [@&#8203;pellared](https://redirect.github.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6009](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6009)
- chore: fix a typo in TestMeterCreatesInstruments by
[@&#8203;codeboten](https://redirect.github.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6015](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6015)
- chore(deps): update module golang.org/x/sys to v0.28.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6019](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6019)
- chore(deps): update module golang.org/x/text to v0.21.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6020](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6020)
- fix(deps): update module google.golang.org/grpc to v1.68.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6021](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6021)
- fix(deps): update golang.org/x by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6022](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6022)
- fix(deps): update module github.com/prometheus/common to v0.61.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6023](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6023)
- chore(deps): update codecov/codecov-action action to v5.1.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6024](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6024)
- chore(deps): update module go.opentelemetry.io/auto/sdk to v1.1.0 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6025](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6025)
- chore(deps): update codecov/codecov-action action to v5.1.1 by
[@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6026](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6026)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`a4fef06`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/a4fef06)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6027](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6027)
- sdk/metric: Add experimental Enabled method to synchronous instruments
by [@&#8203;codeboten](https://redirect.github.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6016](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6016)
- fix(deps): update github.com/opentracing-contrib/go-grpc/test digest
to
[`ca80a95`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/ca80a95)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6029](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6029)
- chore(deps): update googleapis to
[`e6fa225`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/e6fa225)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6028](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6028)
- fix(deps): update golang.org/x/exp digest to
[`1829a12`](https://redirect.github.com/open-telemetry/opentelemetry-go/commit/1829a12)
by [@&#8203;renovate](https://redirect.github.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6031](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6031)
- Cache successful requests in lychee by
[@&#8203;dmathieu](https://redirect.github.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6030](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6030)
- Fix sdk/log record attr value limit by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6032](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6032)
- Release v1.33.0 by
[@&#8203;MrAlias](https://redirect.github.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/6035](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/6035)

##### New Contributors

-
[@&#8203;mark-pictor-csec](https://redirect.github.com/mark-pictor-csec)
made their first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5954](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5954)
- [@&#8203;cheese-head](https://redirect.github.com/cheese-head) made
their first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5983](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5983)
- [@&#8203;yumosx](https://redirect.github.com/yumosx) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5999](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5999)
- [@&#8203;flc1125](https://redirect.github.com/flc1125) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5994](https://redirect.github.com/open-telemetry/opentelemetry-go/pull/5994)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.32.0...v1.33.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:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 09:17:24 -05:00
renovate[bot] 76d6353840
fix(deps): update module google.golang.org/grpc to v1.69.4 (#1510)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### Bug Fixes

- rbac: fix support for :path header matchers, which would previously
never successfully match
([#&#8203;7965](https://redirect.github.com/grpc/grpc-go/issues/7965)).

### Documentation

- examples/features/csm_observability: update example client and server
to use the helloworld service instead of echo service
([#&#8203;7945](https://redirect.github.com/grpc/grpc-go/issues/7945)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 13:05:52 +00:00
renovate[bot] 9d0681270f
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.1 (#1509)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.7.0` -> `v3.7.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.0/v3.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.0/v3.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.7.1`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.1)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.7.0...v3.7.1)

#### What's Changed

- Ensure empty slices have the same behavior as empty strings by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/97](https://redirect.github.com/diegoholiveira/jsonlogic/pull/97)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.7.0...v3.7.1

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-12 21:01:37 +00:00
renovate[bot] 7584f95e4d
fix(deps): update module golang.org/x/net to v0.34.0 (#1498)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 06:20:05 +00:00
renovate[bot] 63a34d23ae
fix(deps): update module golang.org/x/crypto to v0.32.0 (#1497)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 02:38:01 +00:00
renovate[bot] 89d32591db
fix(deps): update module connectrpc.com/connect to v1.18.1 (#1507)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[connectrpc.com/connect](https://redirect.github.com/connectrpc/connect-go)
| `v1.17.0` -> `v1.18.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/connectrpc.com%2fconnect/v1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/connectrpc.com%2fconnect/v1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/connectrpc.com%2fconnect/v1.17.0/v1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/connectrpc.com%2fconnect/v1.17.0/v1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>connectrpc/connect-go (connectrpc.com/connect)</summary>

###
[`v1.18.1`](https://redirect.github.com/connectrpc/connect-go/releases/tag/v1.18.1)

[Compare
Source](https://redirect.github.com/connectrpc/connect-go/compare/v1.18.0...v1.18.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Bugfixes

- Fix protoc-gen-connect-go schema variable case handling by
[@&#8203;emcfarlane](https://redirect.github.com/emcfarlane) in
[https://github.com/connectrpc/connect-go/pull/808](https://redirect.github.com/connectrpc/connect-go/pull/808)

**Full Changelog**:
https://github.com/connectrpc/connect-go/compare/v1.18.0...v1.18.1

###
[`v1.18.0`](https://redirect.github.com/connectrpc/connect-go/releases/tag/v1.18.0)

[Compare
Source](https://redirect.github.com/connectrpc/connect-go/compare/v1.17.0...v1.18.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### Enhancements

- Add `package_suffix` option to `protoc-gen-connect-go` to allow
specifying the output directory of generated code by
[@&#8203;bufdev](https://redirect.github.com/bufdev) and
[@&#8203;emcfarlane](https://redirect.github.com/emcfarlane) in
[https://github.com/connectrpc/connect-go/pull/803](https://redirect.github.com/connectrpc/connect-go/pull/803)
- Change stream client closures to be non-blocking by
[@&#8203;emcfarlane](https://redirect.github.com/emcfarlane) in
[https://github.com/connectrpc/connect-go/pull/791](https://redirect.github.com/connectrpc/connect-go/pull/791)

##### Other changes

- Fix comment typo spelling of optimize by
[@&#8203;yoshihiro-shu](https://redirect.github.com/yoshihiro-shu) in
[https://github.com/connectrpc/connect-go/pull/786](https://redirect.github.com/connectrpc/connect-go/pull/786)
- Remove reader allocation for compressors pools by
[@&#8203;emcfarlane](https://redirect.github.com/emcfarlane) in
[https://github.com/connectrpc/connect-go/pull/792](https://redirect.github.com/connectrpc/connect-go/pull/792)

#### New Contributors

- [@&#8203;yoshihiro-shu](https://redirect.github.com/yoshihiro-shu)
made their first contribution in
[https://github.com/connectrpc/connect-go/pull/786](https://redirect.github.com/connectrpc/connect-go/pull/786)

**Full Changelog**:
https://github.com/connectrpc/connect-go/compare/v1.17.0...v1.18.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 23:11:06 +00:00
renovate[bot] 87727f7f8f
fix(deps): update module github.com/mattn/go-colorable to v0.1.14 (#1508)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/mattn/go-colorable](https://redirect.github.com/mattn/go-colorable)
| `v0.1.13` -> `v0.1.14` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmattn%2fgo-colorable/v0.1.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fmattn%2fgo-colorable/v0.1.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fmattn%2fgo-colorable/v0.1.13/v0.1.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmattn%2fgo-colorable/v0.1.13/v0.1.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mattn/go-colorable (github.com/mattn/go-colorable)</summary>

###
[`v0.1.14`](https://redirect.github.com/mattn/go-colorable/compare/v0.1.13...v0.1.14)

[Compare
Source](https://redirect.github.com/mattn/go-colorable/compare/v0.1.13...v0.1.14)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 18:32:45 +00:00
Todd Baert 6c78080c3c
docs: flag and flag-set metadata (#1505)
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-01-10 10:29:45 -05:00
renovate[bot] 426c36e838
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.2-20241220192239-696330adaff0.1 (#1502)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.1-20241220192239-696330adaff0.1` ->
`v1.36.2-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.2-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.2-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.1-20241220192239-696330adaff0.1/v1.36.2-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.1-20241220192239-696330adaff0.1/v1.36.2-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 13:42:48 +00:00
renovate[bot] 242e59450c
fix(deps): update golang.org/x/exp digest to 7588d65 (#1495)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `b2144cd` -> `7588d65` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 10:22:50 +00:00
renovate[bot] b8681947bf
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.18.1-20241220192239-696330adaff0.1 (#1506)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.17.0-20241220192239-696330adaff0.1` ->
`v1.18.1-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.18.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20241220192239-696330adaff0.1/v1.18.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20241220192239-696330adaff0.1/v1.18.1-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 05:15:08 +00:00
renovate[bot] 1a853f79dc
fix(deps): update github.com/open-feature/flagd-schemas digest to 37baa2c (#1499)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `b81a56e` -> `37baa2c` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 03:07:19 +00:00
renovate[bot] e1fe1490fd
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.0 (#1496)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.6.1` -> `v3.7.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.1/v3.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.1/v3.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.7.0`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.7.0)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.6.1...v3.7.0)

#### What's Changed

- Mark `ApplyInterface` as public method by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/94](https://redirect.github.com/diegoholiveira/jsonlogic/pull/94)
- Go 1.18 as minimum requirement by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira) in
[https://github.com/diegoholiveira/jsonlogic/pull/95](https://redirect.github.com/diegoholiveira/jsonlogic/pull/95)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.6.1...v3.7.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 16:26:11 -05:00
alexandraoberaigner d50fcc821c
feat: add ssl support to sync service (#1479) (#1501)
Adds SSL support to the flagd sync service

---------

Signed-off-by: Alexandra Oberaigner <alexandra.oberaigner@dynatrace.com>
Co-authored-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-01-09 15:44:58 -05:00
Michael Beemer 9891df2d0c
chore: bump flagd-core in playground, add metadata example, fix doc links
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-01-07 20:52:31 +00:00
Dave Josephsen b2471b8ddb
docs: Add docs for s3 blobs (#1477)
## This PR
Intent of this PR is to add the docs that were missing from #1449 

### Notes
Happy holidays yall.

---------

Signed-off-by: Dave Josephsen <dave.josephsen@gmail.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-12-31 07:59:34 -05:00
renovate[bot] a692b009ae
fix(deps): update golang.org/x/exp digest to b2144cd (#1320)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang.org/x/exp | require | digest | `9bf2ced` -> `b2144cd` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM5Ljg1LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 02:31:09 +00:00
renovate[bot] 6a3d8ac251
fix(deps): update github.com/open-feature/flagd-schemas digest to b81a56e (#1391)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-feature/flagd-schemas](https://redirect.github.com/open-feature/flagd-schemas)
| require | digest | `2aa89b3` -> `b81a56e` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-29 22:03:45 +00:00
Simon Schrottner fdf8df6bc2
build(renovate): Utilize default OpenFeature Renovate configuration (#1494)
We do have a default OpenFeature Renovate configuration within our
community-tooling repository.
(https://github.com/open-feature/community-tooling/blob/main/renovate.json)

To reduce maintenance efforts, we should stick to the general one as a
basis.

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2024-12-29 15:19:26 -05:00
renovate[bot] 9f1d94a42a
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20241220192239-696330adaff0.2 (#1492)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.5.1-20241220192239-696330adaff0.1` ->
`v1.5.1-20241220192239-696330adaff0.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.1/v1.5.1-20241220192239-696330adaff0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.1/v1.5.1-20241220192239-696330adaff0.2?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:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-24 21:51:11 +00:00
renovate[bot] 2c729a7c21
fix(deps): update module google.golang.org/protobuf to v1.36.1 (#1491)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.36.1`](https://redirect.github.com/protocolbuffers/protobuf-go/releases/tag/v1.36.1)

[Compare
Source](https://redirect.github.com/protocolbuffers/protobuf-go/compare/v1.36.0...v1.36.1)

**Full Changelog**:
https://github.com/protocolbuffers/protobuf-go/compare/v1.36.0...v1.36.1

Bug fixes:
[CL/638495](https://go-review.googlesource.com/c/protobuf/+/638495):
internal/impl: revert IsSynthetic() check to fix panic

Maintenance:
[CL/637475](https://go-review.googlesource.com/c/protobuf/+/637475):
internal/errors: delete compatibility code for Go before 1.13

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-23 16:34:43 +00:00
renovate[bot] 6edce72e8c
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.0-20241220192239-696330adaff0.1 (#1490)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.36.0-20240906125204-0a6a901b42e8.1` ->
`v1.36.0-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20240906125204-0a6a901b42e8.1/v1.36.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20240906125204-0a6a901b42e8.1/v1.36.0-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 08:13:23 +00:00
renovate[bot] 53add83a49
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20241220192239-696330adaff0.1 (#1489)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.5.1-20240906125204-0a6a901b42e8.1` ->
`v1.5.1-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1/v1.5.1-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1/v1.5.1-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 04:15:18 +00:00
renovate[bot] 8e09457d73
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.17.0-20241220192239-696330adaff0.1 (#1488)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.17.0-20240906125204-0a6a901b42e8.1` ->
`v1.17.0-20241220192239-696330adaff0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20240906125204-0a6a901b42e8.1/v1.17.0-20241220192239-696330adaff0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20240906125204-0a6a901b42e8.1/v1.17.0-20241220192239-696330adaff0.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 02:14:31 +00:00
Simon Schrottner 35d286afab
feat(spec): from grace attempts to grace period, plus connection info (#1478)
updating specification based on findings in
https://github.com/open-feature/flagd/issues/1472

---------

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Co-authored-by: chrfwow <christian.lutnik@dynatrace.com>
2024-12-19 12:20:41 -05:00
renovate[bot] 476407769f
fix(deps): update module golang.org/x/net to v0.33.0 [security] (#1486)
This PR contains the following updates:

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

### GitHub Vulnerability Alerts

#### [CVE-2024-45338](https://nvd.nist.gov/vuln/detail/CVE-2024-45338)

An attacker can craft an input to the Parse functions that would be
processed non-linearly with respect to its length, resulting in
extremely slow parsing. This could cause a denial of service.

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), 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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 03:47:18 +00:00
renovate[bot] 6b40ad34c8
fix(deps): update module google.golang.org/grpc to v1.69.2 (#1484)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### Bug Fixes

- stats/experimental: add type aliases for symbols (`Metrics`/etc) that
were moved to the stats package
([#&#8203;7929](https://redirect.github.com/grpc/grpc-go/issues/7929)).
-   client: set user-agent string to the correct version.

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 23:57:52 +00:00
renovate[bot] ce48cb7576
fix(deps): update module github.com/open-feature/flagd/core to v0.10.5 (#1482)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.4` -> `v0.10.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.4/v0.10.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.4/v0.10.5?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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 20:30:54 +00:00
github-actions[bot] dfd2af993f
chore: release main (#1437)
🤖 I have created a release *beep* *boop*
---


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

##
[0.11.5](https://github.com/open-feature/flagd/compare/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](https://github.com/open-feature/flagd/issues/1451))
([8c6d91d](8c6d91d538))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20240906125204-0a6a901b42e8.1
([#1475](https://github.com/open-feature/flagd/issues/1475))
([0b11c6c](0b11c6cf61))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.4
([#1433](https://github.com/open-feature/flagd/issues/1433))
([d33c7a5](d33c7a5522))
* **deps:** update module github.com/stretchr/testify to v1.10.0
([#1455](https://github.com/open-feature/flagd/issues/1455))
([8c843df](8c843df771))
* **deps:** update module golang.org/x/net to v0.31.0
([#1446](https://github.com/open-feature/flagd/issues/1446))
([9e35111](9e351117b4))
* **deps:** update module golang.org/x/net to v0.32.0
([#1458](https://github.com/open-feature/flagd/issues/1458))
([ac0b123](ac0b123ce8))
* **deps:** update module golang.org/x/sync to v0.9.0
([#1445](https://github.com/open-feature/flagd/issues/1445))
([8893e94](8893e94b94))
* **deps:** update module google.golang.org/grpc to v1.68.0
([#1442](https://github.com/open-feature/flagd/issues/1442))
([cd27d09](cd27d098e6))
* **deps:** update module google.golang.org/grpc to v1.68.1
([#1456](https://github.com/open-feature/flagd/issues/1456))
([0b6e2a1](0b6e2a1cd6))
* **deps:** update module google.golang.org/grpc to v1.69.0
([#1469](https://github.com/open-feature/flagd/issues/1469))
([dd4869f](dd4869f5e0))
* **deps:** update module google.golang.org/protobuf to v1.35.2
([#1450](https://github.com/open-feature/flagd/issues/1450))
([6b9834d](6b9834d4b3))
* **deps:** update module google.golang.org/protobuf to v1.36.0
([#1474](https://github.com/open-feature/flagd/issues/1474))
([6a8a9a9](6a8a9a981c))
* **deps:** update opentelemetry-go monorepo
([#1447](https://github.com/open-feature/flagd/issues/1447))
([68b5794](68b5794180))


###  New Features

* add context-value flag
([#1448](https://github.com/open-feature/flagd/issues/1448))
([7ca092e](7ca092e478))
</details>

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

##
[0.6.8](https://github.com/open-feature/flagd/compare/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](https://github.com/open-feature/flagd/issues/1451))
([8c6d91d](8c6d91d538))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.36.0-20240906125204-0a6a901b42e8.1
([#1475](https://github.com/open-feature/flagd/issues/1475))
([0b11c6c](0b11c6cf61))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.4
([#1433](https://github.com/open-feature/flagd/issues/1433))
([d33c7a5](d33c7a5522))
* **deps:** update module golang.org/x/net to v0.31.0
([#1446](https://github.com/open-feature/flagd/issues/1446))
([9e35111](9e351117b4))
* **deps:** update module golang.org/x/net to v0.32.0
([#1458](https://github.com/open-feature/flagd/issues/1458))
([ac0b123](ac0b123ce8))
* **deps:** update module golang.org/x/sync to v0.9.0
([#1445](https://github.com/open-feature/flagd/issues/1445))
([8893e94](8893e94b94))
* **deps:** update module google.golang.org/grpc to v1.68.0
([#1442](https://github.com/open-feature/flagd/issues/1442))
([cd27d09](cd27d098e6))
* **deps:** update module google.golang.org/grpc to v1.68.1
([#1456](https://github.com/open-feature/flagd/issues/1456))
([0b6e2a1](0b6e2a1cd6))
* **deps:** update module google.golang.org/grpc to v1.69.0
([#1469](https://github.com/open-feature/flagd/issues/1469))
([dd4869f](dd4869f5e0))
* **deps:** update opentelemetry-go monorepo
([#1447](https://github.com/open-feature/flagd/issues/1447))
([68b5794](68b5794180))
</details>

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

##
[0.10.5](https://github.com/open-feature/flagd/compare/core/v0.10.4...core/v0.10.5)
(2024-12-17)


### 🐛 Bug Fixes

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


###  New Features

* add context-value flag
([#1448](https://github.com/open-feature/flagd/issues/1448))
([7ca092e](7ca092e478))
* s3 support for the blob sync
([#1449](https://github.com/open-feature/flagd/issues/1449))
([a9f7261](a9f7261e75))
</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>
2024-12-18 11:05:24 -05:00
renovate[bot] 0b11c6cf61
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.0-20240906125204-0a6a901b42e8.1 (#1475)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.35.2-20240906125204-0a6a901b42e8.1` ->
`v1.36.0-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.36.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.2-20240906125204-0a6a901b42e8.1/v1.36.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.2-20240906125204-0a6a901b42e8.1/v1.36.0-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS42OS4zIiwidXBkYXRlZEluVmVyIjoiMzkuNjkuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 00:45:11 +00:00
renovate[bot] 6a8a9a981c
fix(deps): update module google.golang.org/protobuf to v1.36.0 (#1474)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.36.0`](https://redirect.github.com/protocolbuffers/protobuf-go/releases/tag/v1.36.0)

[Compare
Source](https://redirect.github.com/protocolbuffers/protobuf-go/compare/v1.35.2...v1.36.0)

**Full Changelog**:
https://github.com/protocolbuffers/protobuf-go/compare/v1.35.2...v1.36.0

User-visible changes:

[CL/635139](https://go-review.googlesource.com/c/protobuf/+/635139):
src/google/protobuf: document UnmarshalJSON / API level behavior
[CL/635138](https://go-review.googlesource.com/c/protobuf/+/635138):
reflect/protoreflect: use \[] syntax to reference method
[CL/635137](https://go-review.googlesource.com/c/protobuf/+/635137):
proto: add reference to size semantics with lazy decoding to comment
[CL/634818](https://go-review.googlesource.com/c/protobuf/+/634818):
compiler/protogen: allow overriding API level from --go_opt
[CL/634817](https://go-review.googlesource.com/c/protobuf/+/634817):
cmd/protoc-gen-go: generate \_protoopaque variant for hybrid
[CL/634816](https://go-review.googlesource.com/c/protobuf/+/634816):
all: regenerate.bash for Opaque API
[CL/634815](https://go-review.googlesource.com/c/protobuf/+/634815):
all: Release the Opaque API
[CL/634015](https://go-review.googlesource.com/c/protobuf/+/634015):
types/descriptorpb: regenerate using latest protobuf v29.1 release
[CL/632735](https://go-review.googlesource.com/c/protobuf/+/632735):
internal/impl: skip synthetic oneofs in messageInfo
[CL/627876](https://go-review.googlesource.com/c/protobuf/+/627876):
all: start v1.35.2-devel

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS42OS4zIiwidXBkYXRlZEluVmVyIjoiMzkuNjkuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 21:30:10 +00:00
renovate[bot] a3d899c5f8
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.6.1 (#1473)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.6.0` -> `v3.6.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.0/v3.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.0/v3.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.6.1`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.6.1)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.6.0...v3.6.1)

#### What's Changed

- chore(jsonlogic): Modified the logic to evaluate 'and' & 'or' lazily
by [@&#8203;cupofcat](https://redirect.github.com/cupofcat) in
[https://github.com/diegoholiveira/jsonlogic/pull/92](https://redirect.github.com/diegoholiveira/jsonlogic/pull/92)

#### New Contributors

- [@&#8203;cupofcat](https://redirect.github.com/cupofcat) made their
first contribution in
[https://github.com/diegoholiveira/jsonlogic/pull/92](https://redirect.github.com/diegoholiveira/jsonlogic/pull/92)

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.6.0...v3.6.1

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS42OS4zIiwidXBkYXRlZEluVmVyIjoiMzkuNjkuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 18:02:53 +00:00
renovate[bot] dd4869f5e0
fix(deps): update module google.golang.org/grpc to v1.69.0 (#1469)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### Known Issues

- The recently added `grpc.NewClient` function is incompatible with
forward proxies, because it resolves the target hostname on the client
instead of passing the hostname to the proxy. A fix is expected to be a
part of grpc-go v1.70.
([#&#8203;7556](https://redirect.github.com/grpc/grpc-go/issues/7556))

### New Features

- stats/opentelemetry: Introduce new APIs to enable OpenTelemetry
instrumentation for metrics on servers and clients
([#&#8203;7874](https://redirect.github.com/grpc/grpc-go/issues/7874))
- xdsclient: add support to fallback to lower priority servers when
higher priority ones are down
([#&#8203;7701](https://redirect.github.com/grpc/grpc-go/issues/7701))
- dns: Add support for link local IPv6 addresses
([#&#8203;7889](https://redirect.github.com/grpc/grpc-go/issues/7889))
- The new experimental `pickfirst` LB policy (disabled by default)
supports Happy Eyeballs, interleaving IPv4 and IPv6 address as described
in [RFC-8305 section
4](https://www.rfc-editor.org/rfc/rfc8305#section-4), to attempt
connections to multiple backends concurrently. The experimental
`pickfirst` policy can be enabled by setting the environment variable
`GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST` to `true`.
([#&#8203;7725](https://redirect.github.com/grpc/grpc-go/issues/7725),
[#&#8203;7742](https://redirect.github.com/grpc/grpc-go/issues/7742))
- balancer/pickfirst: Emit metrics from the `pick_first` load balancing
policy
([#&#8203;7839](https://redirect.github.com/grpc/grpc-go/issues/7839))
- grpc: export `MethodHandler`, which is the type of an already-exported
field in `MethodDesc`
([#&#8203;7796](https://redirect.github.com/grpc/grpc-go/issues/7796))
- Special Thanks:
[@&#8203;mohdjishin](https://redirect.github.com/mohdjishin)

### Bug Fixes

- credentials/google: set scope for application default credentials
([#&#8203;7887](https://redirect.github.com/grpc/grpc-go/issues/7887))
- Special Thanks:
[@&#8203;halvards](https://redirect.github.com/halvards)
- xds: fix edge-case issues where some clients or servers would not
initialize correctly or would not receive errors when resources are
invalid or unavailable if another channel or server with the same target
was already in use .
([#&#8203;7851](https://redirect.github.com/grpc/grpc-go/issues/7851),
[#&#8203;7853](https://redirect.github.com/grpc/grpc-go/issues/7853))
- examples: fix the debugging example, which was broken by a recent
change
([#&#8203;7833](https://redirect.github.com/grpc/grpc-go/issues/7833))

### Behavior Changes

- client: update retry attempt backoff to apply jitter per updates to
[gRFC
A6](https://redirect.github.com/grpc/proposal/blob/master/A6-client-retries.md).
([#&#8203;7869](https://redirect.github.com/grpc/grpc-go/issues/7869))
    -   Special Thanks: [@&#8203;isgj](https://redirect.github.com/isgj)
- balancer/weightedroundrobin: use the `pick_first` LB policy to manage
connections
([#&#8203;7826](https://redirect.github.com/grpc/grpc-go/issues/7826))

### API Changes

- balancer: An internal method is added to the `balancer.SubConn`
interface to force implementors to embed a delegate implementation. This
requirement is present in the interface documentation, but wasn't
enforced earlier.
([#&#8203;7840](https://redirect.github.com/grpc/grpc-go/issues/7840))

### Performance Improvements

- mem: implement a `ReadAll()` method for more efficient `io.Reader`
consumption
([#&#8203;7653](https://redirect.github.com/grpc/grpc-go/issues/7653))
- Special Thanks: [@&#8203;ash2k](https://redirect.github.com/ash2k)
- mem: use slice capacity instead of length to determine whether to pool
buffers or directly allocate them
([#&#8203;7702](https://redirect.github.com/grpc/grpc-go/issues/7702))
- Special Thanks:
[@&#8203;PapaCharlie](https://redirect.github.com/PapaCharlie)

### Documentation

- examples/csm_observability: Add xDS Credentials and switch server to
be xDS enabled
([#&#8203;7875](https://redirect.github.com/grpc/grpc-go/issues/7875))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 23:32:23 +00:00
renovate[bot] b2245d7f73
fix(deps): update module golang.org/x/crypto to v0.31.0 (#1463)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 00:33:08 +00:00
Dave Josephsen a9f7261e75
feat: s3 support for the blob sync (#1449)
## This PR
Intent of this pr is to add S3 bucket support to the existing "blob"
sync.

### Related Issues
fixes #1376 

### Notes
Marking as a draft for now until I can find my aws creds and live-test
it.

### Follow-up Tasks
integration testing is yet to be performed

### How to test
unit tests provided

Signed-off-by: Dave Josephsen <dave.josephsen@gmail.com>
2024-12-11 16:06:36 -05:00
renovate[bot] 431fbb4951
fix(deps): update kubernetes packages to v0.31.4 (#1461)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[k8s.io/apimachinery](https://redirect.github.com/kubernetes/apimachinery)
| `v0.31.3` -> `v0.31.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fapimachinery/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fapimachinery/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fapimachinery/v0.31.3/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fapimachinery/v0.31.3/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [k8s.io/client-go](https://redirect.github.com/kubernetes/client-go) |
`v0.31.3` -> `v0.31.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fclient-go/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fclient-go/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fclient-go/v0.31.3/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fclient-go/v0.31.3/v0.31.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kubernetes/apimachinery (k8s.io/apimachinery)</summary>

###
[`v0.31.4`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.3...v0.31.4)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.3...v0.31.4)

</details>

<details>
<summary>kubernetes/client-go (k8s.io/client-go)</summary>

###
[`v0.31.4`](https://redirect.github.com/kubernetes/client-go/compare/v0.31.3...v0.31.4)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.31.3...v0.31.4)

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-11 07:50:38 +00:00
renovate[bot] dbc1da4ba9
fix(deps): update module github.com/diegoholiveira/jsonlogic/v3 to v3.6.0 (#1460)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/diegoholiveira/jsonlogic/v3](https://redirect.github.com/diegoholiveira/jsonlogic)
| `v3.5.3` -> `v3.6.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.5.3/v3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdiegoholiveira%2fjsonlogic%2fv3/v3.5.3/v3.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>diegoholiveira/jsonlogic
(github.com/diegoholiveira/jsonlogic/v3)</summary>

###
[`v3.6.0`](https://redirect.github.com/diegoholiveira/jsonlogic/releases/tag/v3.6.0)

[Compare
Source](https://redirect.github.com/diegoholiveira/jsonlogic/compare/v3.5.3...v3.6.0)

#### What's Changed

- Make `ApplyInterface` private by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)
([39698be5f2)
- Remove non canonical in_sorted operator by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)
([a76f68e449)
- Allow in to be called with one parameter only by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)

[2fc6d72ef3
- Allow variables on reduce operator by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)

[2cc20c21b0
- Make `==` operator behave like `==` from spec by
[@&#8203;diegoholiveira](https://redirect.github.com/diegoholiveira)

[800dac4bf9

**Full Changelog**:
https://github.com/diegoholiveira/jsonlogic/compare/v3.5.3...v3.6.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-10 02:27:31 +00:00
renovate[bot] ac0b123ce8
fix(deps): update module golang.org/x/net to v0.32.0 (#1458)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-07 02:34:32 +00:00
renovate[bot] dbdaa199f0
fix(deps): update module golang.org/x/crypto to v0.30.0 (#1457)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 21:18:08 +00:00
renovate[bot] 0b6e2a1cd6
fix(deps): update module google.golang.org/grpc to v1.68.1 (#1456)
This PR contains the following updates:

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

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

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

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

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

### Bug Fixes

- credentials/alts: avoid SRV and TXT lookups for handshaker service to
work around hangs caused by buggy versions of systemd-resolved.
([#&#8203;7861](https://redirect.github.com/grpc/grpc-go/issues/7861))

### Dependencies

- Relax minimum Go version requirement from `go1.22.7` to `go1.22`.
([#&#8203;7831](https://redirect.github.com/grpc/grpc-go/issues/7831))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 19:50:29 +00:00
Aleksei 7ca092e478
feat: add context-value flag (#1448)
- add the `--context-value` command line flag to pass arbitrary key
value pairs to the evaluation context

Signed-off-by: Aleksei Muratov <muratoff.alexey@gmail.com>
2024-12-05 11:05:46 -05:00
Todd Baert f7dd1eb630
docs: fix copy-pasted requirement
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-12-04 14:49:35 -05:00
renovate[bot] 8c843df771
fix(deps): update module github.com/stretchr/testify to v1.10.0 (#1455)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/stretchr/testify](https://redirect.github.com/stretchr/testify)
| `v1.9.0` -> `v1.10.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fstretchr%2ftestify/v1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fstretchr%2ftestify/v1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fstretchr%2ftestify/v1.9.0/v1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fstretchr%2ftestify/v1.9.0/v1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>stretchr/testify (github.com/stretchr/testify)</summary>

###
[`v1.10.0`](https://redirect.github.com/stretchr/testify/releases/tag/v1.10.0)

[Compare
Source](https://redirect.github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

#### What's Changed

##### Functional Changes

- Add PanicAssertionFunc by
[@&#8203;fahimbagar](https://redirect.github.com/fahimbagar) in
[https://github.com/stretchr/testify/pull/1337](https://redirect.github.com/stretchr/testify/pull/1337)
- assert: deprecate CompareType by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1566](https://redirect.github.com/stretchr/testify/pull/1566)
- assert: make YAML dependency pluggable via build tags by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1579](https://redirect.github.com/stretchr/testify/pull/1579)
- assert: new assertion NotElementsMatch by
[@&#8203;hendrywiranto](https://redirect.github.com/hendrywiranto) in
[https://github.com/stretchr/testify/pull/1600](https://redirect.github.com/stretchr/testify/pull/1600)
- mock: in order mock calls by
[@&#8203;ReyOrtiz](https://redirect.github.com/ReyOrtiz) in
[https://github.com/stretchr/testify/pull/1637](https://redirect.github.com/stretchr/testify/pull/1637)
- Add assertion for NotErrorAs by
[@&#8203;palsivertsen](https://redirect.github.com/palsivertsen) in
[https://github.com/stretchr/testify/pull/1129](https://redirect.github.com/stretchr/testify/pull/1129)
- Record Return Arguments of a Call by
[@&#8203;jayd3e](https://redirect.github.com/jayd3e) in
[https://github.com/stretchr/testify/pull/1636](https://redirect.github.com/stretchr/testify/pull/1636)
- assert.EqualExportedValues: accepts everything by
[@&#8203;redachl](https://redirect.github.com/redachl) in
[https://github.com/stretchr/testify/pull/1586](https://redirect.github.com/stretchr/testify/pull/1586)

##### Fixes

- assert: make tHelper a type alias by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1562](https://redirect.github.com/stretchr/testify/pull/1562)
- Do not get argument again unnecessarily in Arguments.Error() by
[@&#8203;TomWright](https://redirect.github.com/TomWright) in
[https://github.com/stretchr/testify/pull/820](https://redirect.github.com/stretchr/testify/pull/820)
- Fix time.Time compare by
[@&#8203;myxo](https://redirect.github.com/myxo) in
[https://github.com/stretchr/testify/pull/1582](https://redirect.github.com/stretchr/testify/pull/1582)
- assert.Regexp: handle \[]byte array properly by
[@&#8203;kevinburkesegment](https://redirect.github.com/kevinburkesegment)
in
[https://github.com/stretchr/testify/pull/1587](https://redirect.github.com/stretchr/testify/pull/1587)
- assert: collect.FailNow() should not panic by
[@&#8203;marshall-lee](https://redirect.github.com/marshall-lee) in
[https://github.com/stretchr/testify/pull/1481](https://redirect.github.com/stretchr/testify/pull/1481)
- mock: simplify implementation of FunctionalOptions by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1571](https://redirect.github.com/stretchr/testify/pull/1571)
- mock: caller information for unexpected method call by
[@&#8203;spirin](https://redirect.github.com/spirin) in
[https://github.com/stretchr/testify/pull/1644](https://redirect.github.com/stretchr/testify/pull/1644)
- suite: fix test failures by
[@&#8203;stevenh](https://redirect.github.com/stevenh) in
[https://github.com/stretchr/testify/pull/1421](https://redirect.github.com/stretchr/testify/pull/1421)
- Fix issue
[#&#8203;1662](https://redirect.github.com/stretchr/testify/issues/1662)
(comparing infs should fail) by
[@&#8203;ybrustin](https://redirect.github.com/ybrustin) in
[https://github.com/stretchr/testify/pull/1663](https://redirect.github.com/stretchr/testify/pull/1663)
- NotSame should fail if args are not pointers
[#&#8203;1661](https://redirect.github.com/stretchr/testify/issues/1661)
by [@&#8203;sikehish](https://redirect.github.com/sikehish) in
[https://github.com/stretchr/testify/pull/1664](https://redirect.github.com/stretchr/testify/pull/1664)
- Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI
by [@&#8203;sikehish](https://redirect.github.com/sikehish) in
[https://github.com/stretchr/testify/pull/1667](https://redirect.github.com/stretchr/testify/pull/1667)
- fix: compare functional option names for indirect calls by
[@&#8203;arjun-1](https://redirect.github.com/arjun-1) in
[https://github.com/stretchr/testify/pull/1626](https://redirect.github.com/stretchr/testify/pull/1626)

##### Documantation, Build & CI

- .gitignore: ignore "go test -c" binaries by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1565](https://redirect.github.com/stretchr/testify/pull/1565)
- mock: improve doc by
[@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1570](https://redirect.github.com/stretchr/testify/pull/1570)
- mock: fix FunctionalOptions docs by
[@&#8203;snirye](https://redirect.github.com/snirye) in
[https://github.com/stretchr/testify/pull/1433](https://redirect.github.com/stretchr/testify/pull/1433)
- README: link out to the excellent testifylint by
[@&#8203;brackendawson](https://redirect.github.com/brackendawson) in
[https://github.com/stretchr/testify/pull/1568](https://redirect.github.com/stretchr/testify/pull/1568)
- assert: fix typo in comment by
[@&#8203;JohnEndson](https://redirect.github.com/JohnEndson) in
[https://github.com/stretchr/testify/pull/1580](https://redirect.github.com/stretchr/testify/pull/1580)
- Correct the EventuallyWithT and EventuallyWithTf example by
[@&#8203;JonCrowther](https://redirect.github.com/JonCrowther) in
[https://github.com/stretchr/testify/pull/1588](https://redirect.github.com/stretchr/testify/pull/1588)
- CI: bump softprops/action-gh-release from 1 to 2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/stretchr/testify/pull/1575](https://redirect.github.com/stretchr/testify/pull/1575)
- mock: document more alternatives to deprecated AnythingOfTypeArgument
by [@&#8203;dolmen](https://redirect.github.com/dolmen) in
[https://github.com/stretchr/testify/pull/1569](https://redirect.github.com/stretchr/testify/pull/1569)
- assert: Correctly document EqualValues behavior by
[@&#8203;brackendawson](https://redirect.github.com/brackendawson) in
[https://github.com/stretchr/testify/pull/1593](https://redirect.github.com/stretchr/testify/pull/1593)
- fix: grammar in godoc by
[@&#8203;miparnisari](https://redirect.github.com/miparnisari) in
[https://github.com/stretchr/testify/pull/1607](https://redirect.github.com/stretchr/testify/pull/1607)
- .github/workflows: Run tests for Go 1.22 by
[@&#8203;HaraldNordgren](https://redirect.github.com/HaraldNordgren) in
[https://github.com/stretchr/testify/pull/1629](https://redirect.github.com/stretchr/testify/pull/1629)
- Document suite's lack of support for t.Parallel by
[@&#8203;brackendawson](https://redirect.github.com/brackendawson) in
[https://github.com/stretchr/testify/pull/1645](https://redirect.github.com/stretchr/testify/pull/1645)
- assert: fix typos in comments by
[@&#8203;alexandear](https://redirect.github.com/alexandear) in
[https://github.com/stretchr/testify/pull/1650](https://redirect.github.com/stretchr/testify/pull/1650)
- mock: fix doc comment for NotBefore by
[@&#8203;alexandear](https://redirect.github.com/alexandear) in
[https://github.com/stretchr/testify/pull/1651](https://redirect.github.com/stretchr/testify/pull/1651)
- Generate better comments for require package by
[@&#8203;Neokil](https://redirect.github.com/Neokil) in
[https://github.com/stretchr/testify/pull/1610](https://redirect.github.com/stretchr/testify/pull/1610)
- README: replace Testify V2 notice with
[@&#8203;dolmen](https://redirect.github.com/dolmen)'s V2 manifesto by
[@&#8203;hendrywiranto](https://redirect.github.com/hendrywiranto) in
[https://github.com/stretchr/testify/pull/1518](https://redirect.github.com/stretchr/testify/pull/1518)

#### New Contributors

- [@&#8203;fahimbagar](https://redirect.github.com/fahimbagar) made
their first contribution in
[https://github.com/stretchr/testify/pull/1337](https://redirect.github.com/stretchr/testify/pull/1337)
- [@&#8203;TomWright](https://redirect.github.com/TomWright) made their
first contribution in
[https://github.com/stretchr/testify/pull/820](https://redirect.github.com/stretchr/testify/pull/820)
- [@&#8203;snirye](https://redirect.github.com/snirye) made their first
contribution in
[https://github.com/stretchr/testify/pull/1433](https://redirect.github.com/stretchr/testify/pull/1433)
- [@&#8203;myxo](https://redirect.github.com/myxo) made their first
contribution in
[https://github.com/stretchr/testify/pull/1582](https://redirect.github.com/stretchr/testify/pull/1582)
- [@&#8203;JohnEndson](https://redirect.github.com/JohnEndson) made
their first contribution in
[https://github.com/stretchr/testify/pull/1580](https://redirect.github.com/stretchr/testify/pull/1580)
- [@&#8203;JonCrowther](https://redirect.github.com/JonCrowther) made
their first contribution in
[https://github.com/stretchr/testify/pull/1588](https://redirect.github.com/stretchr/testify/pull/1588)
- [@&#8203;miparnisari](https://redirect.github.com/miparnisari) made
their first contribution in
[https://github.com/stretchr/testify/pull/1607](https://redirect.github.com/stretchr/testify/pull/1607)
- [@&#8203;marshall-lee](https://redirect.github.com/marshall-lee) made
their first contribution in
[https://github.com/stretchr/testify/pull/1481](https://redirect.github.com/stretchr/testify/pull/1481)
- [@&#8203;spirin](https://redirect.github.com/spirin) made their first
contribution in
[https://github.com/stretchr/testify/pull/1644](https://redirect.github.com/stretchr/testify/pull/1644)
- [@&#8203;ReyOrtiz](https://redirect.github.com/ReyOrtiz) made their
first contribution in
[https://github.com/stretchr/testify/pull/1637](https://redirect.github.com/stretchr/testify/pull/1637)
- [@&#8203;stevenh](https://redirect.github.com/stevenh) made their
first contribution in
[https://github.com/stretchr/testify/pull/1421](https://redirect.github.com/stretchr/testify/pull/1421)
- [@&#8203;jayd3e](https://redirect.github.com/jayd3e) made their first
contribution in
[https://github.com/stretchr/testify/pull/1636](https://redirect.github.com/stretchr/testify/pull/1636)
- [@&#8203;Neokil](https://redirect.github.com/Neokil) made their first
contribution in
[https://github.com/stretchr/testify/pull/1610](https://redirect.github.com/stretchr/testify/pull/1610)
- [@&#8203;redachl](https://redirect.github.com/redachl) made their
first contribution in
[https://github.com/stretchr/testify/pull/1586](https://redirect.github.com/stretchr/testify/pull/1586)
- [@&#8203;ybrustin](https://redirect.github.com/ybrustin) made their
first contribution in
[https://github.com/stretchr/testify/pull/1663](https://redirect.github.com/stretchr/testify/pull/1663)
- [@&#8203;sikehish](https://redirect.github.com/sikehish) made their
first contribution in
[https://github.com/stretchr/testify/pull/1664](https://redirect.github.com/stretchr/testify/pull/1664)
- [@&#8203;arjun-1](https://redirect.github.com/arjun-1) made their
first contribution in
[https://github.com/stretchr/testify/pull/1626](https://redirect.github.com/stretchr/testify/pull/1626)

**Full Changelog**:
https://github.com/stretchr/testify/compare/v1.9.0...v1.10.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-23 15:29:27 +00:00
renovate[bot] f56d7b043c
fix(deps): update kubernetes packages to v0.31.3 (#1454)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[k8s.io/apimachinery](https://redirect.github.com/kubernetes/apimachinery)
| `v0.31.2` -> `v0.31.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fapimachinery/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fapimachinery/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fapimachinery/v0.31.2/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fapimachinery/v0.31.2/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [k8s.io/client-go](https://redirect.github.com/kubernetes/client-go) |
`v0.31.2` -> `v0.31.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fclient-go/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fclient-go/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fclient-go/v0.31.2/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fclient-go/v0.31.2/v0.31.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kubernetes/apimachinery (k8s.io/apimachinery)</summary>

###
[`v0.31.3`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.2...v0.31.3)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.2...v0.31.3)

</details>

<details>
<summary>kubernetes/client-go (k8s.io/client-go)</summary>

###
[`v0.31.3`](https://redirect.github.com/kubernetes/client-go/compare/v0.31.2...v0.31.3)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.31.2...v0.31.3)

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 14:32:39 +00:00
Pradeep Mishra 65bf635e33
test: update e2e tests (#1452)
Signed-off-by: Pradeep <pradeepbbl@gmail.com>
2024-11-19 16:22:39 -05:00
renovate[bot] 8c6d91d538
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.35.2-20240906125204-0a6a901b42e8.1 (#1451)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.35.1-20240906125204-0a6a901b42e8.1` ->
`v1.35.2-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.1-20240906125204-0a6a901b42e8.1/v1.35.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.1-20240906125204-0a6a901b42e8.1/v1.35.2-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMS41IiwidXBkYXRlZEluVmVyIjoiMzkuMTEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 21:19:12 +00:00
renovate[bot] 6b9834d4b3
fix(deps): update module google.golang.org/protobuf to v1.35.2 (#1450)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.35.2`](https://redirect.github.com/protocolbuffers/protobuf-go/releases/tag/v1.35.2)

[Compare
Source](https://redirect.github.com/protocolbuffers/protobuf-go/compare/v1.35.1...v1.35.2)

**Full Changelog**:
https://github.com/protocolbuffers/protobuf-go/compare/v1.35.1...v1.35.2

Maintenance:

[CL/623115](https://go-review.googlesource.com/c/protobuf/+/623115):
proto: refactor equal_test from explicit table to use makeMessages()
[CL/623116](https://go-review.googlesource.com/c/protobuf/+/623116):
encoding/prototext: use testmessages_test.go approach, too
[CL/623117](https://go-review.googlesource.com/c/protobuf/+/623117):
internal/testprotos/test: add nested message field with \[lazy=true]
[CL/624415](https://go-review.googlesource.com/c/protobuf/+/624415):
proto: switch messageset_test to use makeMessages() injection point
[CL/624416](https://go-review.googlesource.com/c/protobuf/+/624416):
internal/impl: fix TestMarshalMessageSetLazyRace (was a no-op!)

User-visible changes:

[CL/618395](https://go-review.googlesource.com/c/protobuf/+/618395):
encoding/protojson: allow missing value for Any of type Empty
[CL/618979](https://go-review.googlesource.com/c/protobuf/+/618979):
all: implement strip_enum_prefix editions feature
[CL/622575](https://go-review.googlesource.com/c/protobuf/+/622575):
testing/protocmp: document behavior when combining Ignore and Sort

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMS41IiwidXBkYXRlZEluVmVyIjoiMzkuMTEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 15:25:07 +00:00
renovate[bot] 68b5794180
fix(deps): update opentelemetry-go monorepo (#1447)
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**:
https://github.com/open-telemetry/opentelemetry-go/compare/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>
2024-11-09 01:18:11 +00:00
renovate[bot] 9e351117b4
fix(deps): update module golang.org/x/net to v0.31.0 (#1446)
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>
2024-11-08 22:39:38 +00:00
renovate[bot] 8893e94b94
fix(deps): update module golang.org/x/sync to v0.9.0 (#1445)
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>
2024-11-08 10:09:38 +00:00
renovate[bot] ed064e134f
fix(deps): update module golang.org/x/mod to v0.22.0 (#1444)
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>
2024-11-08 06:15:25 +00:00
renovate[bot] db96dd57b9
fix(deps): update module golang.org/x/crypto to v0.29.0 (#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>
2024-11-08 03:51:31 +00:00
renovate[bot] cd27d098e6
fix(deps): update module google.golang.org/grpc to v1.68.0 (#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>
2024-11-07 19:12:25 +00:00
renovate[bot] 949c73bd6e
fix(deps): update module github.com/fsnotify/fsnotify to v1.8.0 (#1438)
This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>fsnotify/fsnotify (github.com/fsnotify/fsnotify)</summary>

###
[`v1.8.0`](https://redirect.github.com/fsnotify/fsnotify/releases/tag/v1.8.0)

[Compare
Source](https://redirect.github.com/fsnotify/fsnotify/compare/v1.7.0...v1.8.0)

#### Additions

- all: add `FSNOTIFY_DEBUG` to print debug logs to stderr
([#&#8203;619](https://redirect.github.com/fsnotify/fsnotify/issues/619))

##### Changes and fixes

- windows: fix behaviour of `WatchList()` to be consistent with other
platforms
([#&#8203;610](https://redirect.github.com/fsnotify/fsnotify/issues/610))

- kqueue: ignore events with Ident=0
([#&#8203;590](https://redirect.github.com/fsnotify/fsnotify/issues/590))

- kqueue: set O_CLOEXEC to prevent passing file descriptors to children
([#&#8203;617](https://redirect.github.com/fsnotify/fsnotify/issues/617))

- kqueue: emit events as "/path/dir/file" instead of "path/link/file"
when watching a symlink
([#&#8203;625](https://redirect.github.com/fsnotify/fsnotify/issues/625))

- inotify: don't send event for IN_DELETE_SELF when also watching the
parent
([#&#8203;620](https://redirect.github.com/fsnotify/fsnotify/issues/620))

- inotify: fix panic when calling Remove() in a goroutine
([#&#8203;650](https://redirect.github.com/fsnotify/fsnotify/issues/650))

- fen: allow watching subdirectories of watched directories
([#&#8203;621](https://redirect.github.com/fsnotify/fsnotify/issues/621))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMzUuMiIsInVwZGF0ZWRJblZlciI6IjM4LjEzNS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 15:06:05 +00:00
Todd Baert a19cb42373
docs: update flagd provider specs (#1432)
This PR contains significant enhancements to flagd provider specs. If
merged, I will be opening a bunch of issues to implement what's
described here based on recon I've been doing with the existing
implementations

Specifically:

- adds `retryGraceAttempts` param, which defines the amount of stream
retry attempts before provider moves from `STALE` to `ERROR` state
- adds `contextEnricher` param, which defines mapping function for
sync-metadata to evaluation context for in process providers (exists
already in Java provider)
- improves consistency between in-process and RPC stream reconnect
behavior
- simplifies provider doc and spec to remove duplication and improve
readability

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Guido Breitenhuber <157148191+guidobrei@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-30 16:51:29 -04:00
renovate[bot] 0df8622155
fix(deps): update kubernetes packages to v0.31.2 (#1430)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[k8s.io/apimachinery](https://redirect.github.com/kubernetes/apimachinery)
| `v0.31.1` -> `v0.31.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fapimachinery/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fapimachinery/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fapimachinery/v0.31.1/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fapimachinery/v0.31.1/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [k8s.io/client-go](https://redirect.github.com/kubernetes/client-go) |
`v0.31.1` -> `v0.31.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fclient-go/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fclient-go/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fclient-go/v0.31.1/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fclient-go/v0.31.1/v0.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kubernetes/apimachinery (k8s.io/apimachinery)</summary>

###
[`v0.31.2`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.1...v0.31.2)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.1...v0.31.2)

</details>

<details>
<summary>kubernetes/client-go (k8s.io/client-go)</summary>

###
[`v0.31.2`](https://redirect.github.com/kubernetes/client-go/compare/v0.31.1...v0.31.2)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.31.1...v0.31.2)

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-30 17:09:09 +00:00
renovate[bot] d33c7a5522
fix(deps): update module github.com/open-feature/flagd/core to v0.10.4 (#1433)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.3` -> `v0.10.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.3/v0.10.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.3/v0.10.4?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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMzMuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEzMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-30 10:52:10 -04:00
Michael Beemer eb1a8ad514
ci(trivy): fetch vulnerabilities DB from ERC (#1436)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-30 10:46:21 -04:00
Michael Beemer a862589648
ci: fix license bundling command (#1434)
## This PR

- avoids running the license bundling command if the directory doesn't
exist.

### Notes

Resolves publishing errors like this.


https://github.com/open-feature/flagd/actions/runs/11561455616/job/32180508181

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-28 16:58:30 -04:00
github-actions[bot] df54b66124
chore: release main (#1412)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.4</summary>

##
[0.11.4](https://github.com/open-feature/flagd/compare/flagd/v0.11.3...flagd/v0.11.4)
(2024-10-28)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.17.0-20240906125204-0a6a901b42e8.1
([#1409](https://github.com/open-feature/flagd/issues/1409))
([f07d348](f07d348b42))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.1-20240906125204-0a6a901b42e8.1
([#1420](https://github.com/open-feature/flagd/issues/1420))
([1f06d5a](1f06d5a183))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.3
([#1411](https://github.com/open-feature/flagd/issues/1411))
([a312196](a312196c11))
* **deps:** update module github.com/prometheus/client_golang to v1.20.5
([#1425](https://github.com/open-feature/flagd/issues/1425))
([583ba89](583ba894f2))
* **deps:** update module go.uber.org/mock to v0.5.0
([#1427](https://github.com/open-feature/flagd/issues/1427))
([0c6fd7f](0c6fd7fa68))
* **deps:** update module golang.org/x/net to v0.30.0
([#1417](https://github.com/open-feature/flagd/issues/1417))
([4d5b75e](4d5b75eed9))
* **deps:** update module google.golang.org/grpc to v1.67.1
([#1415](https://github.com/open-feature/flagd/issues/1415))
([85a3a6b](85a3a6b462))


###  New Features

* added custom grpc resolver
([#1424](https://github.com/open-feature/flagd/issues/1424))
([e5007e2](e5007e2bcb))
* support azure blob sync
([#1428](https://github.com/open-feature/flagd/issues/1428))
([5c39cfe](5c39cfe30a))
</details>

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

##
[0.6.7](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.6...flagd-proxy/v0.6.7)
(2024-10-28)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.1-20240906125204-0a6a901b42e8.1
([#1420](https://github.com/open-feature/flagd/issues/1420))
([1f06d5a](1f06d5a183))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.3
([#1411](https://github.com/open-feature/flagd/issues/1411))
([a312196](a312196c11))
* **deps:** update module github.com/prometheus/client_golang to v1.20.5
([#1425](https://github.com/open-feature/flagd/issues/1425))
([583ba89](583ba894f2))
* **deps:** update module golang.org/x/net to v0.30.0
([#1417](https://github.com/open-feature/flagd/issues/1417))
([4d5b75e](4d5b75eed9))
* **deps:** update module google.golang.org/grpc to v1.67.1
([#1415](https://github.com/open-feature/flagd/issues/1415))
([85a3a6b](85a3a6b462))
</details>

<details><summary>core: 0.10.4</summary>

##
[0.10.4](https://github.com/open-feature/flagd/compare/core/v0.10.3...core/v0.10.4)
(2024-10-28)


### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.35.1-20240906125204-0a6a901b42e8.1
([#1420](https://github.com/open-feature/flagd/issues/1420))
([1f06d5a](1f06d5a183))
* **deps:** update module github.com/prometheus/client_golang to v1.20.5
([#1425](https://github.com/open-feature/flagd/issues/1425))
([583ba89](583ba894f2))
* **deps:** update module go.uber.org/mock to v0.5.0
([#1427](https://github.com/open-feature/flagd/issues/1427))
([0c6fd7f](0c6fd7fa68))
* **deps:** update module gocloud.dev to v0.40.0
([#1422](https://github.com/open-feature/flagd/issues/1422))
([e0e4709](e0e4709243))
* **deps:** update module golang.org/x/crypto to v0.28.0
([#1416](https://github.com/open-feature/flagd/issues/1416))
([fb272da](fb272da56e))
* **deps:** update module google.golang.org/grpc to v1.67.1
([#1415](https://github.com/open-feature/flagd/issues/1415))
([85a3a6b](85a3a6b462))


###  New Features

* added custom grpc resolver
([#1424](https://github.com/open-feature/flagd/issues/1424))
([e5007e2](e5007e2bcb))
* support azure blob sync
([#1428](https://github.com/open-feature/flagd/issues/1428))
([5c39cfe](5c39cfe30a))
</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>
2024-10-28 15:44:26 -04:00
Pradeep Mishra e5007e2bcb
feat: added custom grpc resolver (#1424)
## This PR
Added custom gRPC resolver to support envoy proxy

- support gRPC custom resolver 

### Related Issues

Fixes https://github.com/open-feature/go-sdk-contrib/issues/585

### Notes

- update `.github/workflow/build.yaml` to install `envoy`
[binary](https://www.envoyproxy.io/docs/envoy/latest/start/install#install-binaries)
part of e2e test.
- this is a pre-requisite for `flagd` go [provider
update](https://github.com/open-feature/go-sdk-contrib/issues/585)

### How to test
Unit test are already added for the custom resolver for integration test
you need a working envoy proxy support or any of the supported core
resolver mentioned
[here](https://grpc.io/docs/guides/custom-name-resolution/#overview)

```shell
bin % ./flagd start -x --uri envoy://localhost:9211/test.service

                 ______   __       ________   _______    ______      
                /_____/\ /_/\     /_______/\ /______/\  /_____/\     
                \::::_\/_\:\ \    \::: _  \ \\::::__\/__\:::_ \ \    
                 \:\/___/\\:\ \    \::(_)  \ \\:\ /____/\\:\ \ \ \   
                  \:::._\/ \:\ \____\:: __  \ \\:\\_  _\/ \:\ \ \ \  
                   \:\ \    \:\/___/\\:.\ \  \ \\:\_\ \ \  \:\/.:| | 
                    \_\/     \_____\/ \__\/\__\/ \_____\/   \____/_/                                                                                                            

2024-10-14T20:19:51.411+0200    info    cmd/start.go:120        flagd version: dev (f716423), built at: 2024-10-14T20:19:34Z    {"component": "start"}
2024-10-14T20:19:51.412+0200    debug   telemetry/builder.go:81 skipping trace provider setup as collector target is not set. Traces will use NoopTracerProvider provider and propagator will use no-Op TextMapPropagator
2024-10-14T20:19:51.412+0200    info    flag-sync/sync_service.go:54    starting flag sync service on port 8015 {"component": "FlagSyncService"}
2024-10-14T20:19:51.412+0200    debug   builder/syncbuilder.go:111      using grpc sync-provider for: envoy://localhost:9211/test.service       {"component": "sync"}
2024-10-14T20:19:51.413+0200    info    flag-evaluation/connect_service.go:247  metrics and probes listening at 8014    {"component": "service"}
2024-10-14T20:19:51.413+0200    info    ofrep/ofrep_service.go:56       ofrep service listening at 8016 {"component": "OFREPService"}
2024-10-14T20:19:51.415+0200    info    flag-evaluation/connect_service.go:227  Flag IResolver listening at [::]:8013   {"component": "service"}
2024-10-14T20:19:51.428+0200    debug   grpc/grpc_sync.go:201   received full configuration payload     {"component": "sync", "sync": "grpc"}
2024-10-14T20:19:55.057+0200    debug   grpc/grpc_sync.go:201   received full configuration payload     {"component": "sync", "sync": "grpc"}
```

---------

Signed-off-by: Pradeep <pradeepbbl@gmail.com>
Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com>
Co-authored-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com>
2024-10-28 15:34:59 -04:00
Michael Beemer 02d881e070
chore: fix netlify doc publish (#1431)
## This PR
<!-- add the description of the PR here -->

- disable package mode in the Python project

### Notes

Netlify build output

```
Warning: The current project could not be installed: No file/folder found for package flagd-dev
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error!
```
I resolved the issue by following this guide.

https://docs.netlify.com/frameworks/#mkdocs

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-28 15:33:13 -04:00
Matthew Wilson 5c39cfe30a
feat: support azure blob sync (#1428)
## This PR

- adds support for Azure Blob Storage sync

Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com>
2024-10-23 16:15:31 -04:00
renovate[bot] 538da12da0
fix(deps): update opentelemetry-go monorepo (#1423)
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.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.30.0/v1.31.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.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.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.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.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.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.52.0` -> `v0.53.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.53.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.53.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.52.0/v0.53.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.52.0/v0.53.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.30.0` -> `v1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.31.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.31.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.30.0/v1.31.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.30.0/v1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.31.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/releases/tag/v1.31.0):
/v0.53.0/v0.7.0/v0.0.10

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

##### Added

- Add `go.opentelemetry.io/otel/sdk/metric/exemplar` package which
includes `Exemplar`, `Filter`, `TraceBasedFilter`, `AlwaysOnFilter`,
`HistogramReservoir`, `FixedSizeReservoir`, `Reservoir`, `Value` and
`ValueType` types. These will be used for configuring the exemplar
reservoir for the metrics sdk.
([#&#8203;5747](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5747),
[#&#8203;5862](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5862))
- Add `WithExportBufferSize` option to log batch
processor.([#&#8203;5877](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5877))

##### Changed

- Enable exemplars by default in `go.opentelemetry.io/otel/sdk/metric`.
Exemplars can be disabled by setting
`OTEL_METRICS_EXEMPLAR_FILTER=always_off`
([#&#8203;5778](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5778))
- `Logger.Enabled` in `go.opentelemetry.io/otel/log` now accepts a newly
introduced `EnabledParameters` type instead of `Record`.
([#&#8203;5791](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5791))
- `FilterProcessor.Enabled` in
`go.opentelemetry.io/otel/sdk/log/internal/x` now accepts
`EnabledParameters` instead of `Record`.
([#&#8203;5791](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5791))
- The `Record` type in `go.opentelemetry.io/otel/log` is no longer
comparable.
([#&#8203;5847](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5847))
- Performance improvements for the trace SDK `SetAttributes` method in
`Span`.
([#&#8203;5864](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5864))
- Reduce memory allocations for the `Event` and `Link` lists in `Span`.
([#&#8203;5858](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5858))
- Performance improvements for the trace SDK `AddEvent`, `AddLink`,
`RecordError` and `End` methods in `Span`.
([#&#8203;5874](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5874))

##### Deprecated

- Deprecate 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;5854](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5854))

##### Fixed

- The race condition for multiple `FixedSize` exemplar reservoirs
identified in
[#&#8203;5814](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5814)
is resolved.
([#&#8203;5819](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5819))
- Fix log records duplication in case of heterogeneous resource
attributes by correctly mapping each log record to it's resource and
scope.
([#&#8203;5803](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5803))
- Fix timer channel drain to avoid hanging on Go 1.23.
([#&#8203;5868](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5868))
- Fix delegation for global meter providers, and panic when calling
otel.SetMeterProvider.
([#&#8203;5827](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5827))
- Change the `reflect.TypeOf` to use a nil pointer to not allocate on
the heap unless necessary.
([#&#8203;5827](https://redirect.github.com/open-telemetry/opentelemetry-go/issues/5827))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMTUuMSIsInVwZGF0ZWRJblZlciI6IjM4LjExNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 16:36:27 +00:00
renovate[bot] 4d5b75eed9
fix(deps): update module golang.org/x/net to v0.30.0 (#1417)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 12:43:16 +00:00
renovate[bot] fb272da56e
fix(deps): update module golang.org/x/crypto to v0.28.0 (#1416)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 10:05:43 +00:00
renovate[bot] e0e4709243
fix(deps): update module gocloud.dev to v0.40.0 (#1422)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [gocloud.dev](https://redirect.github.com/google/go-cloud) | `v0.39.0`
-> `v0.40.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/gocloud.dev/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/gocloud.dev/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/gocloud.dev/v0.39.0/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/gocloud.dev/v0.39.0/v0.40.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>google/go-cloud (gocloud.dev)</summary>

###
[`v0.40.0`](https://redirect.github.com/google/go-cloud/releases/tag/v0.40.0)

[Compare
Source](https://redirect.github.com/google/go-cloud/compare/v0.39.0...v0.40.0)

#### What's Changed

- blob/all: disable Upload optimization when WriterOptions.ContentMD5 is
set by [@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3478](https://redirect.github.com/google/go-cloud/pull/3478)
- blob/s3blob: custom endpoints with s3 and aws sdk v2 by
[@&#8203;caarlos0](https://redirect.github.com/caarlos0) in
[https://github.com/google/go-cloud/pull/3473](https://redirect.github.com/google/go-cloud/pull/3473)
- blob/all: Don't require SetIOFSCallback be called to use io/fs.FS
functions by [@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3479](https://redirect.github.com/google/go-cloud/pull/3479)
- blob/s3blob: fix data race by
[@&#8203;arjunnair1997](https://redirect.github.com/arjunnair1997) in
[https://github.com/google/go-cloud/pull/3480](https://redirect.github.com/google/go-cloud/pull/3480)
- blob/azblob: Support AZURE_STORAGEBLOB_CONNECTIONSTRING as an
alternative for AZURE_STORAGE_CONNECTION_STRING by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3483](https://redirect.github.com/google/go-cloud/pull/3483)
- s3blob/blob: support additional endpoint query parameters by
[@&#8203;stanhu](https://redirect.github.com/stanhu) in
[https://github.com/google/go-cloud/pull/3486](https://redirect.github.com/google/go-cloud/pull/3486)
- blob/gcsblob: Allow providing options for storage.NewClient by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3493](https://redirect.github.com/google/go-cloud/pull/3493)
- aws: Add support for non-camelcased version of two URL parameters by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3494](https://redirect.github.com/google/go-cloud/pull/3494)
- Add disableHTTPS and usePathStyle s3v2.Options as query param by
[@&#8203;khrm](https://redirect.github.com/khrm) in
[https://github.com/google/go-cloud/pull/3491](https://redirect.github.com/google/go-cloud/pull/3491)
- aws: add rate_limiter_capacity to configure client-side rate limits by
[@&#8203;stanhu](https://redirect.github.com/stanhu) in
[https://github.com/google/go-cloud/pull/3497](https://redirect.github.com/google/go-cloud/pull/3497)

#### New Contributors

- [@&#8203;caarlos0](https://redirect.github.com/caarlos0) made their
first contribution in
[https://github.com/google/go-cloud/pull/3473](https://redirect.github.com/google/go-cloud/pull/3473)
- [@&#8203;arjunnair1997](https://redirect.github.com/arjunnair1997)
made their first contribution in
[https://github.com/google/go-cloud/pull/3480](https://redirect.github.com/google/go-cloud/pull/3480)
- [@&#8203;bdon](https://redirect.github.com/bdon) made their first
contribution in
[https://github.com/google/go-cloud/pull/3481](https://redirect.github.com/google/go-cloud/pull/3481)
- [@&#8203;khrm](https://redirect.github.com/khrm) made their first
contribution in
[https://github.com/google/go-cloud/pull/3491](https://redirect.github.com/google/go-cloud/pull/3491)

**Full Changelog**:
https://github.com/google/go-cloud/compare/v0.39.0...v0.40.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMTUuMSIsInVwZGF0ZWRJblZlciI6IjM4LjExNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 06:27:59 +00:00
renovate[bot] 0c6fd7fa68
fix(deps): update module go.uber.org/mock to v0.5.0 (#1427)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [go.uber.org/mock](https://redirect.github.com/uber/mock) | `v0.4.0`
-> `v0.5.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.uber.org%2fmock/v0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.uber.org%2fmock/v0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.uber.org%2fmock/v0.4.0/v0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.uber.org%2fmock/v0.4.0/v0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uber/mock (go.uber.org/mock)</summary>

###
[`v0.5.0`](https://redirect.github.com/uber-go/mock/releases/tag/v0.5.0)

[Compare
Source](https://redirect.github.com/uber/mock/compare/v0.4.0...v0.5.0)

#### 0.5.0 (15 Oct 2024)

##### Added

- [#&#8203;153][]: Add `--write_command_comment` flag to specify whether
to include
    `Generated by this command` comment.
- [#&#8203;191][]: Add `--build_constraint` flag to add `//go:build`
directives
    to generated mocks
- [#&#8203;214][]: Add gob mode to support custom package loading
techniques in place
    of --exec_only

##### Changed

- [#&#8203;181][]: Made mockgen faster by changing flags passed to `go
list`.
-   [#&#8203;183][]: Made `Cond` matcher generic.
-   [#&#8203;204][]: Removed `ISGOMOCK()` from generated mocks.
- [#&#8203;207][]: Deprecated reflect mode and replaced it with the new
package mode.

##### Fixed

- [#&#8203;144][]: Fix a deadlock that can happen when mocking an
interface that
    matches `fmt.Stringer`.
- [#&#8203;168][]: Fix an issue where the "generated by" comment was
being included
    in the package comment of generated mocks.

[#&#8203;144]: https://redirect.github.com/uber-go/mock/pull/144

[#&#8203;153]: https://redirect.github.com/uber-go/mock/pull/153

[#&#8203;168]: https://redirect.github.com/uber-go/mock/pull/168

[#&#8203;181]: https://redirect.github.com/uber-go/mock/pull/181

[#&#8203;183]: https://redirect.github.com/uber-go/mock/pull/183

[#&#8203;191]: https://redirect.github.com/uber-go/mock/pull/191

[#&#8203;204]: https://redirect.github.com/uber-go/mock/pull/204

[#&#8203;207]: https://redirect.github.com/uber-go/mock/pull/207

[#&#8203;214]: https://redirect.github.com/uber-go/mock/pull/214

Thanks to [@&#8203;tulzke](https://redirect.github.com/tulzke)
[@&#8203;JacobOaks](https://redirect.github.com/JacobOaks)
[@&#8203;ARR4N](https://redirect.github.com/ARR4N)
[@&#8203;sashamelentyev](https://redirect.github.com/sashamelentyev)
[@&#8203;sywhang](https://redirect.github.com/sywhang)
[@&#8203;fasmat](https://redirect.github.com/fasmat)
[@&#8203;eyasy1217](https://redirect.github.com/eyasy1217)
[@&#8203;ghouscht](https://redirect.github.com/ghouscht)
[@&#8203;tie](https://redirect.github.com/tie)
[@&#8203;Neo2308](https://redirect.github.com/Neo2308)
[@&#8203;carson-brill](https://redirect.github.com/carson-brill)
[@&#8203;alexandear](https://redirect.github.com/alexandear)
[@&#8203;sodul](https://redirect.github.com/sodul)
[@&#8203;nbgraham](https://redirect.github.com/nbgraham) for their
contributions this release.

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 03:15:38 +00:00
renovate[bot] 1f06d5a183
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.35.1-20240906125204-0a6a901b42e8.1 (#1420)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.34.2-20240906125204-0a6a901b42e8.2` ->
`v1.35.1-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.35.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.2-20240906125204-0a6a901b42e8.2/v1.35.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.2-20240906125204-0a6a901b42e8.2/v1.35.1-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 02:01:23 +00:00
renovate[bot] 583ba894f2
fix(deps): update module github.com/prometheus/client_golang to v1.20.5 (#1425)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.20.4` -> `v1.20.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.20.4/v1.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.20.4/v1.20.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.5`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.5):
/ 2024-10-15

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.4...v1.20.5)

We decided to revert [the `testutil`
change](https://redirect.github.com/prometheus/client_golang/pull/1424)
that made our util functions less error-prone, but created a lot of work
for our downstream users. Apologies for the pain! This revert should not
cause any major breaking change, even if you already did the
work--unless you depend on the [exact error
message](https://redirect.github.com/grafana/mimir/pull/9624#issuecomment-2413401565).

Going forward, we plan to reinforce our release testing strategy
[\[1\]](https://redirect.github.com/prometheus/client_golang/issues/1646),[\[2\]](https://redirect.github.com/prometheus/client_golang/issues/1648)
and deliver an enhanced [`testutil`
package/module](https://redirect.github.com/prometheus/client_golang/issues/1639)
with more flexible and safer APIs.

Thanks to [@&#8203;dashpole](https://redirect.github.com/dashpole)
[@&#8203;dgrisonnet](https://redirect.github.com/dgrisonnet)
[@&#8203;kakkoyun](https://redirect.github.com/kakkoyun)
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens)
[@&#8203;vesari](https://redirect.github.com/vesari)
[@&#8203;logicalhan](https://redirect.github.com/logicalhan)
[@&#8203;krajorama](https://redirect.github.com/krajorama)
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) who helped in
this patch release! 🤗

##### Changelog

\[BUGFIX] testutil: Reverted
[#&#8203;1424](https://redirect.github.com/prometheus/client_golang/issues/1424);
functions using compareMetricFamilies are (again) only failing if
filtered metricNames are in the expected input.
[#&#8203;1645](https://redirect.github.com/prometheus/client_golang/issues/1645)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 21:37:26 +00:00
Michael Beemer c7237f0688
ci: fix security scan input path (#1426)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-18 14:56:08 -04:00
Matthew Wilson 8583f68893
docs: fix typo (#1419)
## This PR
Fixes a typo in `docs/reference/openfeature-operator/overview.md`

Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-10 11:05:55 -04:00
Pradeep Mishra f716423422
docs: update gRPC custom resolver rfc proposal (#1421)
Signed-off-by: Pradeep <pradeepbbl@gmail.com>
2024-10-09 08:39:39 -04:00
Pradeep Mishra fb76af5830
docs: added gRPC custom name resolver proposal (#1414)
## This PR
Added initial gRPC custom name resolver draft proposal


- new proposal doc to support gRPC over proxy

### Related Issues
TBD

---------

Signed-off-by: Pradeep Mishra <pradeep.mishra@booking.com>
Signed-off-by: Pradeep <pradeepbbl@gmail.com>
Signed-off-by: Pradeep Mishra <pradeepbbl@users.noreply.github.com>
Signed-off-by: Pradeep Mishra <pradeepbbl@gmail.com>
Co-authored-by: Pradeep Mishra <pradeep.mishra@booking.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-01 12:05:27 -04:00
renovate[bot] 85a3a6b462
fix(deps): update module google.golang.org/grpc to v1.67.1 (#1415)
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.0` -> `v1.67.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.67.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgrpc/v1.67.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgrpc/v1.67.0/v1.67.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.67.0/v1.67.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

### Bug Fixes

- transport: Fix a bug causing stream failures due to miscalculation of
the flow control window in both clients and servers.
([#&#8203;7667](https://redirect.github.com/grpc/grpc-go/issues/7667))
- xds/server: Fix xDS Server memory leak.
([#&#8203;7681](https://redirect.github.com/grpc/grpc-go/issues/7681))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 10:15:03 +00:00
renovate[bot] f07d348b42
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.17.0-20240906125204-0a6a901b42e8.1 (#1409)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.16.2-20240906125204-0a6a901b42e8.1` ->
`v1.17.0-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.17.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240906125204-0a6a901b42e8.1/v1.17.0-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240906125204-0a6a901b42e8.1/v1.17.0-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 01:38:23 +00:00
renovate[bot] a312196c11
fix(deps): update module github.com/open-feature/flagd/core to v0.10.3 (#1411)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://redirect.github.com/open-feature/flagd)
| `v0.10.2` -> `v0.10.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.2/v0.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.2/v0.10.3?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:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 22:58:21 +00:00
github-actions[bot] 851b9da436
chore: release main (#1395)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.3</summary>

##
[0.11.3](https://github.com/open-feature/flagd/compare/flagd/v0.11.2...flagd/v0.11.3)
(2024-09-23)


### 🐛 Bug Fixes

* **deps:** update kubernetes package and controller runtime, fix proto
lint ([#1290](https://github.com/open-feature/flagd/issues/1290))
([94860d6](94860d6cea))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.16.2-20240906125204-0a6a901b42e8.1
([#1399](https://github.com/open-feature/flagd/issues/1399))
([18dd4e2](18dd4e279f))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240906125204-0a6a901b42e8.1
([#1400](https://github.com/open-feature/flagd/issues/1400))
([954d972](954d972382))
* **deps:** update module connectrpc.com/connect to v1.17.0
([#1408](https://github.com/open-feature/flagd/issues/1408))
([e7eb691](e7eb691094))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.2
([#1385](https://github.com/open-feature/flagd/issues/1385))
([3b5a818](3b5a818b69))
* **deps:** update module github.com/prometheus/client_golang to v1.20.3
([#1384](https://github.com/open-feature/flagd/issues/1384))
([8fd16b2](8fd16b23b1))
* **deps:** update module github.com/prometheus/client_golang to v1.20.4
([#1406](https://github.com/open-feature/flagd/issues/1406))
([a0a6426](a0a64269b0))
* **deps:** update module github.com/rs/cors to v1.11.1
([#1392](https://github.com/open-feature/flagd/issues/1392))
([8bd549e](8bd549e860))
* **deps:** update module github.com/rs/xid to v1.6.0
([#1386](https://github.com/open-feature/flagd/issues/1386))
([2317013](231701346a))
* **deps:** update module golang.org/x/net to v0.29.0
([#1398](https://github.com/open-feature/flagd/issues/1398))
([0721e02](0721e02daa))
* **deps:** update module google.golang.org/grpc to v1.66.0
([#1393](https://github.com/open-feature/flagd/issues/1393))
([c96e9d7](c96e9d764a))
* **deps:** update module google.golang.org/grpc to v1.66.1
([#1402](https://github.com/open-feature/flagd/issues/1402))
([50c9cd3](50c9cd3ada))
* **deps:** update module google.golang.org/grpc to v1.66.2
([#1405](https://github.com/open-feature/flagd/issues/1405))
([69ec28f](69ec28fceb))
* **deps:** update module google.golang.org/grpc to v1.67.0
([#1407](https://github.com/open-feature/flagd/issues/1407))
([1ad6480](1ad6480a0f))
* **deps:** update opentelemetry-go monorepo
([#1387](https://github.com/open-feature/flagd/issues/1387))
([22aef5b](22aef5bbf0))
* **deps:** update opentelemetry-go monorepo
([#1403](https://github.com/open-feature/flagd/issues/1403))
([fc4cd3e](fc4cd3e547))
* remove dep cycle with certreloader
([#1410](https://github.com/open-feature/flagd/issues/1410))
([5244f6f](5244f6f6c9))


###  New Features

* add mTLS support to otel exporter
([#1389](https://github.com/open-feature/flagd/issues/1389))
([8737f53](8737f53444))
</details>

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

##
[0.6.6](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.5...flagd-proxy/v0.6.6)
(2024-09-23)


### 🐛 Bug Fixes

* **deps:** update kubernetes package and controller runtime, fix proto
lint ([#1290](https://github.com/open-feature/flagd/issues/1290))
([94860d6](94860d6cea))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240906125204-0a6a901b42e8.1
([#1400](https://github.com/open-feature/flagd/issues/1400))
([954d972](954d972382))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.2
([#1385](https://github.com/open-feature/flagd/issues/1385))
([3b5a818](3b5a818b69))
* **deps:** update module github.com/prometheus/client_golang to v1.20.3
([#1384](https://github.com/open-feature/flagd/issues/1384))
([8fd16b2](8fd16b23b1))
* **deps:** update module github.com/prometheus/client_golang to v1.20.4
([#1406](https://github.com/open-feature/flagd/issues/1406))
([a0a6426](a0a64269b0))
* **deps:** update module golang.org/x/net to v0.29.0
([#1398](https://github.com/open-feature/flagd/issues/1398))
([0721e02](0721e02daa))
* **deps:** update module google.golang.org/grpc to v1.66.0
([#1393](https://github.com/open-feature/flagd/issues/1393))
([c96e9d7](c96e9d764a))
* **deps:** update module google.golang.org/grpc to v1.66.1
([#1402](https://github.com/open-feature/flagd/issues/1402))
([50c9cd3](50c9cd3ada))
* **deps:** update module google.golang.org/grpc to v1.66.2
([#1405](https://github.com/open-feature/flagd/issues/1405))
([69ec28f](69ec28fceb))
* **deps:** update module google.golang.org/grpc to v1.67.0
([#1407](https://github.com/open-feature/flagd/issues/1407))
([1ad6480](1ad6480a0f))
* **deps:** update opentelemetry-go monorepo
([#1387](https://github.com/open-feature/flagd/issues/1387))
([22aef5b](22aef5bbf0))
* **deps:** update opentelemetry-go monorepo
([#1403](https://github.com/open-feature/flagd/issues/1403))
([fc4cd3e](fc4cd3e547))
* remove dep cycle with certreloader
([#1410](https://github.com/open-feature/flagd/issues/1410))
([5244f6f](5244f6f6c9))
</details>

<details><summary>core: 0.10.3</summary>

##
[0.10.3](https://github.com/open-feature/flagd/compare/core/v0.10.2...core/v0.10.3)
(2024-09-23)


### 🐛 Bug Fixes

* **deps:** update kubernetes package and controller runtime, fix proto
lint ([#1290](https://github.com/open-feature/flagd/issues/1290))
([94860d6](94860d6cea))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240906125204-0a6a901b42e8.1
([#1400](https://github.com/open-feature/flagd/issues/1400))
([954d972](954d972382))
* **deps:** update module connectrpc.com/connect to v1.17.0
([#1408](https://github.com/open-feature/flagd/issues/1408))
([e7eb691](e7eb691094))
* **deps:** update module github.com/prometheus/client_golang to v1.20.3
([#1384](https://github.com/open-feature/flagd/issues/1384))
([8fd16b2](8fd16b23b1))
* **deps:** update module github.com/prometheus/client_golang to v1.20.4
([#1406](https://github.com/open-feature/flagd/issues/1406))
([a0a6426](a0a64269b0))
* **deps:** update module gocloud.dev to v0.39.0
([#1404](https://github.com/open-feature/flagd/issues/1404))
([a3184d6](a3184d6841))
* **deps:** update module golang.org/x/crypto to v0.27.0
([#1396](https://github.com/open-feature/flagd/issues/1396))
([f9a7d10](f9a7d10590))
* **deps:** update module golang.org/x/mod to v0.21.0
([#1397](https://github.com/open-feature/flagd/issues/1397))
([1507e19](1507e19e93))
* **deps:** update module google.golang.org/grpc to v1.66.0
([#1393](https://github.com/open-feature/flagd/issues/1393))
([c96e9d7](c96e9d764a))
* **deps:** update module google.golang.org/grpc to v1.66.1
([#1402](https://github.com/open-feature/flagd/issues/1402))
([50c9cd3](50c9cd3ada))
* **deps:** update module google.golang.org/grpc to v1.66.2
([#1405](https://github.com/open-feature/flagd/issues/1405))
([69ec28f](69ec28fceb))
* **deps:** update module google.golang.org/grpc to v1.67.0
([#1407](https://github.com/open-feature/flagd/issues/1407))
([1ad6480](1ad6480a0f))
* **deps:** update opentelemetry-go monorepo
([#1387](https://github.com/open-feature/flagd/issues/1387))
([22aef5b](22aef5bbf0))
* **deps:** update opentelemetry-go monorepo
([#1403](https://github.com/open-feature/flagd/issues/1403))
([fc4cd3e](fc4cd3e547))
* remove dep cycle with certreloader
([#1410](https://github.com/open-feature/flagd/issues/1410))
([5244f6f](5244f6f6c9))


###  New Features

* add mTLS support to otel exporter
([#1389](https://github.com/open-feature/flagd/issues/1389))
([8737f53](8737f53444))
</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>
2024-09-23 11:57:17 -04:00
renovate[bot] 954d972382
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20240906125204-0a6a901b42e8.1 (#1400)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.5.1-20240215170432-1e611e2999cc.1` ->
`v1.5.1-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1/v1.5.1-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-09-23 10:39:19 -04:00
renovate[bot] 94860d6cea
fix(deps): update kubernetes package and controller runtime, fix proto lint (#1290)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[k8s.io/apimachinery](https://redirect.github.com/kubernetes/apimachinery)
| `v0.29.3` -> `v0.31.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fapimachinery/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fapimachinery/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fapimachinery/v0.29.3/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fapimachinery/v0.29.3/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [k8s.io/client-go](https://redirect.github.com/kubernetes/client-go) |
`v0.29.3` -> `v0.31.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/k8s.io%2fclient-go/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/k8s.io%2fclient-go/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/k8s.io%2fclient-go/v0.29.3/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/k8s.io%2fclient-go/v0.29.3/v0.31.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kubernetes/apimachinery (k8s.io/apimachinery)</summary>

###
[`v0.31.1`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.0...v0.31.1)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.31.0...v0.31.1)

###
[`v0.31.0`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.3...v0.31.0)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.5...v0.31.0)

###
[`v0.30.5`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.4...v0.30.5)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.4...v0.30.5)

###
[`v0.30.4`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.3...v0.30.4)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.3...v0.30.4)

###
[`v0.30.3`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.2...v0.30.3)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.2...v0.30.3)

###
[`v0.30.2`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.1...v0.30.2)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.1...v0.30.2)

###
[`v0.30.1`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.0...v0.30.1)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.30.0...v0.30.1)

###
[`v0.30.0`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.4...v0.30.0)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.9...v0.30.0)

###
[`v0.29.9`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.8...v0.29.9)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.8...v0.29.9)

###
[`v0.29.8`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.7...v0.29.8)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.7...v0.29.8)

###
[`v0.29.7`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.6...v0.29.7)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.6...v0.29.7)

###
[`v0.29.6`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.5...v0.29.6)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.5...v0.29.6)

###
[`v0.29.5`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.4...v0.29.5)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.4...v0.29.5)

###
[`v0.29.4`](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.3...v0.29.4)

[Compare
Source](https://redirect.github.com/kubernetes/apimachinery/compare/v0.29.3...v0.29.4)

</details>

<details>
<summary>kubernetes/client-go (k8s.io/client-go)</summary>

###
[`v0.31.1`](https://redirect.github.com/kubernetes/client-go/compare/v0.31.0...v0.31.1)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.31.0...v0.31.1)

###
[`v0.31.0`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.4...v0.31.0)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.5...v0.31.0)

###
[`v0.30.5`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.4...v0.30.5)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.4...v0.30.5)

###
[`v0.30.4`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.3...v0.30.4)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.3...v0.30.4)

###
[`v0.30.3`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.2...v0.30.3)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.2...v0.30.3)

###
[`v0.30.2`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.1...v0.30.2)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.1...v0.30.2)

###
[`v0.30.1`](https://redirect.github.com/kubernetes/client-go/compare/v0.30.0...v0.30.1)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.30.0...v0.30.1)

###
[`v0.30.0`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.4...v0.30.0)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.9...v0.30.0)

###
[`v0.29.9`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.8...v0.29.9)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.8...v0.29.9)

###
[`v0.29.8`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.7...v0.29.8)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.7...v0.29.8)

###
[`v0.29.7`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.6...v0.29.7)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.6...v0.29.7)

###
[`v0.29.6`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.5...v0.29.6)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.5...v0.29.6)

###
[`v0.29.5`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.4...v0.29.5)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.4...v0.29.5)

###
[`v0.29.4`](https://redirect.github.com/kubernetes/client-go/compare/v0.29.3...v0.29.4)

[Compare
Source](https://redirect.github.com/kubernetes/client-go/compare/v0.29.3...v0.29.4)

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM4LjgwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-09-23 09:54:46 -04:00
Todd Baert 5244f6f6c9
fix: remove dep cycle with certreloader (#1410)
https://github.com/open-feature/flagd/pull/1389 works well but caused a
dependency cycle: core -> flagd -> core.

I've moved the `certreloader` pkg to core with the existing telemetry
stuff.

cc @kevinschoonover

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-09-23 09:24:34 -04:00
Kevin Schoonover 8737f53444
feat: add mTLS support to otel exporter (#1389)
## This PR

The OpenTelemetry collectors in my production environment are configured
to use TLS for uploading metrics / traces so this PR aims to

- add the ability to use mTLS + self-signed certificates when exporting
to the opentelemetry collector

This is the 'quick and dirty' approach so wanted to make an initial PR
to make sure the high level implementation is the approach you're
looking for.

### Follow-up Tasks
- [ ] update the documentation when this approach is approved

### How to test
I am struggling to figure out how to test this with self signed
certificates to give a specific set of commands you can run because the
TLS connection is never successful (assuming this is because of my
commands)
```bash
openssl req -x509 -newkey rsa:4096 -keyout ca.key.pem -out ca.cert.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=localhost"

openssl req -x509 -newkey rsa:4096 -keyout client.key.pem -out client.cert.pem -CA ca.cert.pem -CAkey ca.key.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=localhost" -addext "subjectAltName = IP:127.0.0.1"
openssl req -x509 -newkey rsa:4096 -keyout server.key.pem -out server.cert.pem -CA ca.cert.pem -CAkey ca.key.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=localhost" -addext "subjectAltName = IP:127.0.0.1"
```


; however, when I pull certificates from my production environment to
test this works

---------

Signed-off-by: Kevin Schoonover <me@kschoon.me>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-09-23 08:16:42 -04:00
renovate[bot] e7eb691094
fix(deps): update module connectrpc.com/connect to v1.17.0 (#1408)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[connectrpc.com/connect](https://redirect.github.com/connectrpc/connect-go)
| `v1.16.2` -> `v1.17.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/connectrpc.com%2fconnect/v1.17.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/connectrpc.com%2fconnect/v1.17.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/connectrpc.com%2fconnect/v1.16.2/v1.17.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/connectrpc.com%2fconnect/v1.16.2/v1.17.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>connectrpc/connect-go (connectrpc.com/connect)</summary>

###
[`v1.17.0`](https://redirect.github.com/connectrpc/connect-go/releases/tag/v1.17.0)

[Compare
Source](https://redirect.github.com/connectrpc/connect-go/compare/v1.16.2...v1.17.0)

#### What's Changed

##### Enhancements

- Enable `protoc-gen-connect-go` usage with Protobuf source files that
use Editions by
[@&#8203;jchadwick-buf](https://redirect.github.com/jchadwick-buf) in
[#&#8203;754](https://redirect.github.com/connectrpc/connect-go/issues/754)

##### Bugfixes

- Prevent incorrect propagation of protocol-specific metadata by
[@&#8203;emcfarlane](https://redirect.github.com/emcfarlane) in
[#&#8203;748](https://redirect.github.com/connectrpc/connect-go/issues/748)
- Fix error message about unexpected content-type by
[@&#8203;jhump](https://redirect.github.com/jhump) in
[#&#8203;775](https://redirect.github.com/connectrpc/connect-go/issues/775)
- Calls should return "unavailable" instead of "unimplemented" or
"unknown" when the transport fails to produce an HTTP response and
returns `io.EOF` errors by
[@&#8203;jhump](https://redirect.github.com/jhump) in
[#&#8203;776](https://redirect.github.com/connectrpc/connect-go/issues/776)

##### Other changes

- Now requires Go 1.21 by
[@&#8203;jhump](https://redirect.github.com/jhump) in
[#&#8203;770](https://redirect.github.com/connectrpc/connect-go/issues/770)

#### New Contributors

- [@&#8203;perezd](https://redirect.github.com/perezd) made their first
contribution in
[#&#8203;739](https://redirect.github.com/connectrpc/connect-go/issues/739)

**Full Changelog**:
https://github.com/connectrpc/connect-go/compare/v1.16.2...v1.17.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 18:24:05 +00:00
renovate[bot] 1ad6480a0f
fix(deps): update module google.golang.org/grpc to v1.67.0 (#1407)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.67.0`](https://redirect.github.com/grpc/grpc-go/compare/v1.66.2...v1.67.0)

[Compare
Source](https://redirect.github.com/grpc/grpc-go/compare/v1.66.2...v1.67.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 09:15:28 +00:00
renovate[bot] a0a64269b0
fix(deps): update module github.com/prometheus/client_golang to v1.20.4 (#1406)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.20.3` -> `v1.20.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.20.3/v1.20.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.20.3/v1.20.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.4`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.4)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.3...v1.20.4)

- \[BUGFIX] histograms: Fix a possible data race when appending
exemplars vs metrics gather.
[#&#8203;1623](https://redirect.github.com/prometheus/client_golang/issues/1623)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-17 13:18:26 +00:00
renovate[bot] 69ec28fceb
fix(deps): update module google.golang.org/grpc to v1.66.2 (#1405)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### Dependencies

- Remove unintentional dependency on the `testing` package
([#&#8203;7579](https://redirect.github.com/grpc/grpc-go/issues/7579))
- Remove unintentional dependency on the `flate` package
([#&#8203;7595](https://redirect.github.com/grpc/grpc-go/issues/7595))
- Special Thanks: [@&#8203;ash2k](https://redirect.github.com/ash2k)

### Bug Fixes

- client: fix a bug that prevented memory reuse after handling unary
RPCs
([#&#8203;7571](https://redirect.github.com/grpc/grpc-go/issues/7571))
- Special Thanks: [@&#8203;coxley](https://redirect.github.com/coxley)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-12 01:36:19 +00:00
renovate[bot] a3184d6841
fix(deps): update module gocloud.dev to v0.39.0 (#1404)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [gocloud.dev](https://redirect.github.com/google/go-cloud) | `v0.37.0`
-> `v0.39.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/gocloud.dev/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/gocloud.dev/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/gocloud.dev/v0.37.0/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/gocloud.dev/v0.37.0/v0.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>google/go-cloud (gocloud.dev)</summary>

###
[`v0.39.0`](https://redirect.github.com/google/go-cloud/releases/tag/v0.39.0)

[Compare
Source](https://redirect.github.com/google/go-cloud/compare/v0.38.0...v0.39.0)

#### BREAKING CHANGE (AWS only, V1 vs V2 SDK)

Context: AWS has [announced maintenance
mode](https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/)
for the Go V1 SDK.

Go CDK has changed the default SDK for URLs across all modules except
`docstore/awsdynamodb` to be V2 (previously you needed to add
`awssdk=v2` to the URL to get V2). Most URLs should continue to work,
but in some cases you may need to add `awssdk=v1` to force V1
explicitly.

Also, concrete type constructors (e.g., `OpenBucket`) for V1 (again,
except `docstore/awsdynamodb`) have been marked deprecated; please
migrate to using the V2 versions (e.g., `OpenBucketV2`).

Our tentative plan is to remove support for V1 in early 2025; please
[file a
bug](https://redirect.github.com/google/go-cloud/issues/new/choose) if
you have concerns about that.

#### What's Changed

- pubsub: Make batch request results independent by
[@&#8203;mitsos1os](https://redirect.github.com/mitsos1os) in
[https://github.com/google/go-cloud/pull/3457](https://redirect.github.com/google/go-cloud/pull/3457)
- docstore/all: Add support for boolean filter by
[@&#8203;ybourgery](https://redirect.github.com/ybourgery) in
[https://github.com/google/go-cloud/pull/3464](https://redirect.github.com/google/go-cloud/pull/3464)
- aws/all: Mark V1 constructors deprecated. by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3466](https://redirect.github.com/google/go-cloud/pull/3466)
- aws/all: Change the default for AWS URLs from V1 to V2. by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3465](https://redirect.github.com/google/go-cloud/pull/3465)
- all: update to go version 1.23 by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3467](https://redirect.github.com/google/go-cloud/pull/3467)

#### New Contributors

- [@&#8203;mitsos1os](https://redirect.github.com/mitsos1os) made their
first contribution in
[https://github.com/google/go-cloud/pull/3457](https://redirect.github.com/google/go-cloud/pull/3457)
- [@&#8203;dependabot](https://redirect.github.com/dependabot) made
their first contribution in
[https://github.com/google/go-cloud/pull/3448](https://redirect.github.com/google/go-cloud/pull/3448)

**Full Changelog**:
https://github.com/google/go-cloud/compare/v0.38.0...v0.39.0

###
[`v0.38.0`](https://redirect.github.com/google/go-cloud/releases/tag/v0.38.0)

[Compare
Source](https://redirect.github.com/google/go-cloud/compare/v0.37.0...v0.38.0)

**blob**

- **all**: Fix panics if reader recreation fails after Seek by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3425](https://redirect.github.com/google/go-cloud/pull/3425)
- **all**: Convert errors in `Open()` into appropriate fs errors by
[@&#8203;milescrabill](https://redirect.github.com/milescrabill) in
[https://github.com/google/go-cloud/pull/3443](https://redirect.github.com/google/go-cloud/pull/3443)
- **s3blob**: Fix Copy to work with keys that need escaping by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3403](https://redirect.github.com/google/go-cloud/pull/3403)
- **azureblob**: Do not panic if Content-Length and Content-Range are
missing by [@&#8203;chancez](https://redirect.github.com/chancez) in
[https://github.com/google/go-cloud/pull/3445](https://redirect.github.com/google/go-cloud/pull/3445)
- **fileblob**: Allow customization of the FileMode by
[@&#8203;vangent](https://redirect.github.com/vangent) in
[https://github.com/google/go-cloud/pull/3426](https://redirect.github.com/google/go-cloud/pull/3426)

**pubsub**

- **awssnssqs**: Add support for setting FIFO message metadata by
[@&#8203;bartventer](https://redirect.github.com/bartventer) in
[https://github.com/google/go-cloud/pull/3435](https://redirect.github.com/google/go-cloud/pull/3435)
- **kafkapubsub**: Configuring key_name when OpenTopicURL by
[@&#8203;ssetin](https://redirect.github.com/ssetin) in
[https://github.com/google/go-cloud/pull/3404](https://redirect.github.com/google/go-cloud/pull/3404)
- **rabbitpubsub**: Add query string set the qos prefetch count by
[@&#8203;peczenyj](https://redirect.github.com/peczenyj) in
[https://github.com/google/go-cloud/pull/3431](https://redirect.github.com/google/go-cloud/pull/3431)
- **rabbitpubsub**: Add query string to set the routing key from
metadata by [@&#8203;peczenyj](https://redirect.github.com/peczenyj) in
[https://github.com/google/go-cloud/pull/3433](https://redirect.github.com/google/go-cloud/pull/3433)
- **rabbitpubsub**: Wrap pubsub rabbitmq errors by
[@&#8203;peczenyj](https://redirect.github.com/peczenyj) in
[https://github.com/google/go-cloud/pull/3437](https://redirect.github.com/google/go-cloud/pull/3437)

**docstore**

- **all**: Fix offset handling and extend test coverage by
[@&#8203;bartventer](https://redirect.github.com/bartventer) in
[https://github.com/google/go-cloud/pull/3409](https://redirect.github.com/google/go-cloud/pull/3409)
- **awsdynamodb**: Ensure Next returns EOF when no more items by
[@&#8203;bartventer](https://redirect.github.com/bartventer) in
[https://github.com/google/go-cloud/pull/3406](https://redirect.github.com/google/go-cloud/pull/3406)
- **mongodocstore**: Update Mongo dialer when MONGO_SERVER_URL rotates
by [@&#8203;concaf](https://redirect.github.com/concaf) in
[https://github.com/google/go-cloud/pull/3429](https://redirect.github.com/google/go-cloud/pull/3429)

#### New Contributors

- [@&#8203;ssetin](https://redirect.github.com/ssetin) made their first
contribution in
[https://github.com/google/go-cloud/pull/3404](https://redirect.github.com/google/go-cloud/pull/3404)
- [@&#8203;concaf](https://redirect.github.com/concaf) made their first
contribution in
[https://github.com/google/go-cloud/pull/3429](https://redirect.github.com/google/go-cloud/pull/3429)
- [@&#8203;peczenyj](https://redirect.github.com/peczenyj) made their
first contribution in
[https://github.com/google/go-cloud/pull/3431](https://redirect.github.com/google/go-cloud/pull/3431)
- [@&#8203;chancez](https://redirect.github.com/chancez) made their
first contribution in
[https://github.com/google/go-cloud/pull/3445](https://redirect.github.com/google/go-cloud/pull/3445)
- [@&#8203;milescrabill](https://redirect.github.com/milescrabill) made
their first contribution in
[https://github.com/google/go-cloud/pull/3443](https://redirect.github.com/google/go-cloud/pull/3443)
- [@&#8203;samlaf](https://redirect.github.com/samlaf) made their first
contribution in
[https://github.com/google/go-cloud/pull/3450](https://redirect.github.com/google/go-cloud/pull/3450)

**Full Changelog**:
https://github.com/google/go-cloud/compare/v0.37.0...v0.38.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 18:13:26 +00:00
renovate[bot] fc4cd3e547
fix(deps): update opentelemetry-go monorepo (#1403)
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.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.29.0/v1.30.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.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.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.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.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.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v0.51.0` -> `v0.52.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.52.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.52.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.51.0/v0.52.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.51.0/v0.52.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://redirect.github.com/open-telemetry/opentelemetry-go)
| `v1.29.0` -> `v1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.30.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.30.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.29.0/v1.30.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.29.0/v1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.30.0`](https://redirect.github.com/open-telemetry/opentelemetry-go/compare/v1.29.0...v1.30.0)

[Compare
Source](https://redirect.github.com/open-telemetry/opentelemetry-go/compare/v1.29.0...v1.30.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:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 00:42:34 +00:00
renovate[bot] 50c9cd3ada
fix(deps): update module google.golang.org/grpc to v1.66.1 (#1402)
This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.66.1`](https://redirect.github.com/grpc/grpc-go/compare/v1.66.0...v1.66.1)

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

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 00:13:29 +00:00
renovate[bot] 18dd4e279f
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.16.2-20240906125204-0a6a901b42e8.1 (#1399)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.16.2-20240215170432-1e611e2999cc.1` ->
`v1.16.2-20240906125204-0a6a901b42e8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240215170432-1e611e2999cc.1/v1.16.2-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240215170432-1e611e2999cc.1/v1.16.2-20240906125204-0a6a901b42e8.1?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:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 16:02:07 +00:00
renovate[bot] 22aef5bbf0
fix(deps): update opentelemetry-go monorepo (#1387)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/otel](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://togithub.com/open-telemetry/opentelemetry-go)
| `v0.50.0` -> `v0.51.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.51.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.51.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.50.0/v0.51.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.50.0/v0.51.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.28.0` -> `v1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.29.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.29.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.28.0/v1.29.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.28.0/v1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.29.0`](https://togithub.com/open-telemetry/opentelemetry-go/releases/tag/v1.29.0):
/v0.51.0/v0.5.0

[Compare
Source](https://togithub.com/open-telemetry/opentelemetry-go/compare/v1.28.0...v1.29.0)

##### Overview

This release is the last to support [Go 1.21]. The next release will
require at least [Go 1.22].

##### Added

- Add MacOS ARM64 platform to the compatibility testing suite.
([#&#8203;5577](https://togithub.com/open-telemetry/opentelemetry-go/issues/5577))
- Add `InstrumentationScope` field to `SpanStub` in
`go.opentelemetry.io/otel/sdk/trace/tracetest`, as a replacement for the
deprecated `InstrumentationLibrary`.
([#&#8203;5627](https://togithub.com/open-telemetry/opentelemetry-go/issues/5627))
- Make the initial release of
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc`. This new
module contains an OTLP exporter that transmits log telemetry using
gRPC. This module is unstable and breaking changes may be introduced.
See our [versioning policy](VERSIONING.md) for more information about
these stability guarantees.
([#&#8203;5629](https://togithub.com/open-telemetry/opentelemetry-go/issues/5629))
- Add `Walk` function to `TraceState` in
`go.opentelemetry.io/otel/trace` to iterate all the key-value pairs.
([#&#8203;5651](https://togithub.com/open-telemetry/opentelemetry-go/issues/5651))
- Bridge the trace state in
`go.opentelemetry.io/otel/bridge/opencensus`.
([#&#8203;5651](https://togithub.com/open-telemetry/opentelemetry-go/issues/5651))
- Zero value of `SimpleProcessor` in `go.opentelemetry.io/otel/sdk/log`
no longer panics.
([#&#8203;5665](https://togithub.com/open-telemetry/opentelemetry-go/issues/5665))
- The `FilterProcessor` interface type is added in
`go.opentelemetry.io/otel/sdk/log/internal/x`. This is an optional and
experimental interface that log `Processor`s can implement to instruct
the `Logger` if a `Record` will be processed or not. It replaces the
existing `Enabled` method that is removed from the `Processor` interface
itself. It does not fall within the scope of the OpenTelemetry Go
versioning and stability [policy](./VERSIONING.md) and it may be changed
in backwards incompatible ways or removed in feature releases.
([#&#8203;5692](https://togithub.com/open-telemetry/opentelemetry-go/issues/5692))
- Support [Go 1.23].
([#&#8203;5720](https://togithub.com/open-telemetry/opentelemetry-go/issues/5720))

##### Changed

- `NewMemberRaw`, `NewKeyProperty` and `NewKeyValuePropertyRaw` in
`go.opentelemetry.io/otel/baggage` allow UTF-8 string in key.
([#&#8203;5132](https://togithub.com/open-telemetry/opentelemetry-go/issues/5132))
- `Processor.OnEmit` in `go.opentelemetry.io/otel/sdk/log` now accepts a
pointer to `Record` instead of a value so that the record modifications
done in a processor are propagated to subsequent registered processors.
([#&#8203;5636](https://togithub.com/open-telemetry/opentelemetry-go/issues/5636))
- `SimpleProcessor.Enabled` in `go.opentelemetry.io/otel/sdk/log` now
returns `false` if the exporter is `nil`.
([#&#8203;5665](https://togithub.com/open-telemetry/opentelemetry-go/issues/5665))
- Update the concurrency requirements of `Exporter` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;5666](https://togithub.com/open-telemetry/opentelemetry-go/issues/5666))
- `SimpleProcessor` in `go.opentelemetry.io/otel/sdk/log` synchronizes
`OnEmit` calls.
([#&#8203;5666](https://togithub.com/open-telemetry/opentelemetry-go/issues/5666))
- The `Processor` interface in `go.opentelemetry.io/otel/sdk/log` no
longer includes the `Enabled` method. See the `FilterProcessor`
interface type added in `go.opentelemetry.io/otel/sdk/log/internal/x` to
continue providing this functionality.
([#&#8203;5692](https://togithub.com/open-telemetry/opentelemetry-go/issues/5692))
- The `SimpleProcessor` type in `go.opentelemetry.io/otel/sdk/log` is no
longer comparable.
([#&#8203;5693](https://togithub.com/open-telemetry/opentelemetry-go/issues/5693))
- The `BatchProcessor` type in `go.opentelemetry.io/otel/sdk/log` is no
longer comparable.
([#&#8203;5693](https://togithub.com/open-telemetry/opentelemetry-go/issues/5693))

##### Fixed

- Correct comments for the priority of the `WithEndpoint` and
`WithEndpointURL` options and their corresponding environment variables
in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;5584](https://togithub.com/open-telemetry/opentelemetry-go/issues/5584))
- Pass the underlying error rather than a generic retry-able failure in
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`,
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp` and
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
([#&#8203;5541](https://togithub.com/open-telemetry/opentelemetry-go/issues/5541))
- Correct the `Tracer`, `Meter`, and `Logger` names used in
`go.opentelemetry.io/otel/example/dice`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Tracer` names used in
`go.opentelemetry.io/otel/example/namedtracer`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Tracer` name used in
`go.opentelemetry.io/otel/example/opencensus`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Tracer` and `Meter` names used in
`go.opentelemetry.io/otel/example/otel-collector`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Tracer` names used in
`go.opentelemetry.io/otel/example/passthrough`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Meter` name used in
`go.opentelemetry.io/otel/example/prometheus`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct the `Tracer` names used in
`go.opentelemetry.io/otel/example/zipkin`.
([#&#8203;5612](https://togithub.com/open-telemetry/opentelemetry-go/issues/5612))
- Correct comments for the priority of the `WithEndpoint` and
`WithEndpointURL` options and their corresponding environment variables
in `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc`
and `go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
([#&#8203;5641](https://togithub.com/open-telemetry/opentelemetry-go/issues/5641))
- Correct comments for the priority of the `WithEndpoint` and
`WithEndpointURL` options and their corresponding environment variables
in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;5650](https://togithub.com/open-telemetry/opentelemetry-go/issues/5650))
- Stop percent encoding header environment variables in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`,
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`,
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc` and
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`
([#&#8203;5705](https://togithub.com/open-telemetry/opentelemetry-go/issues/5705))
- Remove invalid environment variable header keys in
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`,
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`,
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc` and
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`
([#&#8203;5705](https://togithub.com/open-telemetry/opentelemetry-go/issues/5705))

##### Removed

- The `Enabled` method of the `SimpleProcessor` in
`go.opentelemetry.io/otel/sdk/log` is removed.
([#&#8203;5692](https://togithub.com/open-telemetry/opentelemetry-go/issues/5692))
- The `Enabled` method of the `BatchProcessor` in
`go.opentelemetry.io/otel/sdk/log` is removed.
([#&#8203;5692](https://togithub.com/open-telemetry/opentelemetry-go/issues/5692))

[Go 1.23]: https://go.dev/doc/go1.23

[Go 1.22]: https://go.dev/doc/go1.22

[Go 1.21]: https://go.dev/doc/go1.21

##### What's Changed

- Upgrade Go versions in CI by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5570](https://togithub.com/open-telemetry/opentelemetry-go/pull/5570)
- fix(deps): update module google.golang.org/grpc to v1.65.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5568](https://togithub.com/open-telemetry/opentelemetry-go/pull/5568)
- fix(deps): update module go.opentelemetry.io/otel/sdk/log to v0.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5571](https://togithub.com/open-telemetry/opentelemetry-go/pull/5571)
- fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog
to v0.3.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5573](https://togithub.com/open-telemetry/opentelemetry-go/pull/5573)
- fix(deps): update module
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.53.0
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5574](https://togithub.com/open-telemetry/opentelemetry-go/pull/5574)
- Implement otlploggrpc gRPC client by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5572](https://togithub.com/open-telemetry/opentelemetry-go/pull/5572)
- chore(deps): update module golang.org/x/sys to v0.22.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5576](https://togithub.com/open-telemetry/opentelemetry-go/pull/5576)
- chore(deps): update module golang.org/x/net to v0.27.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5581](https://togithub.com/open-telemetry/opentelemetry-go/pull/5581)
- Enable benchmark summary for release by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5527](https://togithub.com/open-telemetry/opentelemetry-go/pull/5527)
- sdk/log: Add package example by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5579](https://togithub.com/open-telemetry/opentelemetry-go/pull/5579)
- \[chore] Update macOS runners by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5577](https://togithub.com/open-telemetry/opentelemetry-go/pull/5577)
- fix(deps): update module golang.org/x/tools to v0.23.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5583](https://togithub.com/open-telemetry/opentelemetry-go/pull/5583)
- fix(deps): update golang.org/x/exp digest to
[`46b0784`](https://togithub.com/open-telemetry/opentelemetry-go/commit/46b0784)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5585](https://togithub.com/open-telemetry/opentelemetry-go/pull/5585)
- baggage: Fix invalid percent-encoded octet sequences by
[@&#8203;santileira](https://togithub.com/santileira) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5528](https://togithub.com/open-telemetry/opentelemetry-go/pull/5528)
- Extend trace config benchmarks to run each option individually by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5566](https://togithub.com/open-telemetry/opentelemetry-go/pull/5566)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`654c5fe`](https://togithub.com/open-telemetry/opentelemetry-go/commit/654c5fe)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5587](https://togithub.com/open-telemetry/opentelemetry-go/pull/5587)
- Protect released changelog in CI by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5560](https://togithub.com/open-telemetry/opentelemetry-go/pull/5560)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`4ad9e85`](https://togithub.com/open-telemetry/opentelemetry-go/commit/4ad9e85)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5588](https://togithub.com/open-telemetry/opentelemetry-go/pull/5588)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`4ad9e85`](https://togithub.com/open-telemetry/opentelemetry-go/commit/4ad9e85)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5589](https://togithub.com/open-telemetry/opentelemetry-go/pull/5589)
- Correct the comment for the priority of options and environments on
otlptracehttp by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5584](https://togithub.com/open-telemetry/opentelemetry-go/pull/5584)
- \[chore] Add missing changelog entry for
[#&#8203;5577](https://togithub.com/open-telemetry/opentelemetry-go/issues/5577)
by [@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5586](https://togithub.com/open-telemetry/opentelemetry-go/pull/5586)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`40e1e62`](https://togithub.com/open-telemetry/opentelemetry-go/commit/40e1e62)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5592](https://togithub.com/open-telemetry/opentelemetry-go/pull/5592)
- Implement otlploggrpc exporter by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5582](https://togithub.com/open-telemetry/opentelemetry-go/pull/5582)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`40e1e62`](https://togithub.com/open-telemetry/opentelemetry-go/commit/40e1e62)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5593](https://togithub.com/open-telemetry/opentelemetry-go/pull/5593)
- fix(deps): update module go.opentelemetry.io/build-tools/crosslink to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5594](https://togithub.com/open-telemetry/opentelemetry-go/pull/5594)
- fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5595](https://togithub.com/open-telemetry/opentelemetry-go/pull/5595)
- fix(deps): update module go.opentelemetry.io/build-tools/multimod to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5596](https://togithub.com/open-telemetry/opentelemetry-go/pull/5596)
- fix(deps): update module go.opentelemetry.io/build-tools/semconvgen to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5597](https://togithub.com/open-telemetry/opentelemetry-go/pull/5597)
- chore(deps): update prom/prometheus docker tag to v2.53.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5603](https://togithub.com/open-telemetry/opentelemetry-go/pull/5603)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.59 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5605](https://togithub.com/open-telemetry/opentelemetry-go/pull/5605)
- Add TestSpanStartConfigAttributeMutability by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5591](https://togithub.com/open-telemetry/opentelemetry-go/pull/5591)
- log: Add missing notice to Bytes, Slice, Map doc comment by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5598](https://togithub.com/open-telemetry/opentelemetry-go/pull/5598)
- Add TestConfigLinkMutability by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5604](https://togithub.com/open-telemetry/opentelemetry-go/pull/5604)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`46eb208`](https://togithub.com/open-telemetry/opentelemetry-go/commit/46eb208)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5610](https://togithub.com/open-telemetry/opentelemetry-go/pull/5610)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`46eb208`](https://togithub.com/open-telemetry/opentelemetry-go/commit/46eb208)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5611](https://togithub.com/open-telemetry/opentelemetry-go/pull/5611)
- sdk/log: Refine BenchmarkProcessor by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5607](https://togithub.com/open-telemetry/opentelemetry-go/pull/5607)
- sdk/log: Simple processor may be useful for production by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5578](https://togithub.com/open-telemetry/opentelemetry-go/pull/5578)
- Fix verify_released_changelog.sh by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5616](https://togithub.com/open-telemetry/opentelemetry-go/pull/5616)
- Add resource metrics transform benchmarks by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5602](https://togithub.com/open-telemetry/opentelemetry-go/pull/5602)
- Add benchmark for turning readonly spans into their proto struct by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5601](https://togithub.com/open-telemetry/opentelemetry-go/pull/5601)
- sdk/log: Package documentation by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5609](https://togithub.com/open-telemetry/opentelemetry-go/pull/5609)
- Document Logger name and version recommendations by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5613](https://togithub.com/open-telemetry/opentelemetry-go/pull/5613)
- Add comment to other observable instruments about repeated creation
with callbacks by [@&#8203;dashpole](https://togithub.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5606](https://togithub.com/open-telemetry/opentelemetry-go/pull/5606)
- Update example instrumentation names by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5612](https://togithub.com/open-telemetry/opentelemetry-go/pull/5612)
- Add integration tests for otlploggrpc exporter by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5614](https://togithub.com/open-telemetry/opentelemetry-go/pull/5614)
- Add example test for otlploggrpc by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5615](https://togithub.com/open-telemetry/opentelemetry-go/pull/5615)
- Add entry for logs in `go.opentelemetry.io/otel` package documentation
by [@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5621](https://togithub.com/open-telemetry/opentelemetry-go/pull/5621)
- Refactor Batch Processor benchmark to really test OnEnd by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5600](https://togithub.com/open-telemetry/opentelemetry-go/pull/5600)
- Separate trace API components into own files by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5620](https://togithub.com/open-telemetry/opentelemetry-go/pull/5620)
- fix(deps): update golang.org/x/exp digest to
[`e3f2596`](https://togithub.com/open-telemetry/opentelemetry-go/commit/e3f2596)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5624](https://togithub.com/open-telemetry/opentelemetry-go/pull/5624)
- fix(deps): update module golang.org/x/vuln to v1.1.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5625](https://togithub.com/open-telemetry/opentelemetry-go/pull/5625)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.105.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5626](https://togithub.com/open-telemetry/opentelemetry-go/pull/5626)
- Add `otlploggrpc` package documentation by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5622](https://togithub.com/open-telemetry/opentelemetry-go/pull/5622)
- Parse errormsgs in retryable status codes by
[@&#8203;pree-dew](https://togithub.com/pree-dew) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5541](https://togithub.com/open-telemetry/opentelemetry-go/pull/5541)
- Include otlploggrpc module into the experimental-logs by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5629](https://togithub.com/open-telemetry/opentelemetry-go/pull/5629)
- Rely on net/http error content rather than unreliable deadline
exceeded by [@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5631](https://togithub.com/open-telemetry/opentelemetry-go/pull/5631)
- fix(deps): update golang.org/x/exp digest to
[`8a7402a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/8a7402a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5633](https://togithub.com/open-telemetry/opentelemetry-go/pull/5633)
- baggage: fix grammar error by
[@&#8203;kevinburkesegment](https://togithub.com/kevinburkesegment) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5634](https://togithub.com/open-telemetry/opentelemetry-go/pull/5634)
- Fix otlp grpc exporters doc to require a scheme by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5632](https://togithub.com/open-telemetry/opentelemetry-go/pull/5632)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`d784300`](https://togithub.com/open-telemetry/opentelemetry-go/commit/d784300)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5638](https://togithub.com/open-telemetry/opentelemetry-go/pull/5638)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`d784300`](https://togithub.com/open-telemetry/opentelemetry-go/commit/d784300)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5637](https://togithub.com/open-telemetry/opentelemetry-go/pull/5637)
- Use actuated runner to run benchmark by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5635](https://togithub.com/open-telemetry/opentelemetry-go/pull/5635)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`e6d459c`](https://togithub.com/open-telemetry/opentelemetry-go/commit/e6d459c)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5639](https://togithub.com/open-telemetry/opentelemetry-go/pull/5639)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`e6d459c`](https://togithub.com/open-telemetry/opentelemetry-go/commit/e6d459c)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5640](https://togithub.com/open-telemetry/opentelemetry-go/pull/5640)
- Allow relying on InstrumentationScope in SpanStub and fix remaining
deprecation issues by [@&#8203;dmathieu](https://togithub.com/dmathieu)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5627](https://togithub.com/open-telemetry/opentelemetry-go/pull/5627)
- Correct the comment for the priority of options and environments on
otlpmetric by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5641](https://togithub.com/open-telemetry/opentelemetry-go/pull/5641)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`93522f1`](https://togithub.com/open-telemetry/opentelemetry-go/commit/93522f1)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5646](https://togithub.com/open-telemetry/opentelemetry-go/pull/5646)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`93522f1`](https://togithub.com/open-telemetry/opentelemetry-go/commit/93522f1)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5647](https://togithub.com/open-telemetry/opentelemetry-go/pull/5647)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.21.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5648](https://togithub.com/open-telemetry/opentelemetry-go/pull/5648)
- fix(deps): update github.com/opentracing-contrib/go-grpc digest to
[`9dec25a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/9dec25a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5643](https://togithub.com/open-telemetry/opentelemetry-go/pull/5643)
- typo: fix docs by
[@&#8203;intiramisu](https://togithub.com/intiramisu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5649](https://togithub.com/open-telemetry/opentelemetry-go/pull/5649)
- Enable all benchmarks in CI by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5644](https://togithub.com/open-telemetry/opentelemetry-go/pull/5644)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.106.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5654](https://togithub.com/open-telemetry/opentelemetry-go/pull/5654)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`b1a4ccb`](https://togithub.com/open-telemetry/opentelemetry-go/commit/b1a4ccb)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5656](https://togithub.com/open-telemetry/opentelemetry-go/pull/5656)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`b1a4ccb`](https://togithub.com/open-telemetry/opentelemetry-go/commit/b1a4ccb)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5655](https://togithub.com/open-telemetry/opentelemetry-go/pull/5655)
- Fix benchmark ci by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5657](https://togithub.com/open-telemetry/opentelemetry-go/pull/5657)
- \[chore] Add asasalint linter by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5653](https://togithub.com/open-telemetry/opentelemetry-go/pull/5653)
- \[chore] Add bodyclose linter by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5659](https://togithub.com/open-telemetry/opentelemetry-go/pull/5659)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.106.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5662](https://togithub.com/open-telemetry/opentelemetry-go/pull/5662)
- \[chore] Remove toolchain from go.mod by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5661](https://togithub.com/open-telemetry/opentelemetry-go/pull/5661)
- sdk/log: Processor.OnEmit accetps a Record pointer by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5636](https://togithub.com/open-telemetry/opentelemetry-go/pull/5636)
- Fix membership link by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5667](https://togithub.com/open-telemetry/opentelemetry-go/pull/5667)
- Correct the comment for the priority of options and environments on
otlploghttp by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5650](https://togithub.com/open-telemetry/opentelemetry-go/pull/5650)
- Fix benchmark that does not compare the exact result from the previous
commit by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5664](https://togithub.com/open-telemetry/opentelemetry-go/pull/5664)
- sdk/log: SimpleProcessor to not panic for zero value by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5665](https://togithub.com/open-telemetry/opentelemetry-go/pull/5665)
- chore(deps): update module golang.org/x/sys to v0.23.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5669](https://togithub.com/open-telemetry/opentelemetry-go/pull/5669)
- Fix interfaces doc formatting by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5658](https://togithub.com/open-telemetry/opentelemetry-go/pull/5658)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`2c9e96a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/2c9e96a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5673](https://togithub.com/open-telemetry/opentelemetry-go/pull/5673)
- fix(deps): update module golang.org/x/tools to v0.24.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5677](https://togithub.com/open-telemetry/opentelemetry-go/pull/5677)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`2c9e96a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/2c9e96a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5672](https://togithub.com/open-telemetry/opentelemetry-go/pull/5672)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.60 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5675](https://togithub.com/open-telemetry/opentelemetry-go/pull/5675)
- chore(deps): update module golang.org/x/net to v0.28.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5676](https://togithub.com/open-telemetry/opentelemetry-go/pull/5676)
- Fix stdoutlog import path by
[@&#8203;mikelolasagasti](https://togithub.com/mikelolasagasti) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5670](https://togithub.com/open-telemetry/opentelemetry-go/pull/5670)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`573a115`](https://togithub.com/open-telemetry/opentelemetry-go/commit/573a115)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5697](https://togithub.com/open-telemetry/opentelemetry-go/pull/5697)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`573a115`](https://togithub.com/open-telemetry/opentelemetry-go/commit/573a115)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5698](https://togithub.com/open-telemetry/opentelemetry-go/pull/5698)
- fix(deps): update golang.org/x/exp digest to
[`0cdaa3a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/0cdaa3a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5699](https://togithub.com/open-telemetry/opentelemetry-go/pull/5699)
- chore(deps): update module golang.org/x/sys to v0.24.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5700](https://togithub.com/open-telemetry/opentelemetry-go/pull/5700)
- sdk/log: SimpleProcessor synchronizes OnEmit calls by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5666](https://togithub.com/open-telemetry/opentelemetry-go/pull/5666)
- Ensure exported struct in `sdk/log` are not comparable by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5693](https://togithub.com/open-telemetry/opentelemetry-go/pull/5693)
- Use self hosted runner to run benchmark by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5695](https://togithub.com/open-telemetry/opentelemetry-go/pull/5695)
- Save benchmark cache even the job is failed by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5694](https://togithub.com/open-telemetry/opentelemetry-go/pull/5694)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`8ffd90a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/8ffd90a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5708](https://togithub.com/open-telemetry/opentelemetry-go/pull/5708)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`8ffd90a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/8ffd90a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5709](https://togithub.com/open-telemetry/opentelemetry-go/pull/5709)
- baggage: Accept non-ASCII keys by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5132](https://togithub.com/open-telemetry/opentelemetry-go/pull/5132)
- Stabilize benchmark result of `BenchmarkValueEqual` by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5717](https://togithub.com/open-telemetry/opentelemetry-go/pull/5717)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`ddb44da`](https://togithub.com/open-telemetry/opentelemetry-go/commit/ddb44da)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5715](https://togithub.com/open-telemetry/opentelemetry-go/pull/5715)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`ddb44da`](https://togithub.com/open-telemetry/opentelemetry-go/commit/ddb44da)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5714](https://togithub.com/open-telemetry/opentelemetry-go/pull/5714)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.22.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5718](https://togithub.com/open-telemetry/opentelemetry-go/pull/5718)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5713](https://togithub.com/open-telemetry/opentelemetry-go/pull/5713)
- chore(deps): update prom/prometheus docker tag to v2.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5701](https://togithub.com/open-telemetry/opentelemetry-go/pull/5701)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.107.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5710](https://togithub.com/open-telemetry/opentelemetry-go/pull/5710)
- chore(deps): update golang docker tag to v1.23 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5712](https://togithub.com/open-telemetry/opentelemetry-go/pull/5712)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5721](https://togithub.com/open-telemetry/opentelemetry-go/pull/5721)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`278611b`](https://togithub.com/open-telemetry/opentelemetry-go/commit/278611b)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5723](https://togithub.com/open-telemetry/opentelemetry-go/pull/5723)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`278611b`](https://togithub.com/open-telemetry/opentelemetry-go/commit/278611b)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5724](https://togithub.com/open-telemetry/opentelemetry-go/pull/5724)
- Add support for go 1.23 by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5720](https://togithub.com/open-telemetry/opentelemetry-go/pull/5720)
- Bugfix: OTLP exporters should not percent decode the key when parsing
HEADERS env vars by [@&#8203;zhihali](https://togithub.com/zhihali) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5705](https://togithub.com/open-telemetry/opentelemetry-go/pull/5705)
- OpenCensus bridge to support TraceState by
[@&#8203;jianwu](https://togithub.com/jianwu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5651](https://togithub.com/open-telemetry/opentelemetry-go/pull/5651)
- Move `log.Processor.Enabled` to independent `FilterProcessor`
interfaced type by [@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5692](https://togithub.com/open-telemetry/opentelemetry-go/pull/5692)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`fc7c04a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/fc7c04a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5726](https://togithub.com/open-telemetry/opentelemetry-go/pull/5726)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`fc7c04a`](https://togithub.com/open-telemetry/opentelemetry-go/commit/fc7c04a)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5727](https://togithub.com/open-telemetry/opentelemetry-go/pull/5727)
- fix(deps): update golang.org/x/exp digest to
[`778ce7b`](https://togithub.com/open-telemetry/opentelemetry-go/commit/778ce7b)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5728](https://togithub.com/open-telemetry/opentelemetry-go/pull/5728)
- fix(deps): update golang.org/x/exp digest to
[`9b4947d`](https://togithub.com/open-telemetry/opentelemetry-go/commit/9b4947d)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5729](https://togithub.com/open-telemetry/opentelemetry-go/pull/5729)
- fix(deps): update module github.com/golangci/golangci-lint to v1.60.2
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5711](https://togithub.com/open-telemetry/opentelemetry-go/pull/5711)
- fix(deps): update module github.com/golangci/golangci-lint to v1.60.3
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5730](https://togithub.com/open-telemetry/opentelemetry-go/pull/5730)
- Release v1.29.0/v0.51.0/v0.5.0 by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5732](https://togithub.com/open-telemetry/opentelemetry-go/pull/5732)

##### New Contributors

- [@&#8203;santileira](https://togithub.com/santileira) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5528](https://togithub.com/open-telemetry/opentelemetry-go/pull/5528)
- [@&#8203;pree-dew](https://togithub.com/pree-dew) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5541](https://togithub.com/open-telemetry/opentelemetry-go/pull/5541)
- [@&#8203;intiramisu](https://togithub.com/intiramisu) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5649](https://togithub.com/open-telemetry/opentelemetry-go/pull/5649)
- [@&#8203;mikelolasagasti](https://togithub.com/mikelolasagasti) made
their first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5670](https://togithub.com/open-telemetry/opentelemetry-go/pull/5670)
- [@&#8203;jianwu](https://togithub.com/jianwu) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5651](https://togithub.com/open-telemetry/opentelemetry-go/pull/5651)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.28.0...v1.29.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://togithub.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:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 13:43:55 +00:00
renovate[bot] 0721e02daa
fix(deps): update module golang.org/x/net to v0.29.0 (#1398)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 10:41:35 +00:00
renovate[bot] 1507e19e93
fix(deps): update module golang.org/x/mod to v0.21.0 (#1397)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 06:55:33 +00:00
renovate[bot] f9a7d10590
fix(deps): update module golang.org/x/crypto to v0.27.0 (#1396)
This PR contains the following updates:

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 04:10:36 +00:00
renovate[bot] 231701346a
fix(deps): update module github.com/rs/xid to v1.6.0 (#1386)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/rs/xid](https://redirect.github.com/rs/xid) | `v1.5.0` ->
`v1.6.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2frs%2fxid/v1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2frs%2fxid/v1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2frs%2fxid/v1.5.0/v1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2frs%2fxid/v1.5.0/v1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>rs/xid (github.com/rs/xid)</summary>

###
[`v1.6.0`](https://redirect.github.com/rs/xid/compare/v1.5.0...v1.6.0)

[Compare
Source](https://redirect.github.com/rs/xid/compare/v1.5.0...v1.6.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 01:45:04 +00:00
renovate[bot] 8fd16b23b1
fix(deps): update module github.com/prometheus/client_golang to v1.20.3 (#1384)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.3`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.3)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.2...v1.20.3)

- \[BUGFIX] histograms: Fix possible data race when appending exemplars.
[#&#8203;1608](https://redirect.github.com/prometheus/client_golang/issues/1608)

###
[`v1.20.2`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.2)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.1...v1.20.2)

- \[BUGFIX] promhttp: Unset Content-Encoding header when data is
uncompressed.
[#&#8203;1596](https://redirect.github.com/prometheus/client_golang/issues/1596)

###
[`v1.20.1`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.1)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.0...v1.20.1)

- \[BUGFIX] process-collector: Fixed unregistered descriptor error when
using process collector with PedanticRegistry on Linux machines.
[#&#8203;1587](https://redirect.github.com/prometheus/client_golang/issues/1587)

###
[`v1.20.0`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

⚠️ In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] ⚠️ go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://redirect.github.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://redirect.github.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://redirect.github.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://redirect.github.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://redirect.github.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://redirect.github.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://redirect.github.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://redirect.github.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://redirect.github.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://redirect.github.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://redirect.github.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://redirect.github.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://redirect.github.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://redirect.github.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://redirect.github.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://redirect.github.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://redirect.github.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://redirect.github.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://redirect.github.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://redirect.github.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://redirect.github.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://redirect.github.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://redirect.github.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://redirect.github.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://redirect.github.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://redirect.github.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://redirect.github.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://redirect.github.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://redirect.github.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://redirect.github.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://redirect.github.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://redirect.github.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://redirect.github.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://redirect.github.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://redirect.github.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://redirect.github.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://redirect.github.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://redirect.github.com/ArthurSens)
in
[https://github.com/prometheus/client_golang/pull/1389](https://redirect.github.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://redirect.github.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://redirect.github.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://redirect.github.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://redirect.github.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://redirect.github.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://redirect.github.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://redirect.github.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://redirect.github.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://redirect.github.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://redirect.github.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://redirect.github.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://redirect.github.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://redirect.github.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://redirect.github.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://redirect.github.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://redirect.github.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://redirect.github.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://redirect.github.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://redirect.github.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://redirect.github.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://redirect.github.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://redirect.github.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://redirect.github.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://redirect.github.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://redirect.github.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://redirect.github.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://redirect.github.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://redirect.github.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://redirect.github.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://redirect.github.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://redirect.github.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://redirect.github.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://redirect.github.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://redirect.github.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://redirect.github.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://redirect.github.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://redirect.github.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://redirect.github.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://redirect.github.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://redirect.github.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://redirect.github.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://redirect.github.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://redirect.github.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1541](https://redirect.github.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://redirect.github.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://redirect.github.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://redirect.github.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://redirect.github.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://redirect.github.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://redirect.github.com/prometheus/client_golang/pull/1537)
- Update README.md by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1556](https://redirect.github.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://redirect.github.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://redirect.github.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://redirect.github.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://redirect.github.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1562](https://redirect.github.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://redirect.github.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://redirect.github.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://redirect.github.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://redirect.github.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)
in
[https://github.com/prometheus/client_golang/pull/1565](https://redirect.github.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://redirect.github.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://redirect.github.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://redirect.github.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://redirect.github.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://redirect.github.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://redirect.github.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://redirect.github.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://redirect.github.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://redirect.github.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://redirect.github.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://redirect.github.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://redirect.github.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://redirect.github.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://redirect.github.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://redirect.github.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://redirect.github.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://redirect.github.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://redirect.github.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://redirect.github.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://redirect.github.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://redirect.github.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://redirect.github.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://redirect.github.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://redirect.github.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://redirect.github.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://redirect.github.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://redirect.github.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://redirect.github.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://redirect.github.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://redirect.github.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://redirect.github.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://redirect.github.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://redirect.github.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 22:12:05 +00:00
renovate[bot] 3b5a818b69
fix(deps): update module github.com/open-feature/flagd/core to v0.10.2 (#1385)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://togithub.com/open-feature/flagd)
| `v0.10.1` -> `v0.10.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.1/v0.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.1/v0.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-feature/flagd
(github.com/open-feature/flagd/core)</summary>

###
[`v0.10.2`](https://togithub.com/open-feature/flagd/releases/tag/flagd/v0.10.2):
flagd: v0.10.2

#####  New Features

- Create interface for eval events.
([#&#8203;1288](https://togithub.com/open-feature/flagd/issues/1288))
([9714215](9714215ced))

##### 🧹 Chore

- bump go deps to latest
([#&#8203;1307](https://togithub.com/open-feature/flagd/issues/1307))
([004ad08](004ad083dc))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 15:35:44 -04:00
renovate[bot] 8bd549e860
fix(deps): update module github.com/rs/cors to v1.11.1 (#1392)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/rs/cors](https://togithub.com/rs/cors) | `v1.11.0` ->
`v1.11.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2frs%2fcors/v1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2frs%2fcors/v1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2frs%2fcors/v1.11.0/v1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2frs%2fcors/v1.11.0/v1.11.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>rs/cors (github.com/rs/cors)</summary>

### [`v1.11.1`](https://togithub.com/rs/cors/compare/v1.11.0...v1.11.1)

[Compare Source](https://togithub.com/rs/cors/compare/v1.11.0...v1.11.1)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 15:35:10 -04:00
renovate[bot] c96e9d764a
fix(deps): update module google.golang.org/grpc to v1.66.0 (#1393)
This PR contains the following updates:

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

---

### Release Notes

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

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

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

### New Features

- metadata: stabilize `ValueFromIncomingContext`
([#&#8203;7368](https://redirect.github.com/grpc/grpc-go/issues/7368))
- Special Thanks:
[@&#8203;KarthikReddyPuli](https://redirect.github.com/KarthikReddyPuli)
- client: stabilize the `WaitForStateChange` and `GetState` methods,
which were previously experimental.
([#&#8203;7425](https://redirect.github.com/grpc/grpc-go/issues/7425))
- xds: Implement ADS flow control mechanism
([#&#8203;7458](https://redirect.github.com/grpc/grpc-go/issues/7458))
- See
[https://github.com/grpc/grpc/issues/34099](https://redirect.github.com/grpc/grpc/issues/34099)
for context.
- balancer/rls: Add metrics for data cache and picker internals
([#&#8203;7484](https://redirect.github.com/grpc/grpc-go/issues/7484),
[#&#8203;7495](https://redirect.github.com/grpc/grpc-go/issues/7495))
- xds: LRS load reports now include the `total_issued_requests` field.
([#&#8203;7544](https://redirect.github.com/grpc/grpc-go/issues/7544))

### Bug Fixes

- grpc: Clients now return status code INTERNAL instead of UNIMPLEMENTED
when the server uses an unsupported compressor. This is consistent with
the [gRPC compression
spec](https://redirect.github.com/grpc/grpc/blob/master/doc/compression.md#compression-method-asymmetry-between-peers).
([#&#8203;7461](https://redirect.github.com/grpc/grpc-go/issues/7461))
- Special Thanks:
[@&#8203;Gayathri625](https://redirect.github.com/Gayathri625)
- transport: Fix a bug which could result in writes busy looping when
the underlying `conn.Write` returns errors
([#&#8203;7394](https://redirect.github.com/grpc/grpc-go/issues/7394))
- Special Thanks: [@&#8203;veshij](https://redirect.github.com/veshij)
- client: fix race that could lead to orphaned connections and
associated resources.
([#&#8203;7390](https://redirect.github.com/grpc/grpc-go/issues/7390))
- xds: use locality from the connected address for load reporting with
pick_first
([#&#8203;7378](https://redirect.github.com/grpc/grpc-go/issues/7378))
- without this fix, if a priority contains multiple localities with
pick_first, load was reported for the wrong locality
- client: prevent hanging during ClientConn.Close() when the network is
unreachable
([#&#8203;7540](https://redirect.github.com/grpc/grpc-go/issues/7540))

### Performance Improvements

- transport: double buffering is avoided when using an http connect
proxy and the target server waits for client to send the first message.
([#&#8203;7424](https://redirect.github.com/grpc/grpc-go/issues/7424))
- codec: Implement a new `Codec` which uses buffer recycling for encoded
message
([#&#8203;7356](https://redirect.github.com/grpc/grpc-go/issues/7356))
- introduce a `mem` package to facilitate buffer reuse
([#&#8203;7432](https://redirect.github.com/grpc/grpc-go/issues/7432))
- Special Thanks:
[@&#8203;PapaCharlie](https://redirect.github.com/PapaCharlie)

</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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 15:34:51 -04:00
Todd Baert 92713220ec
chore: troublesshot renovate config
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-09-05 15:13:57 -04:00
Todd Baert 02840033b9
chore: troubleshoot renovate.json
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-09-05 15:08:00 -04:00
Michael Beemer df937e9eb2
docs: update playground libraries (#1394)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-30 09:49:35 -04:00
github-actions[bot] b6c18f35ec
chore: release main (#1356)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.2</summary>

##
[0.11.2](https://github.com/open-feature/flagd/compare/flagd/v0.11.1...flagd/v0.11.2)
(2024-08-22)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240215170432-1e611e2999cc.1
([#1372](https://github.com/open-feature/flagd/issues/1372))
([ae24595](ae2459504f))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.1
([#1355](https://github.com/open-feature/flagd/issues/1355))
([8fcfb14](8fcfb146b0))
* **deps:** update module golang.org/x/net to v0.28.0
([#1380](https://github.com/open-feature/flagd/issues/1380))
([239a432](239a432c18))
* **deps:** update module golang.org/x/sync to v0.8.0
([#1378](https://github.com/open-feature/flagd/issues/1378))
([4804c17](4804c17a67))


### 🧹 Chore

* **deps:** update dependency go to v1.22.6
([#1297](https://github.com/open-feature/flagd/issues/1297))
([50b92c1](50b92c17cf))
* **deps:** update golang docker tag to v1.23
([#1382](https://github.com/open-feature/flagd/issues/1382))
([abb5ca3](abb5ca3e31))
* improve gRPC sync service shutdown behavior
([#1375](https://github.com/open-feature/flagd/issues/1375))
([79d9085](79d9085a50))
</details>

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

##
[0.6.5](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.4...flagd-proxy/v0.6.5)
(2024-08-22)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240215170432-1e611e2999cc.1
([#1372](https://github.com/open-feature/flagd/issues/1372))
([ae24595](ae2459504f))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.1
([#1355](https://github.com/open-feature/flagd/issues/1355))
([8fcfb14](8fcfb146b0))
* **deps:** update module golang.org/x/net to v0.28.0
([#1380](https://github.com/open-feature/flagd/issues/1380))
([239a432](239a432c18))
* **deps:** update module golang.org/x/sync to v0.8.0
([#1378](https://github.com/open-feature/flagd/issues/1378))
([4804c17](4804c17a67))


### 🧹 Chore

* **deps:** update dependency go to v1.22.6
([#1297](https://github.com/open-feature/flagd/issues/1297))
([50b92c1](50b92c17cf))
* **deps:** update golang docker tag to v1.23
([#1382](https://github.com/open-feature/flagd/issues/1382))
([abb5ca3](abb5ca3e31))


### 📚 Documentation

* **flagd-proxy:** removed invalid grpc prefix from uri config
([4911697](4911697ab1))
</details>

<details><summary>core: 0.10.2</summary>

##
[0.10.2](https://github.com/open-feature/flagd/compare/core/v0.10.1...core/v0.10.2)
(2024-08-22)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.5.1-20240215170432-1e611e2999cc.1
([#1372](https://github.com/open-feature/flagd/issues/1372))
([ae24595](ae2459504f))
* **deps:** update module connectrpc.com/otelconnect to v0.7.1
([#1367](https://github.com/open-feature/flagd/issues/1367))
([184915b](184915b317))
* **deps:** update module
github.com/open-feature/open-feature-operator/apis to v0.2.44
([#1368](https://github.com/open-feature/flagd/issues/1368))
([0c68726](0c68726bed))
* **deps:** update module golang.org/x/crypto to v0.26.0
([#1379](https://github.com/open-feature/flagd/issues/1379))
([05f6658](05f6658e3d))
* **deps:** update module golang.org/x/mod to v0.20.0
([#1377](https://github.com/open-feature/flagd/issues/1377))
([797d7a4](797d7a4bba))
* **deps:** update module golang.org/x/sync to v0.8.0
([#1378](https://github.com/open-feature/flagd/issues/1378))
([4804c17](4804c17a67))


###  New Features

* add 'watcher' interface to file sync
([#1365](https://github.com/open-feature/flagd/issues/1365))
([61fff43](61fff43e28))
* added new grpc sync config option to allow setting max receive message
size. ([#1358](https://github.com/open-feature/flagd/issues/1358))
([bed077b](bed077bac9))
* Support blob type sources and GCS as an example of such source.
([#1366](https://github.com/open-feature/flagd/issues/1366))
([21f2c9a](21f2c9a5d6))


### 🧹 Chore

* **deps:** update dependency go to v1.22.6
([#1297](https://github.com/open-feature/flagd/issues/1297))
([50b92c1](50b92c17cf))
</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>
2024-08-22 14:50:15 -04:00
Dave Josephsen 61fff43e28
feat: add 'watcher' interface to file sync (#1365)
Implement fsnotify and `os.Stat` based watchers

fixes: #1344

<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
Intent of this PR is to begin a conversation about fixing #1344. The
approach taken is to replace the current use of `fsontify.Watcher` with
a local `Watcher` interface type that describes the `fsnotify.Watcher`
interface.

My original take was to use fsnotify.Watcher directly as an
implementation of local `Watcher`, but fsnotify's Watcher directly
exposes its Error and Event channels, making it impossible to describe
with an interface, so I had to create a small wrapper for
`fsnotify.Watcher` to satisfy the new Watcher interface (this is
fsnotify_watcher.go). From there, we implement the `Watcher` interface
again, this time using `os.Stat` and `fs.FileInfo` (this is
fileinfo_watcher.go).

Then we change the filepath sync code to use an interface to Watcher,
rather than fsnotify.Watcher directly. The new fileinfo watcher plugs
right in, and nothing really needs to change in the sync.

* I have not wired up configs, so the fileinfo watcher has a hard-coded
1-second polling interval, and there is no current means of selecting
between them.
* I've added a couple tests, to demonstrate how unit tests would work in
general (we use a configurable os-stat func in the fileinfo watcher,
which can be mocked for tests)
* I don't have a way of testing this on Windows. I'm vaguely aware
there's an upstream issue in package `fs` that may require some
work-around boilerplate to make this work on windows at the moment.

If yall are favorable to this approach, I'll finish wiring up configs,
and flesh out the tests. I didn't want to go much further without some
buy-in or feedback.

### Related Issues

Fixes #1344 

### Notes
See bullet-points above

### How to test
go test -v ./...

---------

Signed-off-by: Dave Josephsen <dave.josephsen@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-22 14:02:31 -04:00
renovate[bot] abb5ca3e31
chore(deps): update golang docker tag to v1.23 (#1382)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | minor | `1.22-alpine` -> `1.23-alpine` |

---

### 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.

🔕 **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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 18:15:00 +00:00
Michael Beemer 871c7497e9
docs: add note about metric name transformation (#1374)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-19 12:38:02 -04:00
renovate[bot] 239a432c18
fix(deps): update module golang.org/x/net to v0.28.0 (#1380)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/net | `v0.27.0` -> `v0.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fnet/v0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fnet/v0.27.0/v0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.27.0/v0.28.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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xOC4xNyIsInVwZGF0ZWRJblZlciI6IjM4LjE4LjE3IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 04:02:37 +00:00
renovate[bot] 50b92c17cf
chore(deps): update dependency go to v1.22.6 (#1297)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://go.dev/) ([source](https://togithub.com/golang/go)) |
toolchain | minor | `1.21.4` -> `1.22.6` |

---

### Release Notes

<details>
<summary>golang/go (go)</summary>

###
[`v1.22.6`](https://togithub.com/golang/go/compare/go1.22.5...go1.22.6)

###
[`v1.22.5`](https://togithub.com/golang/go/compare/go1.22.4...go1.22.5)

###
[`v1.22.4`](https://togithub.com/golang/go/compare/go1.22.3...go1.22.4)

###
[`v1.22.3`](https://togithub.com/golang/go/compare/go1.22.2...go1.22.3)

###
[`v1.22.2`](https://togithub.com/golang/go/compare/go1.22.1...go1.22.2)

###
[`v1.22.1`](https://togithub.com/golang/go/compare/go1.22.0...go1.22.1)

###
[`v1.22.0`](https://togithub.com/golang/go/compare/go1.21.10...go1.22.0)

###
[`v1.21.13`](https://togithub.com/golang/go/compare/go1.21.12...go1.21.13)

###
[`v1.21.12`](https://togithub.com/golang/go/compare/go1.21.11...go1.21.12)

###
[`v1.21.11`](https://togithub.com/golang/go/compare/go1.21.10...go1.21.11)

###
[`v1.21.10`](https://togithub.com/golang/go/compare/go1.21.9...go1.21.10)

###
[`v1.21.9`](https://togithub.com/golang/go/compare/go1.21.8...go1.21.9)

###
[`v1.21.8`](https://togithub.com/golang/go/compare/go1.21.7...go1.21.8)

###
[`v1.21.7`](https://togithub.com/golang/go/compare/go1.21.6...go1.21.7)

###
[`v1.21.6`](https://togithub.com/golang/go/compare/go1.21.5...go1.21.6)

###
[`v1.21.5`](https://togithub.com/golang/go/compare/go1.21.4...go1.21.5)

</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.

🔕 **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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM4LjE4LjE3IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 00:00:54 +00:00
renovate[bot] 05f6658e3d
fix(deps): update module golang.org/x/crypto to v0.26.0 (#1379)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/crypto | `v0.25.0` -> `v0.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fcrypto/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fcrypto/v0.25.0/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.25.0/v0.26.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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xOC4xNyIsInVwZGF0ZWRJblZlciI6IjM4LjE4LjE3IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 22:09:44 +00:00
Kavindu Dodanduwa 79d9085a50
chore: improve gRPC sync service shutdown behavior (#1375)
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-08-05 16:18:25 -04:00
renovate[bot] 4804c17a67
fix(deps): update module golang.org/x/sync to v0.8.0 (#1378)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/sync | `v0.7.0` -> `v0.8.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsync/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fsync/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fsync/v0.7.0/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsync/v0.7.0/v0.8.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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-04 23:05:47 +00:00
renovate[bot] 797d7a4bba
fix(deps): update module golang.org/x/mod to v0.20.0 (#1377)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/mod | `v0.19.0` -> `v0.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fmod/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fmod/v0.19.0/v0.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.19.0/v0.20.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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-04 19:05:05 +00:00
Michael Beemer 4911697ab1
docs(flagd-proxy): removed invalid grpc prefix from uri config
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-02 10:58:00 -04:00
renovate[bot] ae2459504f
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20240215170432-1e611e2999cc.1 (#1372)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.4.0-20240215170432-1e611e2999cc.2` ->
`v1.5.1-20240215170432-1e611e2999cc.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.2/v1.5.1-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.2/v1.5.1-20240215170432-1e611e2999cc.1?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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 00:10:19 +00:00
Alan Kutniewski 21f2c9a5d6
feat: Support blob type sources and GCS as an example of such source. (#1366)
Signed-off-by: Alan Kutniewski <kutniewski@google.com>
2024-07-30 12:31:44 -04:00
Kavindu Dodanduwa 1fe0eac1dc
chore: update otel example configurations (#1370)
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-07-30 11:28:15 -04:00
renovate[bot] 0c68726bed
fix(deps): update module github.com/open-feature/open-feature-operator/apis to v0.2.44 (#1368)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/open-feature-operator/apis](https://togithub.com/open-feature/open-feature-operator)
| `v0.2.43` -> `v0.2.44` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.44?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.44?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.43/v0.2.44?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.43/v0.2.44?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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 22:42:40 +00:00
renovate[bot] 184915b317
fix(deps): update module connectrpc.com/otelconnect to v0.7.1 (#1367)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[connectrpc.com/otelconnect](https://togithub.com/connectrpc/otelconnect-go)
| `v0.7.0` -> `v0.7.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/connectrpc.com%2fotelconnect/v0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/connectrpc.com%2fotelconnect/v0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/connectrpc.com%2fotelconnect/v0.7.0/v0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/connectrpc.com%2fotelconnect/v0.7.0/v0.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>connectrpc/otelconnect-go
(connectrpc.com/otelconnect)</summary>

###
[`v0.7.1`](https://togithub.com/connectrpc/otelconnect-go/releases/tag/v0.7.1)

[Compare
Source](https://togithub.com/connectrpc/otelconnect-go/compare/v0.7.0...v0.7.1)

This is a bug-fix release that addresses a race condition when closing a
stream.

#### What's Changed

##### Bugfixes

- Fix data race in streaming client close by
[@&#8203;emcfarlane](https://togithub.com/emcfarlane) in
[#&#8203;173](https://togithub.com/connectrpc/otelconnect-go/issues/173)

#### New Contributors

- [@&#8203;gvacaliuc](https://togithub.com/gvacaliuc) made their first
contribution in
[#&#8203;163](https://togithub.com/connectrpc/otelconnect-go/issues/163)
- [@&#8203;ytnsym](https://togithub.com/ytnsym) made their first
contribution in
[#&#8203;176](https://togithub.com/connectrpc/otelconnect-go/issues/176)
- [@&#8203;drice-buf](https://togithub.com/drice-buf) made their first
contribution in
[#&#8203;178](https://togithub.com/connectrpc/otelconnect-go/issues/178)

**Full Changelog**:
https://github.com/connectrpc/otelconnect-go/compare/v0.7.0...v0.7.1

</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.

🔕 **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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 19:24:07 +00:00
Pradeep Mishra bed077bac9
feat: added new grpc sync config option to allow setting max receive message size. (#1358)
## This PR
Added a new config option `maxMsgSize` which will
allow users to override default message size 4Mb.

- allow override default max message size 4Mb

### Related Issues

Fixes #1357 

### How to test
To test this feature you need a flag source with large number of flags >
4Mb, e.g. below we are running with max size of 5Mb+
 
```
./flagd start --port 8013 --sync-port 8017 --sources='[{"uri": "localhost:8015", "provider": "grpc", "tls": false, "providerID": "flagd-sidecar", "selector": "all-flags", "maxMsgSize": 5728474}]'

		 ______   __       ________   _______    ______
		/_____/\ /_/\     /_______/\ /______/\  /_____/\
		\::::_\/_\:\ \    \::: _  \ \\::::__\/__\:::_ \ \
		 \:\/___/\\:\ \    \::(_)  \ \\:\ /____/\\:\ \ \ \
		  \:::._\/ \:\ \____\:: __  \ \\:\\_  _\/ \:\ \ \ \
		   \:\ \    \:\/___/\\:.\ \  \ \\:\_\ \ \  \:\/.:| |
		    \_\/     \_____\/ \__\/\__\/ \_____\/   \____/_/

2024-07-11T11:31:57.024+0200	info	cmd/start.go:107	flagd version: dev (da01e08), built at: 2024-07-11T11:14:44Z	{"component": "start"}
2024-07-11T11:31:57.026+0200	info	flag-sync/sync_service.go:54	starting flag sync service on port 8017	{"component": "FlagSyncService"}
2024-07-11T11:31:57.027+0200	info	grpc/grpc_sync.go:70	setting max receive message size 5728474 bytes default 4MB	{"component": "sync", "sync": "grpc"}

```

---------

Signed-off-by: Pradeep Mishra <pradeepbbl@gmail.com>
Signed-off-by: pradeepbbl <pradeepbbl@gmail.com>
Signed-off-by: Pradeep Mishra <pradeepbbl@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-07-12 08:16:40 -07:00
Todd Baert 4c8f2b788f
chore: update playground (#1360)
Update plaground (includes new fractional features).

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-07-12 11:02:46 -04:00
Todd Baert 8f1dbba212
chore: update public schema (#1359)
See title.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-07-11 09:47:09 -04:00
renovate[bot] 8fcfb146b0
fix(deps): update module github.com/open-feature/flagd/core to v0.10.1 (#1355)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://togithub.com/open-feature/flagd)
| `v0.10.0` -> `v0.10.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.0/v0.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.0/v0.10.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-feature/flagd
(github.com/open-feature/flagd/core)</summary>

###
[`v0.10.1`](https://togithub.com/open-feature/flagd/releases/tag/flagd/v0.10.1):
flagd: v0.10.1

##### 🐛 Bug Fixes

- **deps:** update module github.com/open-feature/flagd/core to v0.9.0
([#&#8203;1281](https://togithub.com/open-feature/flagd/issues/1281))
([3cfb052](3cfb0523cc))

#####  New Features

- move json logic operator registration to resolver
([#&#8203;1291](https://togithub.com/open-feature/flagd/issues/1291))
([b473457](b473457ddf))

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-09 01:54:06 +00:00
github-actions[bot] 9ac329f920
chore: release main (#1341)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.1</summary>

##
[0.11.1](https://github.com/open-feature/flagd/compare/flagd/v0.11.0...flagd/v0.11.1)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](https://github.com/open-feature/flagd/issues/1342))
([efdd921](efdd921399))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.0
([#1340](https://github.com/open-feature/flagd/issues/1340))
([1e487b4](1e487b4baf))
* **deps:** update module golang.org/x/net to v0.27.0
([#1353](https://github.com/open-feature/flagd/issues/1353))
([df9834b](df9834bea2))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](https://github.com/open-feature/flagd/issues/1346))
([72a6b87](72a6b876e8))
* **deps:** update opentelemetry-go monorepo
([#1347](https://github.com/open-feature/flagd/issues/1347))
([37fb3cd](37fb3cd81d))
* invalid scoped-sync responses for empty flags
([#1352](https://github.com/open-feature/flagd/issues/1352))
([51371d2](51371d25e2))
</details>

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

##
[0.6.4](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.3...flagd-proxy/v0.6.4)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](https://github.com/open-feature/flagd/issues/1342))
([efdd921](efdd921399))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.0
([#1340](https://github.com/open-feature/flagd/issues/1340))
([1e487b4](1e487b4baf))
* **deps:** update module golang.org/x/net to v0.27.0
([#1353](https://github.com/open-feature/flagd/issues/1353))
([df9834b](df9834bea2))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](https://github.com/open-feature/flagd/issues/1346))
([72a6b87](72a6b876e8))
* **deps:** update opentelemetry-go monorepo
([#1347](https://github.com/open-feature/flagd/issues/1347))
([37fb3cd](37fb3cd81d))
</details>

<details><summary>core: 0.10.1</summary>

##
[0.10.1](https://github.com/open-feature/flagd/compare/core/v0.10.0...core/v0.10.1)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](https://github.com/open-feature/flagd/issues/1342))
([efdd921](efdd921399))
* **deps:** update module golang.org/x/crypto to v0.25.0
([#1351](https://github.com/open-feature/flagd/issues/1351))
([450cbc8](450cbc84ca))
* **deps:** update module golang.org/x/mod to v0.19.0
([#1349](https://github.com/open-feature/flagd/issues/1349))
([6ee89b4](6ee89b44ca))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](https://github.com/open-feature/flagd/issues/1346))
([72a6b87](72a6b876e8))
* **deps:** update opentelemetry-go monorepo
([#1347](https://github.com/open-feature/flagd/issues/1347))
([37fb3cd](37fb3cd81d))
</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>
2024-07-08 15:33:48 -04:00
Todd Baert 283d509343
chore: update json schema submodule (#1354)
see title.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-07-08 13:59:35 -04:00
renovate[bot] df9834bea2
fix(deps): update module golang.org/x/net to v0.27.0 (#1353)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/net | `v0.26.0` -> `v0.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fnet/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fnet/v0.26.0/v0.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.26.0/v0.27.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-05 21:48:07 +00:00
Todd Baert 51371d25e2
fix: invalid scoped-sync responses for empty flags (#1352)
Fixes an issue where invalid flag payloads were returned on sync
requests with scopes if the flag set was empty.

Below is an example of the bug.

```shell
$ grpcurl -import-path /home/todd/temp -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags
{
  "flagConfiguration": "{\"flags\":{}}"
}
$ grpcurl -import-path /home/todd/temp -proto sync.proto -plaintext -d '{"selector":"../config/samples/example_flags.flagd.json"}' localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags 
{}
```

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-07-05 14:25:34 -04:00
renovate[bot] 450cbc84ca
fix(deps): update module golang.org/x/crypto to v0.25.0 (#1351)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/crypto | `v0.24.0` -> `v0.25.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fcrypto/v0.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fcrypto/v0.24.0/v0.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.24.0/v0.25.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-05 16:07:46 +00:00
renovate[bot] 6ee89b44ca
fix(deps): update module golang.org/x/mod to v0.19.0 (#1349)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/mod | `v0.18.0` -> `v0.19.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fmod/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fmod/v0.18.0/v0.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.18.0/v0.19.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-04 18:30:28 +00:00
renovate[bot] 37fb3cd81d
fix(deps): update opentelemetry-go monorepo (#1347)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/otel](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://togithub.com/open-telemetry/opentelemetry-go)
| `v0.49.0` -> `v0.50.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.50.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.50.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.49.0/v0.50.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.49.0/v0.50.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.27.0` -> `v1.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.28.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.28.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.27.0/v1.28.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.27.0/v1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.28.0`](https://togithub.com/open-telemetry/opentelemetry-go/releases/tag/v1.28.0):
Releases v1.28.0/v0.50.0/v0.4.0

[Compare
Source](https://togithub.com/open-telemetry/opentelemetry-go/compare/v1.27.0...v1.28.0)

#### Overview

##### Added

- The `IsEmpty` method is added to the `Instrument` type in
`go.opentelemetry.io/otel/sdk/metric`.
This method is used to check if an `Instrument` instance is a
zero-value.
([#&#8203;5431](https://togithub.com/open-telemetry/opentelemetry-go/issues/5431))
- Store and provide the emitted `context.Context` in `ScopeRecords` of
`go.opentelemetry.io/otel/sdk/log/logtest`.
([#&#8203;5468](https://togithub.com/open-telemetry/opentelemetry-go/issues/5468))
-   The `go.opentelemetry.io/otel/semconv/v1.26.0` package.
The package contains semantic conventions from the `v1.26.0` version of
the OpenTelemetry Semantic Conventions.
([#&#8203;5476](https://togithub.com/open-telemetry/opentelemetry-go/issues/5476))
- The `AssertRecordEqual` method to
`go.opentelemetry.io/otel/log/logtest` to allow comparison of two log
records in tests.
([#&#8203;5499](https://togithub.com/open-telemetry/opentelemetry-go/issues/5499))
- The `WithHeaders` option to
`go.opentelemetry.io/otel/exporters/zipkin` to allow configuring custom
http headers while exporting spans.
([#&#8203;5530](https://togithub.com/open-telemetry/opentelemetry-go/issues/5530))

##### Changed

- `Tracer.Start` in `go.opentelemetry.io/otel/trace/noop` no longer
allocates a span for empty span context.
([#&#8203;5457](https://togithub.com/open-telemetry/opentelemetry-go/issues/5457))
- Upgrade `go.opentelemetry.io/otel/semconv/v1.25.0` to
`go.opentelemetry.io/otel/semconv/v1.26.0` in
`go.opentelemetry.io/otel/example/otel-collector`.
([#&#8203;5490](https://togithub.com/open-telemetry/opentelemetry-go/issues/5490))
- Upgrade `go.opentelemetry.io/otel/semconv/v1.25.0` to
`go.opentelemetry.io/otel/semconv/v1.26.0` in
`go.opentelemetry.io/otel/example/zipkin`.
([#&#8203;5490](https://togithub.com/open-telemetry/opentelemetry-go/issues/5490))
- Upgrade `go.opentelemetry.io/otel/semconv/v1.25.0` to
`go.opentelemetry.io/otel/semconv/v1.26.0` in
`go.opentelemetry.io/otel/exporters/zipkin`.
([#&#8203;5490](https://togithub.com/open-telemetry/opentelemetry-go/issues/5490))
- The exporter no longer exports the deprecated "otel.library.name" or
"otel.library.version" attributes.
- Upgrade `go.opentelemetry.io/otel/semconv/v1.25.0` to
`go.opentelemetry.io/otel/semconv/v1.26.0` in
`go.opentelemetry.io/otel/sdk/resource`.
([#&#8203;5490](https://togithub.com/open-telemetry/opentelemetry-go/issues/5490))
- Upgrade `go.opentelemetry.io/otel/semconv/v1.25.0` to
`go.opentelemetry.io/otel/semconv/v1.26.0` in
`go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;5490](https://togithub.com/open-telemetry/opentelemetry-go/issues/5490))
- `SimpleProcessor.OnEmit` in `go.opentelemetry.io/otel/sdk/log` no
longer allocates a slice which makes it possible to have a
zero-allocation log processing using `SimpleProcessor`.
([#&#8203;5493](https://togithub.com/open-telemetry/opentelemetry-go/issues/5493))
- Use non-generic functions in the `Start` method of
`"go.opentelemetry.io/otel/sdk/trace".Trace` to reduce memory
allocation.
([#&#8203;5497](https://togithub.com/open-telemetry/opentelemetry-go/issues/5497))
- `service.instance.id` is populated for a `Resource` created with
`"go.opentelemetry.io/otel/sdk/resource".Default` with a default value
when `OTEL_GO_X_RESOURCE` is set.
([#&#8203;5520](https://togithub.com/open-telemetry/opentelemetry-go/issues/5520))
- Improve performance of metric instruments in
`go.opentelemetry.io/otel/sdk/metric` by removing unnecessary calls to
`time.Now`.
([#&#8203;5545](https://togithub.com/open-telemetry/opentelemetry-go/issues/5545))

##### Fixed

- Log a warning to the OpenTelemetry internal logger when a `Record` in
`go.opentelemetry.io/otel/sdk/log` drops an attribute due to a limit
being reached.
([#&#8203;5376](https://togithub.com/open-telemetry/opentelemetry-go/issues/5376))
- Identify the `Tracer` returned from the global `TracerProvider` in
`go.opentelemetry.io/otel/global` with its schema URL.
([#&#8203;5426](https://togithub.com/open-telemetry/opentelemetry-go/issues/5426))
- Identify the `Meter` returned from the global `MeterProvider` in
`go.opentelemetry.io/otel/global` with its schema URL.
([#&#8203;5426](https://togithub.com/open-telemetry/opentelemetry-go/issues/5426))
- Log a warning to the OpenTelemetry internal logger when a `Span` in
`go.opentelemetry.io/otel/sdk/trace` drops an attribute, event, or link
due to a limit being reached.
([#&#8203;5434](https://togithub.com/open-telemetry/opentelemetry-go/issues/5434))
- Document instrument name requirements in
`go.opentelemetry.io/otel/metric`.
([#&#8203;5435](https://togithub.com/open-telemetry/opentelemetry-go/issues/5435))
- Prevent random number generation data-race for experimental rand
exemplars in `go.opentelemetry.io/otel/sdk/metric`.
([#&#8203;5456](https://togithub.com/open-telemetry/opentelemetry-go/issues/5456))
- Fix counting number of dropped attributes of `Record` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;5464](https://togithub.com/open-telemetry/opentelemetry-go/issues/5464))
- Fix panic in baggage creation when a member contains `0x80` char in
key or value.
([#&#8203;5494](https://togithub.com/open-telemetry/opentelemetry-go/issues/5494))
- Correct comments for the priority of the `WithEndpoint` and
`WithEndpointURL` options and their corresponding environment variables
in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`.
([#&#8203;5508](https://togithub.com/open-telemetry/opentelemetry-go/issues/5508))
- Retry trace and span ID generation if it generated an invalid one in
`go.opentelemetry.io/otel/sdk/trace`.
([#&#8203;5514](https://togithub.com/open-telemetry/opentelemetry-go/issues/5514))
- Fix stale timestamps reported by the last-value aggregation.
([#&#8203;5517](https://togithub.com/open-telemetry/opentelemetry-go/issues/5517))
- Indicate the `Exporter` in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp` must be
created by the `New` method.
([#&#8203;5521](https://togithub.com/open-telemetry/opentelemetry-go/issues/5521))
- Improved performance in all `{Bool,Int64,Float64,String}SliceValue`
functions of `go.opentelemetry.io/attributes` by reducing the number of
allocations.
([#&#8203;5549](https://togithub.com/open-telemetry/opentelemetry-go/issues/5549))

#### What's Changed

- Recheck log message in TestBatchProcessor by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5386](https://togithub.com/open-telemetry/opentelemetry-go/pull/5386)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`dc85e6b`](https://togithub.com/open-telemetry/opentelemetry-go/commit/dc85e6b)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5391](https://togithub.com/open-telemetry/opentelemetry-go/pull/5391)
- fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog
to v0.2.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5395](https://togithub.com/open-telemetry/opentelemetry-go/pull/5395)
- fix(deps): update module github.com/go-logr/logr to v1.4.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5393](https://togithub.com/open-telemetry/opentelemetry-go/pull/5393)
- fix(deps): update module
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.52.0
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5396](https://togithub.com/open-telemetry/opentelemetry-go/pull/5396)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`d264139`](https://togithub.com/open-telemetry/opentelemetry-go/commit/d264139)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5397](https://togithub.com/open-telemetry/opentelemetry-go/pull/5397)
- fix(deps): update module go.opentelemetry.io/otel/sdk/log to v0.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5398](https://togithub.com/open-telemetry/opentelemetry-go/pull/5398)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.101.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5400](https://togithub.com/open-telemetry/opentelemetry-go/pull/5400)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`d264139`](https://togithub.com/open-telemetry/opentelemetry-go/commit/d264139)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5399](https://togithub.com/open-telemetry/opentelemetry-go/pull/5399)
- \[chore] example/otel-collector: Fix README title by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5404](https://togithub.com/open-telemetry/opentelemetry-go/pull/5404)
- Pool `otlploghttp` transform maps by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5378](https://togithub.com/open-telemetry/opentelemetry-go/pull/5378)
- fix(deps): update module golang.org/x/vuln to v1.1.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5405](https://togithub.com/open-telemetry/opentelemetry-go/pull/5405)
- Fix test name in otlploghttp by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5411](https://togithub.com/open-telemetry/opentelemetry-go/pull/5411)
- sdk/log: Fix BenchmarkLoggerNewRecord to not drop attributes by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5407](https://togithub.com/open-telemetry/opentelemetry-go/pull/5407)
- chore(deps): update dependency codespell to v2.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5409](https://togithub.com/open-telemetry/opentelemetry-go/pull/5409)
- fix(deps): update module github.com/golangci/golangci-lint to v1.59.0
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5419](https://togithub.com/open-telemetry/opentelemetry-go/pull/5419)
- fix(deps): update golang.org/x/tools digest to
[`7045d2e`](https://togithub.com/open-telemetry/opentelemetry-go/commit/7045d2e)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5406](https://togithub.com/open-telemetry/opentelemetry-go/pull/5406)
- fix(deps): update golang.org/x/exp digest to
[`4c93da0`](https://togithub.com/open-telemetry/opentelemetry-go/commit/4c93da0)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5415](https://togithub.com/open-telemetry/opentelemetry-go/pull/5415)
- Log a warning when log Record attribute is dropped by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5376](https://togithub.com/open-telemetry/opentelemetry-go/pull/5376)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`a332354`](https://togithub.com/open-telemetry/opentelemetry-go/commit/a332354)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5424](https://togithub.com/open-telemetry/opentelemetry-go/pull/5424)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`a332354`](https://togithub.com/open-telemetry/opentelemetry-go/commit/a332354)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5423](https://togithub.com/open-telemetry/opentelemetry-go/pull/5423)
- fix(deps): update golang.org/x/tools digest to
[`f10a0f1`](https://togithub.com/open-telemetry/opentelemetry-go/commit/f10a0f1)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5430](https://togithub.com/open-telemetry/opentelemetry-go/pull/5430)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`5315273`](https://togithub.com/open-telemetry/opentelemetry-go/commit/5315273)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5428](https://togithub.com/open-telemetry/opentelemetry-go/pull/5428)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`5315273`](https://togithub.com/open-telemetry/opentelemetry-go/commit/5315273)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5427](https://togithub.com/open-telemetry/opentelemetry-go/pull/5427)
- fix(deps): update golang.org/x/tools digest to
[`e229045`](https://togithub.com/open-telemetry/opentelemetry-go/commit/e229045)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5432](https://togithub.com/open-telemetry/opentelemetry-go/pull/5432)
- fix(deps): update golang.org/x/exp digest to
[`23cca88`](https://togithub.com/open-telemetry/opentelemetry-go/commit/23cca88)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5429](https://togithub.com/open-telemetry/opentelemetry-go/pull/5429)
- sdk/log: Fix TestBatchProcessor/DroppedLogs flaky test by
[@&#8203;amanakin](https://togithub.com/amanakin) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5421](https://togithub.com/open-telemetry/opentelemetry-go/pull/5421)
- Identify global `Tracer`s and `Meter`s with their schema URLs by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5426](https://togithub.com/open-telemetry/opentelemetry-go/pull/5426)
- sdk/log: Fix TestBatchProcessor/ForceFlush/ErrorPartialFlush flaky
test by [@&#8203;amanakin](https://togithub.com/amanakin) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5416](https://togithub.com/open-telemetry/opentelemetry-go/pull/5416)
- Export the Instrument IsEmpty method by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5431](https://togithub.com/open-telemetry/opentelemetry-go/pull/5431)
- fix(deps): update golang.org/x/tools digest to
[`01018ba`](https://togithub.com/open-telemetry/opentelemetry-go/commit/01018ba)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5438](https://togithub.com/open-telemetry/opentelemetry-go/pull/5438)
- \[chore] ensure codecov uses token by
[@&#8203;codeboten](https://togithub.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5440](https://togithub.com/open-telemetry/opentelemetry-go/pull/5440)
- fix(deps): update golang.org/x/tools digest to
[`8d54ca1`](https://togithub.com/open-telemetry/opentelemetry-go/commit/8d54ca1)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5441](https://togithub.com/open-telemetry/opentelemetry-go/pull/5441)
- fix(deps): update golang.org/x/tools digest to
[`2e977dd`](https://togithub.com/open-telemetry/opentelemetry-go/commit/2e977dd)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5442](https://togithub.com/open-telemetry/opentelemetry-go/pull/5442)
- Remove zeroInstrumentKind by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5433](https://togithub.com/open-telemetry/opentelemetry-go/pull/5433)
- Log warning when a trace attribute/event/link is discarded due to
limits by [@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5434](https://togithub.com/open-telemetry/opentelemetry-go/pull/5434)
- Remove opentelemetry-proto in .gitsubmodule by
[@&#8203;YHM404](https://togithub.com/YHM404) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5267](https://togithub.com/open-telemetry/opentelemetry-go/pull/5267)
- Document instrument name requirements by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5435](https://togithub.com/open-telemetry/opentelemetry-go/pull/5435)
- fix(deps): update golang.org/x/exp digest to
[`404ba88`](https://togithub.com/open-telemetry/opentelemetry-go/commit/404ba88)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5445](https://togithub.com/open-telemetry/opentelemetry-go/pull/5445)
- Move `MonotonicEndTime` to only use by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5443](https://togithub.com/open-telemetry/opentelemetry-go/pull/5443)
- fix(deps): update golang.org/x/tools digest to
[`624dbd0`](https://togithub.com/open-telemetry/opentelemetry-go/commit/624dbd0)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5446](https://togithub.com/open-telemetry/opentelemetry-go/pull/5446)
- fix(deps): update golang.org/x/exp digest to
[`fd00a4e`](https://togithub.com/open-telemetry/opentelemetry-go/commit/fd00a4e)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5450](https://togithub.com/open-telemetry/opentelemetry-go/pull/5450)
- fix(deps): update golang.org/x/tools digest to
[`2f8e378`](https://togithub.com/open-telemetry/opentelemetry-go/commit/2f8e378)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5451](https://togithub.com/open-telemetry/opentelemetry-go/pull/5451)
- fix(deps): update golang.org/x/tools digest to
[`cc29c91`](https://togithub.com/open-telemetry/opentelemetry-go/commit/cc29c91)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5452](https://togithub.com/open-telemetry/opentelemetry-go/pull/5452)
- chore(deps): update module github.com/prometheus/procfs to v0.15.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5453](https://togithub.com/open-telemetry/opentelemetry-go/pull/5453)
- sdk/log: Add processor benchmarks by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5448](https://togithub.com/open-telemetry/opentelemetry-go/pull/5448)
- fix(deps): update module github.com/itchyny/gojq to v0.12.16 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5460](https://togithub.com/open-telemetry/opentelemetry-go/pull/5460)
- Guard rng in exemplar rand computation by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5456](https://togithub.com/open-telemetry/opentelemetry-go/pull/5456)
- chore(deps): update module github.com/prometheus/common to v0.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5472](https://togithub.com/open-telemetry/opentelemetry-go/pull/5472)
- add `log` package to depguard linter by
[@&#8203;amanakin](https://togithub.com/amanakin) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5463](https://togithub.com/open-telemetry/opentelemetry-go/pull/5463)
- fix(deps): update golang.org/x/tools digest to
[`58cc8a4`](https://togithub.com/open-telemetry/opentelemetry-go/commit/58cc8a4)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5473](https://togithub.com/open-telemetry/opentelemetry-go/pull/5473)
- fix(deps): update golang.org/x/tools digest to
[`4478db0`](https://togithub.com/open-telemetry/opentelemetry-go/commit/4478db0)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5474](https://togithub.com/open-telemetry/opentelemetry-go/pull/5474)
- sdk/log: Fix counting number of dropped attributes of log `Record` by
[@&#8203;amanakin](https://togithub.com/amanakin) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5464](https://togithub.com/open-telemetry/opentelemetry-go/pull/5464)
- fix(deps): update golang.org/x/tools digest to
[`2088083`](https://togithub.com/open-telemetry/opentelemetry-go/commit/2088083)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5477](https://togithub.com/open-telemetry/opentelemetry-go/pull/5477)
- trace: Span in noop.Start is no longer allocated by
[@&#8203;tttoad](https://togithub.com/tttoad) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5457](https://togithub.com/open-telemetry/opentelemetry-go/pull/5457)
- chore(deps): update module golang.org/x/sys to v0.21.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5481](https://togithub.com/open-telemetry/opentelemetry-go/pull/5481)
- fix(deps): update module golang.org/x/tools to v0.22.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5485](https://togithub.com/open-telemetry/opentelemetry-go/pull/5485)
- Bump min Go version used in CI by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5489](https://togithub.com/open-telemetry/opentelemetry-go/pull/5489)
- chore(deps): update module golang.org/x/text to v0.16.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5482](https://togithub.com/open-telemetry/opentelemetry-go/pull/5482)
- Add `semconv/v1.26.0`, removes deprecated semconvs by
[@&#8203;MadVikingGod](https://togithub.com/MadVikingGod) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5476](https://togithub.com/open-telemetry/opentelemetry-go/pull/5476)
- Add the sdk/internal/x package by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5444](https://togithub.com/open-telemetry/opentelemetry-go/pull/5444)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.102.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5479](https://togithub.com/open-telemetry/opentelemetry-go/pull/5479)
- chore(deps): update module golang.org/x/net to v0.26.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5484](https://togithub.com/open-telemetry/opentelemetry-go/pull/5484)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`ef581f9`](https://togithub.com/open-telemetry/opentelemetry-go/commit/ef581f9)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5486](https://togithub.com/open-telemetry/opentelemetry-go/pull/5486)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`ef581f9`](https://togithub.com/open-telemetry/opentelemetry-go/commit/ef581f9)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5487](https://togithub.com/open-telemetry/opentelemetry-go/pull/5487)
- fix(deps): update golang.org/x/exp digest to
[`fc45aab`](https://togithub.com/open-telemetry/opentelemetry-go/commit/fc45aab)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5488](https://togithub.com/open-telemetry/opentelemetry-go/pull/5488)
- log/logtest: provide record with their context by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5468](https://togithub.com/open-telemetry/opentelemetry-go/pull/5468)
- Upgrade semconv use to v1.26.0 by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5490](https://togithub.com/open-telemetry/opentelemetry-go/pull/5490)
- sdk/log: Remove slice allocation from SimpleProcessor.OnEmit by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5493](https://togithub.com/open-telemetry/opentelemetry-go/pull/5493)
- fix(deps): update module golang.org/x/vuln to v1.1.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5496](https://togithub.com/open-telemetry/opentelemetry-go/pull/5496)
- fix(deps): update module github.com/golangci/golangci-lint to v1.59.1
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5498](https://togithub.com/open-telemetry/opentelemetry-go/pull/5498)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`a8a6208`](https://togithub.com/open-telemetry/opentelemetry-go/commit/a8a6208)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5501](https://togithub.com/open-telemetry/opentelemetry-go/pull/5501)
- Introduce logtest.AssertRecordEqual by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5499](https://togithub.com/open-telemetry/opentelemetry-go/pull/5499)
- Add implementation of otlploggrpc configuration by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5383](https://togithub.com/open-telemetry/opentelemetry-go/pull/5383)
- fix(deps): update golang.org/x/exp digest to
[`7f521ea`](https://togithub.com/open-telemetry/opentelemetry-go/commit/7f521ea)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5512](https://togithub.com/open-telemetry/opentelemetry-go/pull/5512)
- Move evantorrie to emeritus status by
[@&#8203;evantorrie](https://togithub.com/evantorrie) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5507](https://togithub.com/open-telemetry/opentelemetry-go/pull/5507)
- Add missing word in WithView() doc string by
[@&#8203;juliusv](https://togithub.com/juliusv) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5506](https://togithub.com/open-telemetry/opentelemetry-go/pull/5506)
- chore(deps): update codecov/codecov-action action to v4.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5509](https://togithub.com/open-telemetry/opentelemetry-go/pull/5509)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.102.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5491](https://togithub.com/open-telemetry/opentelemetry-go/pull/5491)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`a8a6208`](https://togithub.com/open-telemetry/opentelemetry-go/commit/a8a6208)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5502](https://togithub.com/open-telemetry/opentelemetry-go/pull/5502)
- fix(deps): update module google.golang.org/protobuf to v1.34.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5503](https://togithub.com/open-telemetry/opentelemetry-go/pull/5503)
- trace: Use non-generic to replace newEvictedQueue in trace.start to
reduce memory usage. by [@&#8203;tttoad](https://togithub.com/tttoad) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5497](https://togithub.com/open-telemetry/opentelemetry-go/pull/5497)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.58 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5504](https://togithub.com/open-telemetry/opentelemetry-go/pull/5504)
- fix(deps): update module go.opentelemetry.io/proto/otlp to v1.3.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5505](https://togithub.com/open-telemetry/opentelemetry-go/pull/5505)
- fix(baggage): validate chars panic with 0x80 by
[@&#8203;fabiobozzo](https://togithub.com/fabiobozzo) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5494](https://togithub.com/open-telemetry/opentelemetry-go/pull/5494)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`68d350f`](https://togithub.com/open-telemetry/opentelemetry-go/commit/68d350f)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5516](https://togithub.com/open-telemetry/opentelemetry-go/pull/5516)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`68d350f`](https://togithub.com/open-telemetry/opentelemetry-go/commit/68d350f)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5515](https://togithub.com/open-telemetry/opentelemetry-go/pull/5515)
- Correct the comment for the priority of options and environments on
otlptracegrpc by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5508](https://togithub.com/open-telemetry/opentelemetry-go/pull/5508)
- Fix IDGenerator may generate zero TraceId / SpanId by
[@&#8203;Charlie-lizhihan](https://togithub.com/Charlie-lizhihan) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5514](https://togithub.com/open-telemetry/opentelemetry-go/pull/5514)
- Fix timestamp handling for the lastvalue aggregation by
[@&#8203;dashpole](https://togithub.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5517](https://togithub.com/open-telemetry/opentelemetry-go/pull/5517)
- Add tenv linter by [@&#8203;dmathieu](https://togithub.com/dmathieu)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5524](https://togithub.com/open-telemetry/opentelemetry-go/pull/5524)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.103.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5526](https://togithub.com/open-telemetry/opentelemetry-go/pull/5526)
- chore(deps): update prom/prometheus docker tag to v2.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5525](https://togithub.com/open-telemetry/opentelemetry-go/pull/5525)
- Do not fail CI on codecov create report by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5532](https://togithub.com/open-telemetry/opentelemetry-go/pull/5532)
- Add unconvert linter by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5529](https://togithub.com/open-telemetry/opentelemetry-go/pull/5529)
- Add unparam linter by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5531](https://togithub.com/open-telemetry/opentelemetry-go/pull/5531)
- Add example for synchronous gauge by
[@&#8203;bagmeg](https://togithub.com/bagmeg) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5492](https://togithub.com/open-telemetry/opentelemetry-go/pull/5492)
- Add `newClient` method for otlploggrpc gRPC client by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5523](https://togithub.com/open-telemetry/opentelemetry-go/pull/5523)
- Verify versions.yaml is up to date in CI by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5533](https://togithub.com/open-telemetry/opentelemetry-go/pull/5533)
- Populate `service.instance.id` with a default value when
`OTEL_GO_X_RESOURCE` is set by
[@&#8203;pyohannes](https://togithub.com/pyohannes) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5520](https://togithub.com/open-telemetry/opentelemetry-go/pull/5520)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`dc46fd2`](https://togithub.com/open-telemetry/opentelemetry-go/commit/dc46fd2)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5538](https://togithub.com/open-telemetry/opentelemetry-go/pull/5538)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`dc46fd2`](https://togithub.com/open-telemetry/opentelemetry-go/commit/dc46fd2)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5539](https://togithub.com/open-telemetry/opentelemetry-go/pull/5539)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.103.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5540](https://togithub.com/open-telemetry/opentelemetry-go/pull/5540)
- Decouple codecov upload from coverage testing by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5534](https://togithub.com/open-telemetry/opentelemetry-go/pull/5534)
- Add errorlint linter by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5535](https://togithub.com/open-telemetry/opentelemetry-go/pull/5535)
- Add WithHeaders option for Zipkin exporter by
[@&#8203;srijan-27](https://togithub.com/srijan-27) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5530](https://togithub.com/open-telemetry/opentelemetry-go/pull/5530)
- chore(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5552](https://togithub.com/open-telemetry/opentelemetry-go/pull/5552)
- Indicate the otlploghttp exporter must be created by the New method by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5521](https://togithub.com/open-telemetry/opentelemetry-go/pull/5521)
- sdk/log: Add altering Processor example by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5550](https://togithub.com/open-telemetry/opentelemetry-go/pull/5550)
- Split the set and add attributes benchmarks by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5546](https://togithub.com/open-telemetry/opentelemetry-go/pull/5546)
- Add walk attributes benchmark by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5547](https://togithub.com/open-telemetry/opentelemetry-go/pull/5547)
- Add benchmark retrieving a new logger by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5548](https://togithub.com/open-telemetry/opentelemetry-go/pull/5548)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.54 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5555](https://togithub.com/open-telemetry/opentelemetry-go/pull/5555)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.58 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5556](https://togithub.com/open-telemetry/opentelemetry-go/pull/5556)
- Reduces allocation in attributes by
[@&#8203;Succo](https://togithub.com/Succo) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5549](https://togithub.com/open-telemetry/opentelemetry-go/pull/5549)
- Generate `internal/transform` in `otlploggrpc` by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5553](https://togithub.com/open-telemetry/opentelemetry-go/pull/5553)
- Split the span start/end benchmarks and test start with links and
attributes by [@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5554](https://togithub.com/open-telemetry/opentelemetry-go/pull/5554)
- sdk/log: Fix ExampleProcessor_redact to clone the record by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5559](https://togithub.com/open-telemetry/opentelemetry-go/pull/5559)
- sdk/log: Add filtering Processor example by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5543](https://togithub.com/open-telemetry/opentelemetry-go/pull/5543)
- chore(deps): update google.golang.org/genproto/googleapis/api digest
to
[`f6361c8`](https://togithub.com/open-telemetry/opentelemetry-go/commit/f6361c8)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5563](https://togithub.com/open-telemetry/opentelemetry-go/pull/5563)
- chore(deps): update google.golang.org/genproto/googleapis/rpc digest
to
[`f6361c8`](https://togithub.com/open-telemetry/opentelemetry-go/commit/f6361c8)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5564](https://togithub.com/open-telemetry/opentelemetry-go/pull/5564)
- Move time.Now call into exemplar reservoir to improve performance by
[@&#8203;dashpole](https://togithub.com/dashpole) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5545](https://togithub.com/open-telemetry/opentelemetry-go/pull/5545)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.104.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5565](https://togithub.com/open-telemetry/opentelemetry-go/pull/5565)
- Add [@&#8203;XSAM](https://togithub.com/XSAM) and
[@&#8203;dmathieu](https://togithub.com/dmathieu) as repository
maintainers by [@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5558](https://togithub.com/open-telemetry/opentelemetry-go/pull/5558)
- Releases v1.28.0/v0.50.0/v0.4.0 by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5569](https://togithub.com/open-telemetry/opentelemetry-go/pull/5569)

#### New Contributors

- [@&#8203;YHM404](https://togithub.com/YHM404) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5267](https://togithub.com/open-telemetry/opentelemetry-go/pull/5267)
- [@&#8203;juliusv](https://togithub.com/juliusv) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5506](https://togithub.com/open-telemetry/opentelemetry-go/pull/5506)
- [@&#8203;fabiobozzo](https://togithub.com/fabiobozzo) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5494](https://togithub.com/open-telemetry/opentelemetry-go/pull/5494)
- [@&#8203;Charlie-lizhihan](https://togithub.com/Charlie-lizhihan) made
their first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5514](https://togithub.com/open-telemetry/opentelemetry-go/pull/5514)
- [@&#8203;bagmeg](https://togithub.com/bagmeg) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5492](https://togithub.com/open-telemetry/opentelemetry-go/pull/5492)
- [@&#8203;pyohannes](https://togithub.com/pyohannes) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5520](https://togithub.com/open-telemetry/opentelemetry-go/pull/5520)
- [@&#8203;srijan-27](https://togithub.com/srijan-27) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5530](https://togithub.com/open-telemetry/opentelemetry-go/pull/5530)
- [@&#8203;Succo](https://togithub.com/Succo) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5549](https://togithub.com/open-telemetry/opentelemetry-go/pull/5549)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.27.0...v1.28.0

</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://togithub.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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-03 03:04:35 +00:00
renovate[bot] 72a6b876e8
fix(deps): update module google.golang.org/grpc to v1.65.0 (#1346)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

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

### [`v1.65.0`](https://togithub.com/grpc/grpc-go/releases/tag/v1.65.0):
Release 1.65.0

[Compare
Source](https://togithub.com/grpc/grpc-go/compare/v1.64.0...v1.65.0)

### Dependencies

- Change support policy to cover only the latest TWO releases of Go,
matching the policy for Go itself. See
[#&#8203;7249](https://togithub.com/grpc/grpc-go/issues/7249) for more
information.
([#&#8203;7250](https://togithub.com/grpc/grpc-go/issues/7250))
- Update x/net/http2 to address
[CVE-2023-45288](https://nvd.nist.gov/vuln/detail/CVE-2023-45288)
([#&#8203;7282](https://togithub.com/grpc/grpc-go/issues/7282))

### Behavior Changes

- credentials/tls: clients and servers will now reject connections that
don't support ALPN when environment variable `GRPC_ENFORCE_ALPN_ENABLED`
is set to "true" (case insensitive).
([#&#8203;7184](https://togithub.com/grpc/grpc-go/issues/7184))
    -   NOTE: this behavior will become the default in a future release.
- metadata: remove String method from MD to make printing more
consistent
([#&#8203;7373](https://togithub.com/grpc/grpc-go/issues/7373))

### New Features

- grpc: add `WithMaxCallAttempts` to configure gRPC's retry behavior
per-channel.
([#&#8203;7229](https://togithub.com/grpc/grpc-go/issues/7229))
- Special Thanks: [@&#8203;imoore76](https://togithub.com/imoore76)

### Bug Fixes

- ringhash: properly apply endpoint weights instead of ignoring them
([#&#8203;7156](https://togithub.com/grpc/grpc-go/issues/7156))
- xds: fix a bug that could cause xds-enabled servers to stop accepting
new connections after handshaking errors
([#&#8203;7128](https://togithub.com/grpc/grpc-go/issues/7128))
    -   Special Thanks: [@&#8203;bozaro](https://togithub.com/bozaro)

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-03 01:05:11 +00:00
renovate[bot] efdd921399
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.4.0-20240215170432-1e611e2999cc.2 (#1342)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.4.0-20240215170432-1e611e2999cc.1` ->
`v1.4.0-20240215170432-1e611e2999cc.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.1/v1.4.0-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.1/v1.4.0-20240215170432-1e611e2999cc.2?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-29 03:14:42 +00:00
renovate[bot] 1e487b4baf
fix(deps): update module github.com/open-feature/flagd/core to v0.10.0 (#1340)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://togithub.com/open-feature/flagd)
| `v0.9.3` -> `v0.10.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.3/v0.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.3/v0.10.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-28 01:45:45 +00:00
github-actions[bot] f2432025f3
chore: release main (#1327)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.0</summary>

##
[0.11.0](https://github.com/open-feature/flagd/compare/flagd/v0.10.3...flagd/v0.11.0)
(2024-06-27)


### ⚠ BREAKING CHANGES

* support emitting errors from the bulk evaluator
([#1338](https://github.com/open-feature/flagd/issues/1338))

### 🐛 Bug Fixes

* **deps:** update module
buf.build/gen/go/open-feature/flagd/connectrpc/go to
v1.16.2-20240215170432-1e611e2999cc.1
([#1293](https://github.com/open-feature/flagd/issues/1293))
([2694e7f](2694e7f99f))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.1
([#1333](https://github.com/open-feature/flagd/issues/1333))
([494062f](494062fed8))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.34.2-20240215170432-1e611e2999cc.2
([#1330](https://github.com/open-feature/flagd/issues/1330))
([32291ad](32291ad93d))
* **deps:** update module github.com/open-feature/flagd/core to v0.9.3
([#1296](https://github.com/open-feature/flagd/issues/1296))
([1f7b8bd](1f7b8bd938))
* **deps:** update module github.com/rs/cors to v1.11.0
([#1299](https://github.com/open-feature/flagd/issues/1299))
([5f77541](5f775413fb))
* **deps:** update module github.com/spf13/cobra to v1.8.1
([#1332](https://github.com/open-feature/flagd/issues/1332))
([c62bcb0](c62bcb0ec6))
* **deps:** update module github.com/spf13/viper to v1.19.0
([#1334](https://github.com/open-feature/flagd/issues/1334))
([1097b99](1097b9961b))
* **deps:** update module golang.org/x/net to v0.26.0
([#1337](https://github.com/open-feature/flagd/issues/1337))
([83bdbb5](83bdbb5e7e))
* **deps:** update opentelemetry-go monorepo
([#1314](https://github.com/open-feature/flagd/issues/1314))
([e9f1a7a](e9f1a7a048))
* readable error messages
([#1325](https://github.com/open-feature/flagd/issues/1325))
([7ff33ef](7ff33effcc))


###  New Features

* support `FLAGD_DEBUG` / `--debug` / `-x`
([#1326](https://github.com/open-feature/flagd/issues/1326))
([298bd36](298bd36698))
* support emitting errors from the bulk evaluator
([#1338](https://github.com/open-feature/flagd/issues/1338))
([b9c099c](b9c099cb7f))
</details>

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

##
[0.6.3](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.2...flagd-proxy/v0.6.3)
(2024-06-27)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.1
([#1333](https://github.com/open-feature/flagd/issues/1333))
([494062f](494062fed8))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.34.2-20240215170432-1e611e2999cc.2
([#1330](https://github.com/open-feature/flagd/issues/1330))
([32291ad](32291ad93d))
* **deps:** update module github.com/open-feature/flagd/core to v0.9.3
([#1296](https://github.com/open-feature/flagd/issues/1296))
([1f7b8bd](1f7b8bd938))
* **deps:** update module github.com/spf13/cobra to v1.8.1
([#1332](https://github.com/open-feature/flagd/issues/1332))
([c62bcb0](c62bcb0ec6))
* **deps:** update module github.com/spf13/viper to v1.19.0
([#1334](https://github.com/open-feature/flagd/issues/1334))
([1097b99](1097b9961b))
* **deps:** update module golang.org/x/net to v0.26.0
([#1337](https://github.com/open-feature/flagd/issues/1337))
([83bdbb5](83bdbb5e7e))
* **deps:** update opentelemetry-go monorepo
([#1314](https://github.com/open-feature/flagd/issues/1314))
([e9f1a7a](e9f1a7a048))
</details>

<details><summary>core: 0.10.0</summary>

##
[0.10.0](https://github.com/open-feature/flagd/compare/core/v0.9.3...core/v0.10.0)
(2024-06-27)


### ⚠ BREAKING CHANGES

* support emitting errors from the bulk evaluator
([#1338](https://github.com/open-feature/flagd/issues/1338))

### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.1
([#1333](https://github.com/open-feature/flagd/issues/1333))
([494062f](494062fed8))
* **deps:** update module
buf.build/gen/go/open-feature/flagd/protocolbuffers/go to
v1.34.2-20240215170432-1e611e2999cc.2
([#1330](https://github.com/open-feature/flagd/issues/1330))
([32291ad](32291ad93d))
* **deps:** update module connectrpc.com/connect to v1.16.2
([#1289](https://github.com/open-feature/flagd/issues/1289))
([8bacb7c](8bacb7c59c))
* **deps:** update module
github.com/open-feature/open-feature-operator/apis to v0.2.43
([#1331](https://github.com/open-feature/flagd/issues/1331))
([fecd769](fecd769e5f))
* **deps:** update module golang.org/x/crypto to v0.24.0
([#1335](https://github.com/open-feature/flagd/issues/1335))
([2a31a17](2a31a17403))
* **deps:** update module golang.org/x/mod to v0.18.0
([#1336](https://github.com/open-feature/flagd/issues/1336))
([5fa83f7](5fa83f7ab2))
* **deps:** update opentelemetry-go monorepo
([#1314](https://github.com/open-feature/flagd/issues/1314))
([e9f1a7a](e9f1a7a048))
* readable error messages
([#1325](https://github.com/open-feature/flagd/issues/1325))
([7ff33ef](7ff33effcc))


###  New Features

* add mandatory flags property in bulk response
([#1339](https://github.com/open-feature/flagd/issues/1339))
([b20266e](b20266ed5e))
* support emitting errors from the bulk evaluator
([#1338](https://github.com/open-feature/flagd/issues/1338))
([b9c099c](b9c099cb7f))
* support relative weighting for fractional evaluation
([#1313](https://github.com/open-feature/flagd/issues/1313))
([f82c094](f82c094f5c))
</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>
2024-06-27 15:17:54 -04:00
renovate[bot] e9f1a7a048
fix(deps): update opentelemetry-go monorepo (#1314)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[go.opentelemetry.io/otel](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/go.opentelemetry.io%2fotel/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/go.opentelemetry.io%2fotel/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/go.opentelemetry.io%2fotel/v1.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlpmetric%2fotlpmetricgrpc/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fotlp%2fotlptrace%2fotlptracegrpc/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/exporters/prometheus](https://togithub.com/open-telemetry/opentelemetry-go)
| `v0.48.0` -> `v0.49.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fexporters%2fprometheus/v0.49.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.49.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.48.0/v0.49.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.48.0/v0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fmetric/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/sdk/metric](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2fsdk%2fmetric/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[go.opentelemetry.io/otel/trace](https://togithub.com/open-telemetry/opentelemetry-go)
| `v1.26.0` -> `v1.27.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/go.opentelemetry.io%2fotel%2ftrace/v1.27.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.27.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.26.0/v1.27.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.26.0/v1.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.27.0`](https://togithub.com/open-telemetry/opentelemetry-go/releases/tag/v1.27.0):
/v0.49.0/v0.3.0

[Compare
Source](https://togithub.com/open-telemetry/opentelemetry-go/compare/v1.26.0...v1.27.0)

This release includes the first beta release of the OpenTelemetry Logs
Bridge API and SDK for Go.

##### Overview

##### Added

- Add example for `go.opentelemetry.io/otel/exporters/stdout/stdoutlog`.
([#&#8203;5242](https://togithub.com/open-telemetry/opentelemetry-go/issues/5242))
- Add `RecordFactory` in `go.opentelemetry.io/otel/sdk/log/logtest` to
facilitate testing exporter and processor implementations.
([#&#8203;5258](https://togithub.com/open-telemetry/opentelemetry-go/issues/5258))
- Add `RecordFactory` in `go.opentelemetry.io/otel/log/logtest` to
facilitate testing bridge implementations.
([#&#8203;5263](https://togithub.com/open-telemetry/opentelemetry-go/issues/5263))
- The count of dropped records from the `BatchProcessor` in
`go.opentelemetry.io/otel/sdk/log` is logged.
([#&#8203;5276](https://togithub.com/open-telemetry/opentelemetry-go/issues/5276))
- Add metrics in the `otel-collector` example.
([#&#8203;5283](https://togithub.com/open-telemetry/opentelemetry-go/issues/5283))
- Add the synchronous gauge instrument to
`go.opentelemetry.io/otel/metric`.
([#&#8203;5304](https://togithub.com/open-telemetry/opentelemetry-go/issues/5304))
- An `int64` or `float64` synchronous gauge instrument can now be
created from a `Meter`.
- All implementations of the API
(`go.opentelemetry.io/otel/metric/noop`,
`go.opentelemetry.io/otel/sdk/metric`) are updated to support this
instrument.
- Add logs to `go.opentelemetry.io/otel/example/dice`.
([#&#8203;5349](https://togithub.com/open-telemetry/opentelemetry-go/issues/5349))

##### Changed

- The `Shutdown` method of `Exporter` in
`go.opentelemetry.io/otel/exporters/stdout/stdouttrace` ignores the
context cancellation and always returns `nil`.
([#&#8203;5189](https://togithub.com/open-telemetry/opentelemetry-go/issues/5189))
- The `ForceFlush` and `Shutdown` methods of the exporter returned by
`New` in `go.opentelemetry.io/otel/exporters/stdout/stdoutmetric` ignore
the context cancellation and always return `nil`.
([#&#8203;5189](https://togithub.com/open-telemetry/opentelemetry-go/issues/5189))
- Apply the value length limits to `Record` attributes in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;5230](https://togithub.com/open-telemetry/opentelemetry-go/issues/5230))
- De-duplicate map attributes added to a `Record` in
`go.opentelemetry.io/otel/sdk/log`.
([#&#8203;5230](https://togithub.com/open-telemetry/opentelemetry-go/issues/5230))
- `go.opentelemetry.io/otel/exporters/stdout/stdoutlog` won't print
timestamps when `WithoutTimestamps` option is set.
([#&#8203;5241](https://togithub.com/open-telemetry/opentelemetry-go/issues/5241))
- The `go.opentelemetry.io/otel/exporters/stdout/stdoutlog` exporter
won't print `AttributeValueLengthLimit` and `AttributeCountLimit` fields
now, instead it prints the `DroppedAttributes` field.
([#&#8203;5272](https://togithub.com/open-telemetry/opentelemetry-go/issues/5272))
- Improved performance in the `Stringer` implementation of
`go.opentelemetry.io/otel/baggage.Member` by reducing the number of
allocations.
([#&#8203;5286](https://togithub.com/open-telemetry/opentelemetry-go/issues/5286))
- Set the start time for last-value aggregates in
`go.opentelemetry.io/otel/sdk/metric`.
([#&#8203;5305](https://togithub.com/open-telemetry/opentelemetry-go/issues/5305))
- The `Span` in `go.opentelemetry.io/otel/sdk/trace` will record links
without span context if either non-empty `TraceState` or attributes are
provided.
([#&#8203;5315](https://togithub.com/open-telemetry/opentelemetry-go/issues/5315))
- Upgrade all dependencies of `go.opentelemetry.io/otel/semconv/v1.24.0`
to `go.opentelemetry.io/otel/semconv/v1.25.0`.
([#&#8203;5374](https://togithub.com/open-telemetry/opentelemetry-go/issues/5374))

##### Fixed

- Comparison of unordered maps for
`go.opentelemetry.io/otel/log.KeyValue` and
`go.opentelemetry.io/otel/log.Value`.
([#&#8203;5306](https://togithub.com/open-telemetry/opentelemetry-go/issues/5306))
- Fix the empty output of `go.opentelemetry.io/otel/log.Value` in
`go.opentelemetry.io/otel/exporters/stdout/stdoutlog`.
([#&#8203;5311](https://togithub.com/open-telemetry/opentelemetry-go/issues/5311))
- Split the behavior of `Recorder` in
`go.opentelemetry.io/otel/log/logtest` so it behaves as a
`LoggerProvider` only.
([#&#8203;5365](https://togithub.com/open-telemetry/opentelemetry-go/issues/5365))
- Fix wrong package name of the error message when parsing endpoint URL
in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`.
([#&#8203;5371](https://togithub.com/open-telemetry/opentelemetry-go/issues/5371))
- Identify the `Logger` returned from the global `LoggerProvider` in
`go.opentelemetry.io/otel/log/global` with its schema URL.
([#&#8203;5375](https://togithub.com/open-telemetry/opentelemetry-go/issues/5375))

##### What's Changed

- sdk/log/logtest: Add RecordFactory by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5258](https://togithub.com/open-telemetry/opentelemetry-go/pull/5258)
- log/logtest: add Record Factory by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5263](https://togithub.com/open-telemetry/opentelemetry-go/pull/5263)
- stdoutlog: Do not print timestamps when WithoutTimestamps is set by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5241](https://togithub.com/open-telemetry/opentelemetry-go/pull/5241)
- Add example for stdoutlog by [@&#8203;XSAM](https://togithub.com/XSAM)
in
[https://github.com/open-telemetry/opentelemetry-go/pull/5242](https://togithub.com/open-telemetry/opentelemetry-go/pull/5242)
- Remove context check on stdout exporters by
[@&#8203;prasad-shirodkar](https://togithub.com/prasad-shirodkar) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5189](https://togithub.com/open-telemetry/opentelemetry-go/pull/5189)
- Fix flaky test TestBufferExporter/Shutdown/ContextCancelled by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5261](https://togithub.com/open-telemetry/opentelemetry-go/pull/5261)
- Add `otlploggrpc` exporter skeleton by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5246](https://togithub.com/open-telemetry/opentelemetry-go/pull/5246)
- build(deps): bump lycheeverse/lychee-action from 1.9.3 to 1.10.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5266](https://togithub.com/open-telemetry/opentelemetry-go/pull/5266)
- chore: fix function names in comment by
[@&#8203;dockercui](https://togithub.com/dockercui) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5262](https://togithub.com/open-telemetry/opentelemetry-go/pull/5262)
- build(deps): bump
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from
0.50.0 to 0.51.0 in /example/dice by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5265](https://togithub.com/open-telemetry/opentelemetry-go/pull/5265)
- docs: update variable name in documentation by
[@&#8203;codeboten](https://togithub.com/codeboten) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5270](https://togithub.com/open-telemetry/opentelemetry-go/pull/5270)
- Use empty resource when `RecordFactory.Resource` is `nil` by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5264](https://togithub.com/open-telemetry/opentelemetry-go/pull/5264)
- Truncate and de-duplicate log attribute values by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5230](https://togithub.com/open-telemetry/opentelemetry-go/pull/5230)
- Add changelog entry for
[#&#8203;5230](https://togithub.com/open-telemetry/opentelemetry-go/issues/5230)
by [@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5277](https://togithub.com/open-telemetry/opentelemetry-go/pull/5277)
- docs: Add otlploghttp package in exporters README.md by
[@&#8203;arukiidou](https://togithub.com/arukiidou) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5274](https://togithub.com/open-telemetry/opentelemetry-go/pull/5274)
- The stdoutlog exporter prints `DroppedAttributes` field instead of
`Limit`s fields by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5272](https://togithub.com/open-telemetry/opentelemetry-go/pull/5272)
- Test scope and resource transforms in `otlploghttp` by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5278](https://togithub.com/open-telemetry/opentelemetry-go/pull/5278)
- Add README template to semconvkit by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5279](https://togithub.com/open-telemetry/opentelemetry-go/pull/5279)
- Use docker compose in otel collector example by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5244](https://togithub.com/open-telemetry/opentelemetry-go/pull/5244)
- \[chore] dependabot updates Sun May 5 15:58:12 UTC 2024 by
[@&#8203;opentelemetrybot](https://togithub.com/opentelemetrybot) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5300](https://togithub.com/open-telemetry/opentelemetry-go/pull/5300)
- build(deps): bump codecov/codecov-action from 4.3.0 to 4.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5296](https://togithub.com/open-telemetry/opentelemetry-go/pull/5296)
- docs: Update Go logs status to alpha in README.md by
[@&#8203;arukiidou](https://togithub.com/arukiidou) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5299](https://togithub.com/open-telemetry/opentelemetry-go/pull/5299)
- docs: Add logs exporters in README.md by
[@&#8203;arukiidou](https://togithub.com/arukiidou) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5298](https://togithub.com/open-telemetry/opentelemetry-go/pull/5298)
- Use reflect to construct a Record in `logtest` by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5275](https://togithub.com/open-telemetry/opentelemetry-go/pull/5275)
- Fix type error in float64 instrument documentation by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5302](https://togithub.com/open-telemetry/opentelemetry-go/pull/5302)
- Fix HistogramConfig documentation by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5301](https://togithub.com/open-telemetry/opentelemetry-go/pull/5301)
- feat: opt for concatenation instead of using fmt.Sprintf by
[@&#8203;moisesvega](https://togithub.com/moisesvega) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5286](https://togithub.com/open-telemetry/opentelemetry-go/pull/5286)
- Emit attributes slices as their json representation by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5159](https://togithub.com/open-telemetry/opentelemetry-go/pull/5159)
- Refactor exemplars to not use generic argument by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5285](https://togithub.com/open-telemetry/opentelemetry-go/pull/5285)
- Upgrade default go verison to 1.22.3 by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5314](https://togithub.com/open-telemetry/opentelemetry-go/pull/5314)
- Log records dropped by the BatchProcessor by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5276](https://togithub.com/open-telemetry/opentelemetry-go/pull/5276)
- Rename synchronous instrument names in global test by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5303](https://togithub.com/open-telemetry/opentelemetry-go/pull/5303)
- chore: Configure Renovate by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5309](https://togithub.com/open-telemetry/opentelemetry-go/pull/5309)
- chore(deps): update module github.com/golang/groupcache to
v0.0.0-20210331224755-41bb18bfe9da by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5320](https://togithub.com/open-telemetry/opentelemetry-go/pull/5320)
- chore(deps): update module google.golang.org/genproto/googleapis/api
to v0.0.0-20240506185236-b8a5c65736ae by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5321](https://togithub.com/open-telemetry/opentelemetry-go/pull/5321)
- chore(deps): update module gopkg.in/check.v1 to
v1.0.0-20201130134442-10cb98267c6c by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5326](https://togithub.com/open-telemetry/opentelemetry-go/pull/5326)
- chore(deps): update module google.golang.org/genproto/googleapis/rpc
to v0.0.0-20240506185236-b8a5c65736ae by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5325](https://togithub.com/open-telemetry/opentelemetry-go/pull/5325)
- fix(deps): update module golang.org/x/exp to
v0.0.0-20240506185415-9bf2ced13842 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5327](https://togithub.com/open-telemetry/opentelemetry-go/pull/5327)
- chore(deps): update module github.com/prometheus/common to v0.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5332](https://togithub.com/open-telemetry/opentelemetry-go/pull/5332)
- chore(deps): update module golang.org/x/net to v0.25.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5335](https://togithub.com/open-telemetry/opentelemetry-go/pull/5335)
- fix(deps): update module google.golang.org/protobuf to v1.34.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5328](https://togithub.com/open-telemetry/opentelemetry-go/pull/5328)
- chore(deps): update module github.com/prometheus/procfs to v0.14.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5333](https://togithub.com/open-telemetry/opentelemetry-go/pull/5333)
- chore(deps): update module github.com/cespare/xxhash/v2 to v2.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5330](https://togithub.com/open-telemetry/opentelemetry-go/pull/5330)
- chore(deps): update module github.com/rogpeppe/go-internal to v1.12.0
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5334](https://togithub.com/open-telemetry/opentelemetry-go/pull/5334)
- fix(deps): update module github.com/golangci/golangci-lint to v1.58.1
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5340](https://togithub.com/open-telemetry/opentelemetry-go/pull/5340)
- Merge Span.AddLink tests by
[@&#8203;perhapsmaple](https://togithub.com/perhapsmaple) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5115](https://togithub.com/open-telemetry/opentelemetry-go/pull/5115)
- exporters/otlp/otlptrace: fix incorrect documentation by
[@&#8203;kevinburkesegment](https://togithub.com/kevinburkesegment) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5098](https://togithub.com/open-telemetry/opentelemetry-go/pull/5098)
- Generate `internal/retry` in `otlploggrpc` by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5313](https://togithub.com/open-telemetry/opentelemetry-go/pull/5313)
- fix(deps): update module github.com/prometheus/client_golang to
v1.19.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5341](https://togithub.com/open-telemetry/opentelemetry-go/pull/5341)
- chore(deps): update jaegertracing/all-in-one docker tag to v1.57 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5329](https://togithub.com/open-telemetry/opentelemetry-go/pull/5329)
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to
v0.100.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5337](https://togithub.com/open-telemetry/opentelemetry-go/pull/5337)
- chore(deps): update prom/prometheus docker tag to v2.52.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5338](https://togithub.com/open-telemetry/opentelemetry-go/pull/5338)
- Move Aneurysm9 to emeritus status by
[@&#8203;Aneurysm9](https://togithub.com/Aneurysm9) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5319](https://togithub.com/open-telemetry/opentelemetry-go/pull/5319)
- Test metric aggregate times by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5323](https://togithub.com/open-telemetry/opentelemetry-go/pull/5323)
- Fix empty log body printed by stdoutlog exporter by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5311](https://togithub.com/open-telemetry/opentelemetry-go/pull/5311)
- Record links with empty span context by
[@&#8203;amanakin](https://togithub.com/amanakin) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5315](https://togithub.com/open-telemetry/opentelemetry-go/pull/5315)
- Update `RELEASING.md` to obtain steps to verify the changes for
contrib by [@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5284](https://togithub.com/open-telemetry/opentelemetry-go/pull/5284)
- chore(deps): update module google.golang.org/genproto/googleapis/rpc
to v0.0.0-20240509183442-62759503f434 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5345](https://togithub.com/open-telemetry/opentelemetry-go/pull/5345)
- chore(deps): update module google.golang.org/genproto/googleapis/api
to v0.0.0-20240509183442-62759503f434 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5344](https://togithub.com/open-telemetry/opentelemetry-go/pull/5344)
- Support Delta & Cumulative temporality for LastValue aggregates by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5305](https://togithub.com/open-telemetry/opentelemetry-go/pull/5305)
- sdk/log: Document how Processor and Exporter interfaces can be
extended by [@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5347](https://togithub.com/open-telemetry/opentelemetry-go/pull/5347)
- Remove dependabot version updates by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5346](https://togithub.com/open-telemetry/opentelemetry-go/pull/5346)
- chore(deps): update module google.golang.org/genproto/googleapis/api
to v0.0.0-20240513163218-0867130af1f8 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5350](https://togithub.com/open-telemetry/opentelemetry-go/pull/5350)
- chore(deps): update module google.golang.org/genproto/googleapis/rpc
to v0.0.0-20240513163218-0867130af1f8 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5351](https://togithub.com/open-telemetry/opentelemetry-go/pull/5351)
- chore(deps): update module github.com/prometheus/procfs to v0.15.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5352](https://togithub.com/open-telemetry/opentelemetry-go/pull/5352)
- chore(deps): update codecov/codecov-action action to v4.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5353](https://togithub.com/open-telemetry/opentelemetry-go/pull/5353)
- Add logs to dice example by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5349](https://togithub.com/open-telemetry/opentelemetry-go/pull/5349)
- log: Fix comparison of unordered map values by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5306](https://togithub.com/open-telemetry/opentelemetry-go/pull/5306)
- fix(deps): update module google.golang.org/grpc to v1.64.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5354](https://togithub.com/open-telemetry/opentelemetry-go/pull/5354)
- Fix logger provider var name in dice example by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5358](https://togithub.com/open-telemetry/opentelemetry-go/pull/5358)
- chore(deps): update module google.golang.org/genproto/googleapis/rpc
to v0.0.0-20240515191416-fc5f0ca64291 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5362](https://togithub.com/open-telemetry/opentelemetry-go/pull/5362)
- chore(deps): update module google.golang.org/genproto/googleapis/api
to v0.0.0-20240515191416-fc5f0ca64291 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5361](https://togithub.com/open-telemetry/opentelemetry-go/pull/5361)
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2
to v2.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5363](https://togithub.com/open-telemetry/opentelemetry-go/pull/5363)
- \[chore] Fix 2 places in log design doc by
[@&#8203;yijiem](https://togithub.com/yijiem) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5364](https://togithub.com/open-telemetry/opentelemetry-go/pull/5364)
- \[chore] Fix wrong type in DESIGN.md by
[@&#8203;pellared](https://togithub.com/pellared) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5368](https://togithub.com/open-telemetry/opentelemetry-go/pull/5368)
- Add the synchronous gauge to the metric API and SDK by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5304](https://togithub.com/open-telemetry/opentelemetry-go/pull/5304)
- Collector example: add metrics by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5283](https://togithub.com/open-telemetry/opentelemetry-go/pull/5283)
- Fix package prefix of error in otlploghttp by
[@&#8203;XSAM](https://togithub.com/XSAM) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5371](https://togithub.com/open-telemetry/opentelemetry-go/pull/5371)
- Split log/logtest into a recorder and a logger by
[@&#8203;dmathieu](https://togithub.com/dmathieu) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5365](https://togithub.com/open-telemetry/opentelemetry-go/pull/5365)
- Identify logger with schemaURL in global logger provider by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5375](https://togithub.com/open-telemetry/opentelemetry-go/pull/5375)
- Update all semconv use to v1.25.0 by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5374](https://togithub.com/open-telemetry/opentelemetry-go/pull/5374)
- fix(deps): update module github.com/golangci/golangci-lint to v1.58.2
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5382](https://togithub.com/open-telemetry/opentelemetry-go/pull/5382)
- chore(deps): update codecov/codecov-action action to v4.4.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5387](https://togithub.com/open-telemetry/opentelemetry-go/pull/5387)
- chore(deps): update module google.golang.org/genproto/googleapis/api
to v0.0.0-20240520151616-dc85e6b867a5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5388](https://togithub.com/open-telemetry/opentelemetry-go/pull/5388)
- chore(deps): update benchmark-action/github-action-benchmark action to
v1.20.3 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5381](https://togithub.com/open-telemetry/opentelemetry-go/pull/5381)
- Fix exported instrument kind const value change by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5385](https://togithub.com/open-telemetry/opentelemetry-go/pull/5385)
- Release v1.27.0/v0.49.0/v0.3.0 by
[@&#8203;MrAlias](https://togithub.com/MrAlias) in
[https://github.com/open-telemetry/opentelemetry-go/pull/5392](https://togithub.com/open-telemetry/opentelemetry-go/pull/5392)

##### New Contributors

- [@&#8203;prasad-shirodkar](https://togithub.com/prasad-shirodkar) made
their first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5189](https://togithub.com/open-telemetry/opentelemetry-go/pull/5189)
- [@&#8203;dockercui](https://togithub.com/dockercui) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5262](https://togithub.com/open-telemetry/opentelemetry-go/pull/5262)
- [@&#8203;arukiidou](https://togithub.com/arukiidou) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5274](https://togithub.com/open-telemetry/opentelemetry-go/pull/5274)
- [@&#8203;moisesvega](https://togithub.com/moisesvega) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5286](https://togithub.com/open-telemetry/opentelemetry-go/pull/5286)
- [@&#8203;renovate](https://togithub.com/renovate) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5309](https://togithub.com/open-telemetry/opentelemetry-go/pull/5309)
- [@&#8203;perhapsmaple](https://togithub.com/perhapsmaple) made their
first contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5115](https://togithub.com/open-telemetry/opentelemetry-go/pull/5115)
- [@&#8203;amanakin](https://togithub.com/amanakin) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5315](https://togithub.com/open-telemetry/opentelemetry-go/pull/5315)
- [@&#8203;yijiem](https://togithub.com/yijiem) made their first
contribution in
[https://github.com/open-telemetry/opentelemetry-go/pull/5364](https://togithub.com/open-telemetry/opentelemetry-go/pull/5364)

**Full Changelog**:
https://github.com/open-telemetry/opentelemetry-go/compare/v1.26.0...v1.27.0

</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://togithub.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy40MTAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-06-27 12:11:00 -07:00
renovate[bot] fecd769e5f
fix(deps): update module github.com/open-feature/open-feature-operator/apis to v0.2.43 (#1331)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/open-feature-operator/apis](https://togithub.com/open-feature/open-feature-operator)
| `v0.2.40` -> `v0.2.43` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.43?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.43?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.40/v0.2.43?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fopen-feature-operator%2fapis/v0.2.40/v0.2.43?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-06-27 14:56:36 -04:00
Kavindu Dodanduwa b9c099cb7f
feat!: support emitting errors from the bulk evaluator (#1338)
Fixes #1328

### Improvement

flagd's core components are intended to be reused. This PR change
the`IStore` interface by allowing an error to be returned from `GetAll`.
This error is then propagated through `ResolveAllValues`. This change
enables custom `IStore` implementations to return errors and propagate
them through the resolver layer.

With this change, I have upgrade OFREP bulk evaluator and flagd RPC
`ResolveAll` with error propagation.

OFREP - Log warning with resolver error and return HTTP 500 with a
tracking reference
RPC - Log warning with resolver error and return an error with a
tracking reference

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-06-27 14:09:16 -04:00
Florian Bacher f82c094f5c
feat: support relative weighting for fractional evaluation (#1313)
Closes #1282 

This PR adds support for using relative weights instead of percentages
that need to add up to 100.
The behavior for existing flag configs does not change with this PR, so
those will continue to work as they did previously

---------

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-06-27 12:50:34 -04:00
Kavindu Dodanduwa b20266ed5e
feat: add mandatory flags property in bulk response (#1339)
This PR improves flagd bulk evaluation empty response by adding required
`flags` property.

Related - https://github.com/open-feature/protocol/pull/27

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-06-27 15:34:22 +02:00
renovate[bot] 83bdbb5e7e
fix(deps): update module golang.org/x/net to v0.26.0 (#1337)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/net | `v0.25.0` -> `v0.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fnet/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fnet/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fnet/v0.25.0/v0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fnet/v0.25.0/v0.26.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 19:10:25 +00:00
renovate[bot] 5fa83f7ab2
fix(deps): update module golang.org/x/mod to v0.18.0 (#1336)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/mod | `v0.17.0` -> `v0.18.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fmod/v0.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fmod/v0.17.0/v0.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.17.0/v0.18.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 16:55:34 +00:00
renovate[bot] 2a31a17403
fix(deps): update module golang.org/x/crypto to v0.24.0 (#1335)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| golang.org/x/crypto | `v0.23.0` -> `v0.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fcrypto/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fcrypto/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fcrypto/v0.23.0/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fcrypto/v0.23.0/v0.24.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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 12:30:20 +00:00
renovate[bot] 1097b9961b
fix(deps): update module github.com/spf13/viper to v1.19.0 (#1334)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/spf13/viper](https://togithub.com/spf13/viper) | `v1.18.2`
-> `v1.19.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fviper/v1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fspf13%2fviper/v1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fspf13%2fviper/v1.18.2/v1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fviper/v1.18.2/v1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spf13/viper (github.com/spf13/viper)</summary>

### [`v1.19.0`](https://togithub.com/spf13/viper/releases/tag/v1.19.0)

[Compare
Source](https://togithub.com/spf13/viper/compare/v1.18.2...v1.19.0)

<!-- Release notes generated using configuration in .github/release.yml
at v1.19.0 -->

#### What's Changed

##### Bug Fixes 🐛

- fix!: hide struct binding behind a feature flag by
[@&#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1720](https://togithub.com/spf13/viper/pull/1720)

##### Dependency Updates ⬆️

- build(deps): bump github/codeql-action from 2.22.8 to 2.22.9 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1705](https://togithub.com/spf13/viper/pull/1705)
- build(deps): bump actions/setup-go from 4.1.0 to 5.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1703](https://togithub.com/spf13/viper/pull/1703)
- build(deps): bump github/codeql-action from 2.22.9 to 3.22.11 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1713](https://togithub.com/spf13/viper/pull/1713)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.0 to 2.1.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1711](https://togithub.com/spf13/viper/pull/1711)
- build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1722](https://togithub.com/spf13/viper/pull/1722)
- build(deps): bump github/codeql-action from 3.22.11 to 3.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1734](https://togithub.com/spf13/viper/pull/1734)
- build(deps): bump actions/dependency-review-action from 3.1.4 to 3.1.5
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1731](https://togithub.com/spf13/viper/pull/1731)
- build(deps): bump mheap/github-action-required-labels from 5.1.0 to
5.2.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1743](https://togithub.com/spf13/viper/pull/1743)
- build(deps): bump github/codeql-action from 3.23.0 to 3.23.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1742](https://togithub.com/spf13/viper/pull/1742)
- build(deps): bump actions/dependency-review-action from 3.1.5 to 4.0.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1739](https://togithub.com/spf13/viper/pull/1739)
- build(deps): bump cachix/install-nix-action from 24 to 25 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1737](https://togithub.com/spf13/viper/pull/1737)
- build(deps): bump github/codeql-action from 3.23.2 to 3.24.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1751](https://togithub.com/spf13/viper/pull/1751)
- build(deps): bump github/codeql-action from 3.24.0 to 3.24.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1760](https://togithub.com/spf13/viper/pull/1760)
- build(deps): bump actions/dependency-review-action from 4.0.0 to 4.1.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1761](https://togithub.com/spf13/viper/pull/1761)
- build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1757](https://togithub.com/spf13/viper/pull/1757)
- build(deps): bump mheap/github-action-required-labels from 5.2.0 to
5.3.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1759](https://togithub.com/spf13/viper/pull/1759)
- build(deps): bump github/codeql-action from 3.24.1 to 3.24.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1763](https://togithub.com/spf13/viper/pull/1763)
- build(deps): bump github.com/sagikazarmark/crypt from 0.17.0 to 0.18.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1774](https://togithub.com/spf13/viper/pull/1774)
- build(deps): bump github/codeql-action from 3.24.3 to 3.24.5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1770](https://togithub.com/spf13/viper/pull/1770)
- build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1776](https://togithub.com/spf13/viper/pull/1776)
- build(deps): bump github/codeql-action from 3.24.5 to 3.24.6 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1775](https://togithub.com/spf13/viper/pull/1775)
- build(deps): bump cachix/install-nix-action from 25 to 26 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1778](https://togithub.com/spf13/viper/pull/1778)
- build(deps): bump actions/dependency-review-action from 4.1.0 to 4.1.3
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1767](https://togithub.com/spf13/viper/pull/1767)
- build(deps): bump github/codeql-action from 3.24.6 to 3.24.9 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1790](https://togithub.com/spf13/viper/pull/1790)
- build(deps): bump mheap/github-action-required-labels from 5.3.0 to
5.4.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1789](https://togithub.com/spf13/viper/pull/1789)
- build(deps): bump actions/checkout from 4.1.1 to 4.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1780](https://togithub.com/spf13/viper/pull/1780)
- build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.4
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1793](https://togithub.com/spf13/viper/pull/1793)
- chore: upgrade crypt by
[@&#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1794](https://togithub.com/spf13/viper/pull/1794)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1788](https://togithub.com/spf13/viper/pull/1788)
- build(deps): bump actions/dependency-review-action from 4.2.4 to 4.2.5
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1796](https://togithub.com/spf13/viper/pull/1796)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1804](https://togithub.com/spf13/viper/pull/1804)
- build(deps): bump github/codeql-action from 3.24.9 to 3.25.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1806](https://togithub.com/spf13/viper/pull/1806)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1807](https://togithub.com/spf13/viper/pull/1807)
- build(deps): bump actions/checkout from 4.1.2 to 4.1.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1808](https://togithub.com/spf13/viper/pull/1808)
- build(deps): bump actions/checkout from 4.1.3 to 4.1.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1813](https://togithub.com/spf13/viper/pull/1813)
- build(deps): bump github/codeql-action from 3.25.1 to 3.25.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1811](https://togithub.com/spf13/viper/pull/1811)
- build(deps): bump mheap/github-action-required-labels from 5.4.0 to
5.4.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1817](https://togithub.com/spf13/viper/pull/1817)
- build(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.2
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1821](https://togithub.com/spf13/viper/pull/1821)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1822](https://togithub.com/spf13/viper/pull/1822)
- build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1824](https://togithub.com/spf13/viper/pull/1824)
- build(deps): bump github/codeql-action from 3.25.2 to 3.25.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1828](https://togithub.com/spf13/viper/pull/1828)
- build(deps): bump golangci/golangci-lint-action from 4.0.0 to 6.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1829](https://togithub.com/spf13/viper/pull/1829)
- build(deps): bump github/codeql-action from 3.25.4 to 3.25.7 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1844](https://togithub.com/spf13/viper/pull/1844)
- build(deps): bump cachix/install-nix-action from 26 to 27 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1833](https://togithub.com/spf13/viper/pull/1833)
- build(deps): bump actions/checkout from 4.1.4 to 4.1.6 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1835](https://togithub.com/spf13/viper/pull/1835)

##### Other Changes

- Update links to Golang Modules documentation by
[@&#8203;tobb10001](https://togithub.com/tobb10001) in
[https://github.com/spf13/viper/pull/1758](https://togithub.com/spf13/viper/pull/1758)
- chore: add Go 1.22 support by
[@&#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1762](https://togithub.com/spf13/viper/pull/1762)
- fix [#&#8203;1700](https://togithub.com/spf13/viper/issues/1700):
update tests to use local viper instance by
[@&#8203;smukk9](https://togithub.com/smukk9) in
[https://github.com/spf13/viper/pull/1791](https://togithub.com/spf13/viper/pull/1791)
- Update references to bketelsen/crypt by
[@&#8203;skitt](https://togithub.com/skitt) in
[https://github.com/spf13/viper/pull/1842](https://togithub.com/spf13/viper/pull/1842)

#### New Contributors

- [@&#8203;tobb10001](https://togithub.com/tobb10001) made their first
contribution in
[https://github.com/spf13/viper/pull/1758](https://togithub.com/spf13/viper/pull/1758)
- [@&#8203;smukk9](https://togithub.com/smukk9) made their first
contribution in
[https://github.com/spf13/viper/pull/1791](https://togithub.com/spf13/viper/pull/1791)
- [@&#8203;skitt](https://togithub.com/skitt) made their first
contribution in
[https://github.com/spf13/viper/pull/1842](https://togithub.com/spf13/viper/pull/1842)

**Full Changelog**:
https://github.com/spf13/viper/compare/v1.18.1...v1.19.0

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 09:19:37 +00:00
renovate[bot] 494062fed8
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.4.0-20240215170432-1e611e2999cc.1 (#1333)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/grpc/go |
`v1.3.0-20240215170432-1e611e2999cc.3` ->
`v1.4.0-20240215170432-1e611e2999cc.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.4.0-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.3.0-20240215170432-1e611e2999cc.3/v1.4.0-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.3.0-20240215170432-1e611e2999cc.3/v1.4.0-20240215170432-1e611e2999cc.1?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 06:09:35 +00:00
renovate[bot] c62bcb0ec6
fix(deps): update module github.com/spf13/cobra to v1.8.1 (#1332)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/spf13/cobra](https://togithub.com/spf13/cobra) | `v1.8.0`
-> `v1.8.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fspf13%2fcobra/v1.8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fspf13%2fcobra/v1.8.0/v1.8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.8.0/v1.8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>

### [`v1.8.1`](https://togithub.com/spf13/cobra/releases/tag/v1.8.1)

[Compare
Source](https://togithub.com/spf13/cobra/compare/v1.8.0...v1.8.1)

####  Features

- Add env variable to suppress completion descriptions on create by
[@&#8203;scop](https://togithub.com/scop) in
[https://github.com/spf13/cobra/pull/1938](https://togithub.com/spf13/cobra/pull/1938)

#### 🐛 Bug fixes

- Micro-optimizations by [@&#8203;scop](https://togithub.com/scop) in
[https://github.com/spf13/cobra/pull/1957](https://togithub.com/spf13/cobra/pull/1957)

#### 🔧 Maintenance

- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.3 to 2.0.4
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/cobra/pull/2127](https://togithub.com/spf13/cobra/pull/2127)
- Consistent annotation names by
[@&#8203;nirs](https://togithub.com/nirs) in
[https://github.com/spf13/cobra/pull/2140](https://togithub.com/spf13/cobra/pull/2140)
- Remove fully inactivated linters by
[@&#8203;nirs](https://togithub.com/nirs) in
[https://github.com/spf13/cobra/pull/2148](https://togithub.com/spf13/cobra/pull/2148)
- Address golangci-lint deprecation warnings, enable some more linters
by [@&#8203;scop](https://togithub.com/scop) in
[https://github.com/spf13/cobra/pull/2152](https://togithub.com/spf13/cobra/pull/2152)

#### 🧪 Testing & CI/CD

- Add test for func in cobra.go by
[@&#8203;korovindenis](https://togithub.com/korovindenis) in
[https://github.com/spf13/cobra/pull/2094](https://togithub.com/spf13/cobra/pull/2094)
- ci: test golang 1.22 by
[@&#8203;cyrilico](https://togithub.com/cyrilico) in
[https://github.com/spf13/cobra/pull/2113](https://togithub.com/spf13/cobra/pull/2113)
- Optimized and added more linting by
[@&#8203;scop](https://togithub.com/scop) in
[https://github.com/spf13/cobra/pull/2099](https://togithub.com/spf13/cobra/pull/2099)
- build(deps): bump actions/setup-go from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/cobra/pull/2087](https://togithub.com/spf13/cobra/pull/2087)
- build(deps): bump actions/labeler from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/cobra/pull/2086](https://togithub.com/spf13/cobra/pull/2086)
- build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/cobra/pull/2108](https://togithub.com/spf13/cobra/pull/2108)
- build(deps): bump actions/cache from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/cobra/pull/2102](https://togithub.com/spf13/cobra/pull/2102)

#### ✏️ Documentation

- Fixes and docs for usage as plugin by
[@&#8203;nirs](https://togithub.com/nirs) in
[https://github.com/spf13/cobra/pull/2070](https://togithub.com/spf13/cobra/pull/2070)
- flags: clarify documentation that LocalFlags related function do not
modify the state by [@&#8203;niamster](https://togithub.com/niamster) in
[https://github.com/spf13/cobra/pull/2064](https://togithub.com/spf13/cobra/pull/2064)
- chore: remove repetitive words by
[@&#8203;racerole](https://togithub.com/racerole) in
[https://github.com/spf13/cobra/pull/2122](https://togithub.com/spf13/cobra/pull/2122)
- Add LXC to the list of projects using Cobra
[@&#8203;VaradBelwalkar](https://togithub.com/VaradBelwalkar) in
[https://github.com/spf13/cobra/pull/2071](https://togithub.com/spf13/cobra/pull/2071)
- Update projects_using_cobra.md by
[@&#8203;marcuskohlberg](https://togithub.com/marcuskohlberg) in
[https://github.com/spf13/cobra/pull/2089](https://togithub.com/spf13/cobra/pull/2089)
- \[chore]: update projects using cobra by
[@&#8203;cmwylie19](https://togithub.com/cmwylie19) in
[https://github.com/spf13/cobra/pull/2093](https://togithub.com/spf13/cobra/pull/2093)
- Add Taikun CLI to list of projects by
[@&#8203;Smidra](https://togithub.com/Smidra) in
[https://github.com/spf13/cobra/pull/2098](https://togithub.com/spf13/cobra/pull/2098)
- Add Incus to the list of projects using Cobra by
[@&#8203;montag451](https://togithub.com/montag451) in
[https://github.com/spf13/cobra/pull/2118](https://togithub.com/spf13/cobra/pull/2118)

#### New Contributors

- [@&#8203;VaradBelwalkar](https://togithub.com/VaradBelwalkar) made
their first contribution in
[https://github.com/spf13/cobra/pull/2071](https://togithub.com/spf13/cobra/pull/2071)
- [@&#8203;marcuskohlberg](https://togithub.com/marcuskohlberg) made
their first contribution in
[https://github.com/spf13/cobra/pull/2089](https://togithub.com/spf13/cobra/pull/2089)
- [@&#8203;cmwylie19](https://togithub.com/cmwylie19) made their first
contribution in
[https://github.com/spf13/cobra/pull/2093](https://togithub.com/spf13/cobra/pull/2093)
- [@&#8203;korovindenis](https://togithub.com/korovindenis) made their
first contribution in
[https://github.com/spf13/cobra/pull/2094](https://togithub.com/spf13/cobra/pull/2094)
- [@&#8203;niamster](https://togithub.com/niamster) made their first
contribution in
[https://github.com/spf13/cobra/pull/2064](https://togithub.com/spf13/cobra/pull/2064)
- [@&#8203;Smidra](https://togithub.com/Smidra) made their first
contribution in
[https://github.com/spf13/cobra/pull/2098](https://togithub.com/spf13/cobra/pull/2098)
- [@&#8203;montag451](https://togithub.com/montag451) made their first
contribution in
[https://github.com/spf13/cobra/pull/2118](https://togithub.com/spf13/cobra/pull/2118)
- [@&#8203;cyrilico](https://togithub.com/cyrilico) made their first
contribution in
[https://github.com/spf13/cobra/pull/2113](https://togithub.com/spf13/cobra/pull/2113)
- [@&#8203;racerole](https://togithub.com/racerole) made their first
contribution in
[https://github.com/spf13/cobra/pull/2122](https://togithub.com/spf13/cobra/pull/2122)
- [@&#8203;pedromotita](https://togithub.com/pedromotita) made their
first contribution in
[https://github.com/spf13/cobra/pull/2120](https://togithub.com/spf13/cobra/pull/2120)
- [@&#8203;cubxxw](https://togithub.com/cubxxw) made their first
contribution in
[https://github.com/spf13/cobra/pull/2128](https://togithub.com/spf13/cobra/pull/2128)

***

Thank you everyone who contributed to this release and all your hard
work! Cobra and this community would never be possible without all of
you!!!! 🐍

**Full Changelog**:
https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 04:06:35 +00:00
renovate[bot] 1f7b8bd938
fix(deps): update module github.com/open-feature/flagd/core to v0.9.3 (#1296)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/open-feature/flagd/core](https://togithub.com/open-feature/flagd)
| `v0.9.0` -> `v0.9.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.0/v0.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fopen-feature%2fflagd%2fcore/v0.9.0/v0.9.3?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-20 00:27:53 +00:00
renovate[bot] 8bacb7c59c
fix(deps): update module connectrpc.com/connect to v1.16.2 (#1289)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [connectrpc.com/connect](https://togithub.com/connectrpc/connect-go) |
`v1.16.1` -> `v1.16.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/connectrpc.com%2fconnect/v1.16.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/connectrpc.com%2fconnect/v1.16.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/connectrpc.com%2fconnect/v1.16.1/v1.16.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/connectrpc.com%2fconnect/v1.16.1/v1.16.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>connectrpc/connect-go (connectrpc.com/connect)</summary>

###
[`v1.16.2`](https://togithub.com/connectrpc/connect-go/releases/tag/v1.16.2)

[Compare
Source](https://togithub.com/connectrpc/connect-go/compare/v1.16.1...v1.16.2)

This is a patch release to make sure that consuming modules won't be
vulnerable to
[CVE-2023-45288](https://nvd.nist.gov/vuln/detail/CVE-2023-45288).

##### What's Changed

- Update the golang.org/x/net dependency to v0.23.0 in
[#&#8203;729](https://togithub.com/connectrpc/connect-go/issues/729).

**Full Changelog**:
https://github.com/connectrpc/connect-go/compare/v1.16.1...v1.16.2

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 21:37:13 +00:00
renovate[bot] 32291ad93d
fix(deps): update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.34.2-20240215170432-1e611e2999cc.2 (#1330)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/protocolbuffers/go |
`v1.34.1-20240215170432-1e611e2999cc.1` ->
`v1.34.2-20240215170432-1e611e2999cc.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.2-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.2-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.1-20240215170432-1e611e2999cc.1/v1.34.2-20240215170432-1e611e2999cc.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fprotocolbuffers%2fgo/v1.34.1-20240215170432-1e611e2999cc.1/v1.34.2-20240215170432-1e611e2999cc.2?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 19:18:07 +00:00
renovate[bot] 2694e7f99f
fix(deps): update module buf.build/gen/go/open-feature/flagd/connectrpc/go to v1.16.2-20240215170432-1e611e2999cc.1 (#1293)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| buf.build/gen/go/open-feature/flagd/connectrpc/go |
`v1.16.0-20240215170432-1e611e2999cc.1` ->
`v1.16.2-20240215170432-1e611e2999cc.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.2-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.0-20240215170432-1e611e2999cc.1/v1.16.2-20240215170432-1e611e2999cc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fconnectrpc%2fgo/v1.16.0-20240215170432-1e611e2999cc.1/v1.16.2-20240215170432-1e611e2999cc.1?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 becomes conflicted, 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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 15:35:06 +00:00
renovate[bot] 5f775413fb
fix(deps): update module github.com/rs/cors to v1.11.0 (#1299)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/rs/cors](https://togithub.com/rs/cors) | `v1.10.1` ->
`v1.11.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2frs%2fcors/v1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2frs%2fcors/v1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2frs%2fcors/v1.10.1/v1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2frs%2fcors/v1.10.1/v1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>rs/cors (github.com/rs/cors)</summary>

### [`v1.11.0`](https://togithub.com/rs/cors/compare/v1.10.1...v1.11.0)

[Compare Source](https://togithub.com/rs/cors/compare/v1.10.1...v1.11.0)

</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.

🔕 **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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 10:44:57 -04:00
Kavindu Dodanduwa ccb4ebf225
chore: fix renovate by setting correct renovate constrant (#1329)
Renovate constraints to Go 1.21

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-06-19 09:41:31 -04:00
Dave 7ff33effcc
fix: readable error messages (#1325)
- Mapped the error codes to easier to read error messages
- Created unit test to check functionality

 #1100

---------

Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Signed-off-by: Dave <89858058+DBlanchard88@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-06-18 16:38:16 -04:00
Salar Nosrati-Ershad 298bd36698
feat: support `FLAGD_DEBUG` / `--debug` / `-x` (#1326)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
- Observes debug env variable [with or prefix will be `FLAGD_DEBUG`] and
binds `--debug` and `-x` flags to it.

### Related Issues
Fixes #1323

---------

Signed-off-by: Salar Nosrati-Ershad <snosratiershad@gmail.com>
2024-06-17 11:18:48 -04:00
github-actions[bot] 01b50e09f9
chore: release main (#1319)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.10.3</summary>

##
[0.10.3](https://github.com/open-feature/flagd/compare/flagd/v0.10.2...flagd/v0.10.3)
(2024-06-06)


### 🧹 Chore

* adapt telemetry setup error handling
([#1315](https://github.com/open-feature/flagd/issues/1315))
([20bcb78](20bcb78d11))
* fix unit tests and ensure their execution
([#1316](https://github.com/open-feature/flagd/issues/1316))
([25041c0](25041c016a))
</details>

<details><summary>core: 0.9.3</summary>

##
[0.9.3](https://github.com/open-feature/flagd/compare/core/v0.9.2...core/v0.9.3)
(2024-06-06)


### 🐛 Bug Fixes

* fixes store merge when selector is used
([#1322](https://github.com/open-feature/flagd/issues/1322))
([ed5025d](ed5025d8f2))


### 🧹 Chore

* adapt telemetry setup error handling
([#1315](https://github.com/open-feature/flagd/issues/1315))
([20bcb78](20bcb78d11))
</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>
2024-06-06 10:42:38 -04:00
Kavindu Dodanduwa ed5025d8f2
fix: fixes store merge when selector is used (#1322)
## This PR

This change address
https://github.com/open-feature/open-feature-operator/issues/664.

**Background**

We allow using multiple flag source CRDs when using flagd-proxy with
OFO. Internally, this converts to flagd using gRPC syncs with scopes,
where scopes specify the CRD names that need to source flags from.

**Bug**

We had two bugs, first gRPC resyncs never contained `scope`. This is why
we observed `unable to build sync from URI for target` message.
Secondly, we triggered resyncs only considering source equility. This is
not valid with flagd-proxy as we always go through the proxy for any
CRD.

**Fix**

Fix here adds scope to gRPC resyncs and considers both source and
selector equality when triggering a resync

**How to validate the fix**

[Use this
image](https://hub.docker.com/repository/docker/kavindudodanduwa/flagd/general)
with OFO sidecar image override

```helm upgrade --install openfeature openfeature/open-feature-operator --set sidecarConfiguration.image.tag=1,sidecarConfiguration.image.repository=kavindudodanduwa/flagd```

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-06-06 09:36:11 -04:00
Florian Bacher 20bcb78d11
chore: adapt telemetry setup error handling (#1315)
Closes #1194

This PR adapts the service setup to not fail when encountering an error
in the telemetry setup.

---------

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
2024-05-27 12:53:48 -04:00
Todd Baert 9b8fa74596
chore: update to fix unary bug in playground (#1318)
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-05-23 17:05:52 -04:00
Florian Bacher 25041c016a
chore: fix unit tests and ensure their execution (#1316)
When running the tests locally I noticed that one of them was failing in
the `flagd` submodule of the repo. After looking into this, I noticed
that the unit tests are only executed for the `core` package in the PR
checks - this is fixed with this PR

---------

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
2024-05-23 13:25:47 -07:00
Todd Baert 470d038346
fix: public schema update - fix unary op shorthand (#1317)
See title, and: 


https://github.com/open-feature/flagd-schemas/compare/json/json-schema-v0.2.4...json/json-schema-v0.2.5

https://github.com/open-feature/flagd-schemas/compare/json/json-schema-v0.2.3...json/json-schema-v0.2.4

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2024-05-23 15:40:00 -04:00
Michael Beemer 34756fe02d
docs: fix typos in the intro
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-05-10 14:19:19 -04:00
github-actions[bot] d58fe3c3ac
chore: release main (#1301)
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.10.2</summary>

##
[0.10.2](https://github.com/open-feature/flagd/compare/flagd/v0.10.1...flagd/v0.10.2)
(2024-05-10)


###  New Features

* Create interface for eval events.
([#1288](https://github.com/open-feature/flagd/issues/1288))
([9714215](9714215ced))


### 🧹 Chore

* bump go deps to latest
([#1307](https://github.com/open-feature/flagd/issues/1307))
([004ad08](004ad083dc))
</details>

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

##
[0.6.2](https://github.com/open-feature/flagd/compare/flagd-proxy/v0.6.1...flagd-proxy/v0.6.2)
(2024-05-10)


### 🧹 Chore

* bump go deps to latest
([#1307](https://github.com/open-feature/flagd/issues/1307))
([004ad08](004ad083dc))
</details>

<details><summary>core: 0.9.2</summary>

##
[0.9.2](https://github.com/open-feature/flagd/compare/core/v0.9.1...core/v0.9.2)
(2024-05-10)


###  New Features

* improve error log and add flag disabled handling for ofrep
([#1306](https://github.com/open-feature/flagd/issues/1306))
([39ae4fe](39ae4fe113))


### 🧹 Chore

* bump go deps to latest
([#1307](https://github.com/open-feature/flagd/issues/1307))
([004ad08](004ad083dc))
</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>
2024-05-10 08:15:14 -07:00
Kavindu Dodanduwa 39ae4fe113
feat: improve error log and add flag disabled handling for ofrep (#1306)
## This PR

- Handle `FlagDisabledErrorCode` and include a specific error message
along with general error code
- Improve error message for targeting rule validation failure

---------

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-05-10 07:34:58 -07:00
Kavindu Dodanduwa 004ad083dc
chore: bump go deps to latest (#1307)
## This PR

Bumps go dependencies to latest in all components

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-05-09 10:43:46 -07:00
Michael Beemer 90c0be4a64
docs: add python, update .net provider docs (#1305)
## This PR

- fixes an invalid link
- adds python provider page
- update .NET provider to include in-process

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-04-30 12:17:30 -04:00
Connor Hindley 9714215ced
feat: Create interface for eval events. (#1288)
## This PR

Before this change the eval services used a unexported
struct which prevented creating eval services outside of
this package.

This change creates a new IEvents interface that allows
providing custom impls of flag eval services.

### Related Issues


### Notes
<!-- any additional notes for this PR -->

### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->

### How to test
<!-- if applicable, add testing instructions under this section -->

Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
2024-04-25 12:19:38 -07:00
186 changed files with 15547 additions and 12391 deletions

View File

@ -15,9 +15,6 @@ on:
- "README.md"
- "docs/**"
env:
GO_VERSION: '~1.21'
jobs:
lint:
runs-on: ubuntu-latest
@ -30,7 +27,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make lint
@ -42,7 +39,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make generate-docs
- name: Check no diff
@ -60,7 +57,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make test
- name: Upload coverage to Codecov
@ -78,7 +75,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- name: Set up QEMU
uses: docker/setup-qemu-action@master
@ -98,13 +95,15 @@ jobs:
tags: flagd-local:test
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.28.0
with:
input: /github/workspace/flagd-local.tar
format: "template"
template: "@/contrib/sarif.tpl"
input: ${{ github.workspace }}/flagd-local.tar
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
env:
# use an alternative trivvy db to avoid rate limits
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3
@ -123,7 +122,15 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- name: Install envoy
run: |
wget -O- https://apt.envoyproxy.io/signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/envoy-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io jammy main" | sudo tee /etc/apt/sources.list.d/envoy.list
sudo apt-get update
sudo apt-get install envoy
envoy --version
- name: Workspace init
run: make workspace-init
@ -140,5 +147,9 @@ jobs:
-f file:${{ github.workspace }}/test-harness/flags/zero-flags.json \
-f file:${{ github.workspace }}/test-harness/flags/edge-case-flags.json &
- name: Run envoy proxy in background
run: |
envoy -c ./test/integration/config/envoy.yaml &
- name: Run evaluation test suite
run: go clean -testcache && go test -cover ./test/integration

View File

@ -63,6 +63,7 @@ jobs:
container-release:
name: Build and push containers to GHCR
needs: release-please
environment: publish
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.items_to_publish != '' && toJson(fromJson(needs.release-please.outputs.items_to_publish)) != '[]' }}
strategy:
@ -108,6 +109,8 @@ jobs:
context: .
file: ./${{ matrix.path }}/build.Dockerfile
platforms: linux/amd64,linux/arm64
provenance: mode=max
sbom: true
push: true
tags: |
${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/${{ matrix.path }}:latest
@ -128,24 +131,12 @@ jobs:
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
- name: Generate image SBOM file name
id: image-sbom-file-gen
run: echo "IMG_SBOM_FILE=${{ format('{0}-{1}-sbom.spdx', matrix.path, env.VERSION) }}" >> $GITHUB_OUTPUT
- name: SBOM for latest image
uses: anchore/sbom-action@b6a39da80722a2cb0ef5d197531764a89b5d48c3 # v0
with:
image: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/${{ matrix.path }}:${{ env.VERSION }}
artifact-name: ${{ steps.image-sbom-file-gen.outputs.IMG_SBOM_FILE }}
output-file: ${{ steps.image-sbom-file-gen.outputs.IMG_SBOM_FILE }}
- name: Bundle release assets
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
tag_name: ${{ env.TAG }}
files: |
${{ env.PUBLIC_KEY_FILE }}
${{ steps.image-sbom-file-gen.outputs.IMG_SBOM_FILE }}
release-go-binaries:
name: Create and publish binaries to GitHub
@ -211,19 +202,6 @@ jobs:
run: |
env CGO_ENABLED=0 GOOS=windows GOARCH=386 go build ${{ env.BUILD_ARGS }} -o ./${{ matrix.path }}_windows_i386 ./${{ matrix.path }}/main.go
zip -r ${{ matrix.path }}_${{ env.VERSION_NO_PREFIX }}_Windows_i386.zip ./${{ matrix.path }}_windows_i386 ./LICENSE ./CHANGELOG.md ./README.md ./sbom.xml
# Bundle licenses
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest
- name: Build license extraction locations
id: license-files
run: |
echo "LICENSE_FOLDER=${{ format('{0}-third-party-license', matrix.path) }}" >> $GITHUB_OUTPUT
echo "LICENSE_ERROR_FILE=${{ format('{0}-license-errors.txt', matrix.path) }}" >> $GITHUB_OUTPUT
- name: Run go-licenses for module ${{ matrix.path }}
run: go-licenses save ./${{ matrix.path }} --save_path=./${{ steps.license-files.outputs.LICENSE_FOLDER }} --force --logtostderr=false 2> ./${{ steps.license-files.outputs.LICENSE_ERROR_FILE }}
continue-on-error: true # tool set stderr which can be ignored and referred through error artefact
- name: Bundle license extracts
run: tar czf ./${{ steps.license-files.outputs.LICENSE_FOLDER }}.tar.gz ./${{ steps.license-files.outputs.LICENSE_FOLDER }}
# Bundle release artifacts
- name: Bundle release assets
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
@ -233,7 +211,6 @@ jobs:
./sbom.xml
./*.tar.gz
./*.zip
./${{ steps.license-files.outputs.LICENSE_ERROR_FILE }}
homebrew:
name: Bump homebrew-core formula
needs: release-please

6
.gitignore vendored
View File

@ -18,3 +18,9 @@ node_modules/
# built documentation
site
.cache/
# coverage results
*coverage.out
# benchmark results
benchmark.txt

2
.gitmodules vendored
View File

@ -6,4 +6,4 @@
url = https://github.com/open-feature/spec.git
[submodule "schemas"]
path = schemas
url = https://github.com/open-feature/schemas.git
url = https://github.com/open-feature/flagd-schemas.git

30
.golangci.bck.yml Normal file
View File

@ -0,0 +1,30 @@
run:
timeout: 3m
linters-settings:
funlen:
statements: 50
golint:
min-confidence: 0.6
enable-all: true
issues:
exclude:
- pkg/generated
exclude-rules:
- path: _test.go
linters:
- funlen
- maligned
- noctx
- scopelint
- bodyclose
- lll
- goconst
- gocognit
- gocyclo
- dupl
- staticcheck
exclude-dirs:
- (^|/)bin($|/)
- (^|/)examples($|/)
- (^|/)schemas($|/)
- (^|/)test-harness($|/)

View File

@ -1,67 +1,43 @@
run:
skip-dirs:
- (^|/)bin($|/)
- (^|/)examples($|/)
- (^|/)schemas($|/)
- (^|/)test-harness($|/)
version: "2"
linters:
enable:
- asciicheck
- asasalint
- bidichk
- bodyclose
- contextcheck
- dogsled
- dupl
- dupword
- durationcheck
- errchkjson
- exhaustive
- funlen
- gci
- goconst
- gocritic
- gocyclo
- interfacebloat
- gosec
- lll
- misspell
- nakedret
- nilerr
- nilnil
- noctx
- nosprintfhostport
- prealloc
- promlinter
- revive
- rowserrcheck
- exportloopref
- stylecheck
- unconvert
- unparam
- whitespace
- wrapcheck
- gofumpt
- tenv
linters-settings:
funlen:
statements: 50
golint:
min-confidence: 0.6
issues:
exclude:
- pkg/generated
exclude-rules:
- path: _test.go
linters:
- funlen
- maligned
- noctx
- scopelint
- bodyclose
- lll
- goconst
- gocognit
- gocyclo
- dupl
- staticcheck
settings:
funlen:
statements: 50
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- bodyclose
- dupl
- funlen
- gocognit
- goconst
- gocyclo
- lll
- maligned
- noctx
- scopelint
- staticcheck
path: _test.go
- path: (.+)\.go$
text: pkg/generated
paths:
- (^|/)bin($|/)
- (^|/)examples($|/)
- (^|/)schemas($|/)
- (^|/)test-harness($|/)
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

View File

@ -13,6 +13,9 @@ config:
max-one-sentence-per-line: true
code-block-style: false # not compatible with mkdocs "details" panes
no-alt-text: false
descriptive-link-text: false
MD007:
indent: 4
ignores:
- "**/CHANGELOG.md"

View File

@ -1,5 +1,5 @@
{
"flagd": "0.10.1",
"flagd-proxy": "0.6.1",
"core": "0.9.1"
"flagd": "0.12.9",
"flagd-proxy": "0.8.0",
"core": "0.12.1"
}

View File

@ -3,4 +3,4 @@
#
# Managed by Peribolos: https://github.com/open-feature/community/blob/main/config/open-feature/cloud-native/workgroup.yaml
#
* @open-feature/cloud-native-maintainers
* @open-feature/flagd-maintainers @open-feature/maintainers

View File

@ -8,6 +8,24 @@ TLDR: be respectful.
Any contributions are expected to include unit tests.
These can be validated with `make test` or the automated github workflow will run them on PR creation.
## Development
### Prerequisites
You'll need:
- Go
- make
- docker
You'll want:
- curl (for calling HTTP endpoints)
- [grpcurl](https://github.com/fullstorydev/grpcurl) (for making gRPC calls)
- jq (for pretty printing responses)
### Workspace Initialization
This project uses a go workspace, to setup the project run
```shell
@ -22,6 +40,70 @@ The project uses remote buf packages, changing the remote generation source will
export GOPRIVATE=buf.build/gen/go
```
### Manual testing
flagd has a number of interfaces (you can read more about them at [flagd.dev](https://flagd.dev/)) which can be used to evaluate flags, or deliver flag configurations so that they can be evaluated by _in-process_ providers.
You can manually test this functionality by starting flagd (from the flagd/ directory) with `go run main.go start -f file:../config/samples/example_flags.flagd.json`.
NOTE: you will need `go, curl`
#### Remote single flag evaluation via HTTP1.1/Connect
```sh
# evaluates a single boolean flag
curl -X POST -d '{"flagKey":"myBoolFlag","context":{}}' -H "Content-Type: application/json" "http://localhost:8013/flagd.evaluation.v1.Service/ResolveBoolean" | jq
```
#### Remote single flag evaluation via HTTP1.1/OFREP
```sh
# evaluates a single boolean flag
curl -X POST -d '{"context":{}}' 'http://localhost:8016/ofrep/v1/evaluate/flags/myBoolFlag' | jq
```
#### Remote single flag evaluation via gRPC
```sh
# evaluates a single boolean flag
grpcurl -import-path schemas/protobuf/flagd/evaluation/v1/ -proto evaluation.proto -plaintext -d '{"flagKey":"myBoolFlag"}' localhost:8013 flagd.evaluation.v1.Service/ResolveBoolean | jq
```
#### Remote bulk evaluation via HTTP1.1/OFREP
```sh
# evaluates flags in bulk
curl -X POST -d '{"context":{}}' 'http://localhost:8016/ofrep/v1/evaluate/flags' | jq
```
#### Remote bulk evaluation via gRPC
```sh
# evaluates flags in bulk
grpcurl -import-path schemas/protobuf/flagd/evaluation/v1/ -proto evaluation.proto -plaintext -d '{}' localhost:8013 flagd.evaluation.v1.Service/ResolveAll | jq
```
#### Remote event streaming via gRPC
```sh
# notifies of flag changes (but does not evaluate)
grpcurl -import-path schemas/protobuf/flagd/evaluation/v1/ -proto evaluation.proto -plaintext -d '{}' localhost:8013 flagd.evaluation.v1.Service/EventStream
```
#### Flag configuration fetch via gRPC
```sh
# sends back a representation of all flags
grpcurl -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags | jq
```
#### Flag synchronization stream via gRPC
```sh
# will open a persistent stream which sends flag changes when the watched source is modified
grpcurl -import-path schemas/protobuf/flagd/sync/v1/ -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/SyncFlags | jq
```
## DCO Sign-Off
A DCO (Developer Certificate of Origin) sign-off is a line placed at the end of

View File

@ -40,16 +40,26 @@ build: workspace-init # default to flagd
build-flagd:
go build -ldflags "-X main.version=dev -X main.commit=$$(git rev-parse --short HEAD) -X main.date=$$(date +%FT%TZ)" -o ./bin/flagd ./flagd
.PHONY: test
test: # default to core
make test-core
test: test-core test-flagd test-flagd-proxy
test-core:
go test -race -covermode=atomic -cover -short ./core/pkg/... -coverprofile=core-coverage.out
flagd-integration-test: # dependent on ./bin/flagd start -f file:test-harness/flags/testing-flags.json -f file:test-harness/flags/custom-ops.json -f file:test-harness/flags/evaluator-refs.json -f file:test-harness/flags/zero-flags.json
go test -cover ./test/integration $(ARGS)
test-flagd:
go test -race -covermode=atomic -cover -short ./flagd/pkg/... -coverprofile=flagd-coverage.out
test-flagd-proxy:
go test -race -covermode=atomic -cover -short ./flagd-proxy/pkg/... -coverprofile=flagd-proxy-coverage.out
flagd-benchmark-test:
go test -bench=Bench -short -benchtime=5s -benchmem ./core/... | tee benchmark.txt
flagd-integration-test-harness:
# target used to start a locally built flagd with the e2e flags
cd flagd; go run main.go start -f file:../test-harness/flags/testing-flags.json -f file:../test-harness/flags/custom-ops.json -f file:../test-harness/flags/evaluator-refs.json -f file:../test-harness/flags/zero-flags.json -f file:../test-harness/flags/edge-case-flags.json
flagd-integration-test: # dependent on flagd-e2e-test-harness if not running in github actions
go test -count=1 -cover ./test/integration $(ARGS)
run: # default to flagd
make run-flagd
run-flagd:
cd flagd; go run main.go start -f file:../config/samples/example_flags.flagd.json
run-flagd-selector-demo:
cd flagd; go run main.go start -f file:../config/samples/example_flags.flagd.json -f file:../config/samples/example_flags.flagd.2.json
install:
cp systemd/flagd.service /etc/systemd/system/flagd.service
mkdir -p /etc/flagd
@ -63,8 +73,11 @@ uninstall:
rm /etc/systemd/system/flagd.service
rm -f $(DESTDIR)$(PREFIX)/bin/flagd
lint:
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run --deadline=5m --timeout=5m $(module)/... || exit;)
go install -v github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run $(module)/...;)
lint-fix:
go install -v github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run --fix $(module)/...;)
install-mockgen:
go install go.uber.org/mock/mockgen@v0.4.0
mockgen: install-mockgen
@ -131,8 +144,8 @@ update-public-schema: pull-schemas-submodule
.PHONY: run-web-docs
run-web-docs: generate-docs generate-proto-docs
docker build -t squidfunk/mkdocs-material . \
&& docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
docker build -t flag-docs:latest . --load \
&& docker run --rm -it -p 8000:8000 -v ${PWD}:/docs flag-docs:latest
# Run the playground app in dev mode
# See the readme in the playground-app folder for more details

72
benchmark.txt Normal file
View File

@ -0,0 +1,72 @@
PASS
ok github.com/open-feature/flagd/core/pkg/certreloader 15.986s
goos: linux
goarch: amd64
pkg: github.com/open-feature/flagd/core/pkg/evaluator
cpu: 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz
BenchmarkFractionalEvaluation/test_a@faas.com-16 423930 13316 ns/op 7229 B/op 135 allocs/op
BenchmarkFractionalEvaluation/test_b@faas.com-16 469594 13677 ns/op 7229 B/op 135 allocs/op
BenchmarkFractionalEvaluation/test_c@faas.com-16 569103 13286 ns/op 7229 B/op 135 allocs/op
BenchmarkFractionalEvaluation/test_d@faas.com-16 412386 13023 ns/op 7229 B/op 135 allocs/op
BenchmarkResolveBooleanValue/test_staticBoolFlag-16 3106903 1792 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveBooleanValue/test_targetingBoolFlag-16 448164 11250 ns/op 6065 B/op 87 allocs/op
BenchmarkResolveBooleanValue/test_staticObjectFlag-16 3958750 1476 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveBooleanValue/test_missingFlag-16 5331808 1353 ns/op 784 B/op 12 allocs/op
BenchmarkResolveBooleanValue/test_disabledFlag-16 4530751 1301 ns/op 1072 B/op 13 allocs/op
BenchmarkResolveStringValue/test_staticStringFlag-16 4583056 1525 ns/op 1040 B/op 13 allocs/op
BenchmarkResolveStringValue/test_targetingStringFlag-16 839954 10388 ns/op 6097 B/op 89 allocs/op
BenchmarkResolveStringValue/test_staticObjectFlag-16 4252830 1677 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveStringValue/test_missingFlag-16 3743324 1495 ns/op 784 B/op 12 allocs/op
BenchmarkResolveStringValue/test_disabledFlag-16 3495699 1709 ns/op 1072 B/op 13 allocs/op
BenchmarkResolveFloatValue/test:_staticFloatFlag-16 4382868 1511 ns/op 1024 B/op 13 allocs/op
BenchmarkResolveFloatValue/test:_targetingFloatFlag-16 867987 10344 ns/op 6081 B/op 89 allocs/op
BenchmarkResolveFloatValue/test:_staticObjectFlag-16 3913120 1695 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveFloatValue/test:_missingFlag-16 3910468 1349 ns/op 784 B/op 12 allocs/op
BenchmarkResolveFloatValue/test:_disabledFlag-16 3642919 1666 ns/op 1072 B/op 13 allocs/op
BenchmarkResolveIntValue/test_staticIntFlag-16 4077288 1349 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveIntValue/test_targetingNumberFlag-16 922383 7601 ns/op 6065 B/op 87 allocs/op
BenchmarkResolveIntValue/test_staticObjectFlag-16 4995128 1229 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveIntValue/test_missingFlag-16 5574153 1274 ns/op 768 B/op 12 allocs/op
BenchmarkResolveIntValue/test_disabledFlag-16 3633708 1734 ns/op 1072 B/op 13 allocs/op
BenchmarkResolveObjectValue/test_staticObjectFlag-16 1624102 4559 ns/op 2243 B/op 37 allocs/op
BenchmarkResolveObjectValue/test_targetingObjectFlag-16 443880 11995 ns/op 7283 B/op 109 allocs/op
BenchmarkResolveObjectValue/test_staticBoolFlag-16 3462445 1665 ns/op 1008 B/op 11 allocs/op
BenchmarkResolveObjectValue/test_missingFlag-16 4207567 1458 ns/op 784 B/op 12 allocs/op
BenchmarkResolveObjectValue/test_disabledFlag-16 3407262 1848 ns/op 1072 B/op 13 allocs/op
PASS
ok github.com/open-feature/flagd/core/pkg/evaluator 239.506s
? github.com/open-feature/flagd/core/pkg/evaluator/mock [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/logger 0.003s
? github.com/open-feature/flagd/core/pkg/model [no test files]
? github.com/open-feature/flagd/core/pkg/service [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/service/ofrep 0.002s
PASS
ok github.com/open-feature/flagd/core/pkg/store 0.003s
? github.com/open-feature/flagd/core/pkg/sync [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/sync/blob 0.016s
PASS
ok github.com/open-feature/flagd/core/pkg/sync/builder 0.018s
? github.com/open-feature/flagd/core/pkg/sync/builder/mock [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/sync/file 1.007s
PASS
ok github.com/open-feature/flagd/core/pkg/sync/grpc 8.011s
PASS
ok github.com/open-feature/flagd/core/pkg/sync/grpc/credentials 0.008s
? github.com/open-feature/flagd/core/pkg/sync/grpc/credentials/mock [no test files]
? github.com/open-feature/flagd/core/pkg/sync/grpc/mock [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/sync/grpc/nameresolvers 0.002s
PASS
ok github.com/open-feature/flagd/core/pkg/sync/http 4.006s
? github.com/open-feature/flagd/core/pkg/sync/http/mock [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/sync/kubernetes 0.016s
? github.com/open-feature/flagd/core/pkg/sync/testing [no test files]
PASS
ok github.com/open-feature/flagd/core/pkg/telemetry 0.016s
PASS
ok github.com/open-feature/flagd/core/pkg/utils 0.002s

View File

@ -0,0 +1,17 @@
{
"$schema": "https://flagd.dev/schema/v0/flags.json",
"metadata": {
"flagSetId": "other",
"version": "v1"
},
"flags": {
"myStringFlag": {
"state": "ENABLED",
"variants": {
"dupe1": "dupe1",
"dupe2": "dupe2"
},
"defaultVariant": "dupe1"
}
}
}

View File

@ -1,5 +1,9 @@
{
"$schema": "https://flagd.dev/schema/v0/flags.json",
"metadata": {
"flagSetId": "example",
"version": "v1"
},
"flags": {
"myBoolFlag": {
"state": "ENABLED",
@ -7,7 +11,10 @@
"on": true,
"off": false
},
"defaultVariant": "on"
"defaultVariant": "on",
"metadata": {
"version": "v2"
}
},
"myStringFlag": {
"state": "ENABLED",

View File

@ -1,5 +1,8 @@
{
"$schema": "https://flagd.dev/schema/v0/flags.json",
"metadata": {
"version": "v2"
},
"flags": {
"myBoolFlag": {
"state": "ENABLED",

View File

@ -1,5 +1,344 @@
# Changelog
## [0.12.1](https://github.com/open-feature/flagd/compare/core/v0.12.0...core/v0.12.1) (2025-07-28)
### 🧹 Chore
* add back file-delete test ([#1694](https://github.com/open-feature/flagd/issues/1694)) ([750aa17](https://github.com/open-feature/flagd/commit/750aa176b5a8dd24a9daaff985ff6efeb084c758))
* fix benchmark ([#1698](https://github.com/open-feature/flagd/issues/1698)) ([5e2d7d7](https://github.com/open-feature/flagd/commit/5e2d7d7176ba05e667cd92acd7decb531a8de2f6))
## [0.12.0](https://github.com/open-feature/flagd/compare/core/v0.11.8...core/v0.12.0) (2025-07-21)
### ⚠ BREAKING CHANGES
* remove sync.Type ([#1691](https://github.com/open-feature/flagd/issues/1691))
### 🐛 Bug Fixes
* update to latest otel semconv ([#1668](https://github.com/open-feature/flagd/issues/1668)) ([81855d7](https://github.com/open-feature/flagd/commit/81855d76f94a09251a19a05f830cc1d11ab6b566))
### ✨ New Features
* Add support for HTTP eTag header and 304 no change response ([#1645](https://github.com/open-feature/flagd/issues/1645)) ([ea3be4f](https://github.com/open-feature/flagd/commit/ea3be4f9010644132795bb60b36fb7705f901b62))
* remove sync.Type ([#1691](https://github.com/open-feature/flagd/issues/1691)) ([ac647e0](https://github.com/open-feature/flagd/commit/ac647e065636071f5bc065a9a084461cea692166))
## [0.11.8](https://github.com/open-feature/flagd/compare/core/v0.11.7...core/v0.11.8) (2025-07-15)
### 🧹 Chore
* **deps:** update github.com/open-feature/flagd-schemas digest to 08b4c52 ([#1682](https://github.com/open-feature/flagd/issues/1682)) ([68d04e2](https://github.com/open-feature/flagd/commit/68d04e21e63c63d6054fcd6aebfb864e8b3a597e))
## [0.11.7](https://github.com/open-feature/flagd/compare/core/v0.11.6...core/v0.11.7) (2025-07-15)
### 🐛 Bug Fixes
* general err if targeting variant not in variants ([#1680](https://github.com/open-feature/flagd/issues/1680)) ([6cabfc8](https://github.com/open-feature/flagd/commit/6cabfc8ff3bd4ad69699a72724495e84cdec0cc3))
## [0.11.6](https://github.com/open-feature/flagd/compare/core/v0.11.5...core/v0.11.6) (2025-07-10)
### ✨ New Features
* add sync_context to SyncFlags ([#1642](https://github.com/open-feature/flagd/issues/1642)) ([07a45d9](https://github.com/open-feature/flagd/commit/07a45d9b2275584fa92ff33cbe5e5c7d7864db38))
* allowing null/missing defaultValue ([#1659](https://github.com/open-feature/flagd/issues/1659)) ([3f6b78c](https://github.com/open-feature/flagd/commit/3f6b78c8ccab75e9c07d26741c4b206fd0b722ee))
## [0.11.5](https://github.com/open-feature/flagd/compare/core/v0.11.4...core/v0.11.5) (2025-06-13)
### ✨ New Features
* add server-side deadline to sync service ([#1638](https://github.com/open-feature/flagd/issues/1638)) ([b70fa06](https://github.com/open-feature/flagd/commit/b70fa06b66e1fe8a28728441a7ccd28c6fe6a0c6))
* updating context using headers ([#1641](https://github.com/open-feature/flagd/issues/1641)) ([ba34815](https://github.com/open-feature/flagd/commit/ba348152b6e7b6bd7473bb11846aac7db316c88e))
## [0.11.4](https://github.com/open-feature/flagd/compare/core/v0.11.3...core/v0.11.4) (2025-05-28)
### 🐛 Bug Fixes
* incorrect comparison used for time ([#1608](https://github.com/open-feature/flagd/issues/1608)) ([8c5ac2f](https://github.com/open-feature/flagd/commit/8c5ac2f2c31e092cbe6ddb4d3c1adeeeb04e9ef9))
### 🧹 Chore
* **deps:** update dependency go to v1.24.1 ([#1559](https://github.com/open-feature/flagd/issues/1559)) ([cd46044](https://github.com/open-feature/flagd/commit/cd4604471bba0a1df67bf87653a38df3caf9d20f))
* **security:** upgrade dependency versions ([#1632](https://github.com/open-feature/flagd/issues/1632)) ([761d870](https://github.com/open-feature/flagd/commit/761d870a3c563b8eb1b83ee543b41316c98a1d48))
### 🔄 Refactoring
* Refactor the cron function in http sync ([#1600](https://github.com/open-feature/flagd/issues/1600)) ([babcacf](https://github.com/open-feature/flagd/commit/babcacfe4dd1244dda954823d8a3ed2019c8752b))
* removed hardcoded metric export interval and use otel default ([#1621](https://github.com/open-feature/flagd/issues/1621)) ([81c66eb](https://github.com/open-feature/flagd/commit/81c66ebf2b82fc6874ab325569f52801d5ab8e5e))
## [0.11.3](https://github.com/open-feature/flagd/compare/core/v0.11.2...core/v0.11.3) (2025-03-25)
### 🐛 Bug Fixes
* **deps:** update github.com/open-feature/flagd-schemas digest to 9b0ee43 ([#1598](https://github.com/open-feature/flagd/issues/1598)) ([0587ce4](https://github.com/open-feature/flagd/commit/0587ce44e60b643ff6960c1eaf4461f933ea95b7))
* **deps:** update github.com/open-feature/flagd-schemas digest to e840a03 ([#1587](https://github.com/open-feature/flagd/issues/1587)) ([9ee0c57](https://github.com/open-feature/flagd/commit/9ee0c573d6dbfa0c4e9b18c9da7313094ea56916))
* **deps:** update module connectrpc.com/otelconnect to v0.7.2 ([#1574](https://github.com/open-feature/flagd/issues/1574)) ([6094dce](https://github.com/open-feature/flagd/commit/6094dce5c0472f593b79d6d40e080f9b8d6503e5))
* **deps:** update module github.com/google/go-cmp to v0.7.0 ([#1569](https://github.com/open-feature/flagd/issues/1569)) ([6e9dbd2](https://github.com/open-feature/flagd/commit/6e9dbd2dbf8365f839e353f53cb638847a1f05d6))
* **deps:** update module github.com/prometheus/client_golang to v1.21.1 ([#1576](https://github.com/open-feature/flagd/issues/1576)) ([cd95193](https://github.com/open-feature/flagd/commit/cd95193f71fd465ffd1b177fa492aa84d8414a87))
* **deps:** update module google.golang.org/grpc to v1.71.0 ([#1578](https://github.com/open-feature/flagd/issues/1578)) ([5c2c64f](https://github.com/open-feature/flagd/commit/5c2c64f878b8603dd37cbfd79b0e1588e4b5a3c6))
* incorrect metadata returned per source ([#1599](https://github.com/open-feature/flagd/issues/1599)) ([b333e11](https://github.com/open-feature/flagd/commit/b333e11ecfe54f72c44ee61b3dcb1f2a487c94d4))
### ✨ New Features
* accept version numbers which are not strings ([#1589](https://github.com/open-feature/flagd/issues/1589)) ([6a13796](https://github.com/open-feature/flagd/commit/6a137967a258e799cbac9e3bb3927a07412c2a7b))
## [0.11.2](https://github.com/open-feature/flagd/compare/core/v0.11.1...core/v0.11.2) (2025-02-21)
### 🐛 Bug Fixes
* **deps:** update golang.org/x/exp digest to 939b2ce ([#1555](https://github.com/open-feature/flagd/issues/1555)) ([23afa9c](https://github.com/open-feature/flagd/commit/23afa9c18c27885bdae0f5c4ebdc30e780e9da71))
* **deps:** update golang.org/x/exp digest to f9890c6 ([#1551](https://github.com/open-feature/flagd/issues/1551)) ([02c4b42](https://github.com/open-feature/flagd/commit/02c4b4250131ca819c85dcf10c2d78e0c218469f))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.5-20250127221518-be6d1143b690.1 ([#1549](https://github.com/open-feature/flagd/issues/1549)) ([d3eb44e](https://github.com/open-feature/flagd/commit/d3eb44ed45a54bd9152b7477cce17be90016683c))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.4 ([#1556](https://github.com/open-feature/flagd/issues/1556)) ([0dfa799](https://github.com/open-feature/flagd/commit/0dfa79956695849f3a703554525759093931a01d))
* **deps:** update module github.com/prometheus/client_golang to v1.21.0 ([#1568](https://github.com/open-feature/flagd/issues/1568)) ([a3d4162](https://github.com/open-feature/flagd/commit/a3d41625a2b79452c0732af29d0b4f320e74fe8b))
* **deps:** update module golang.org/x/crypto to v0.33.0 ([#1552](https://github.com/open-feature/flagd/issues/1552)) ([7cef153](https://github.com/open-feature/flagd/commit/7cef153a275a4fac5099f5a52013dcd227a79bb3))
* **deps:** update module golang.org/x/mod to v0.23.0 ([#1544](https://github.com/open-feature/flagd/issues/1544)) ([6fe7bd2](https://github.com/open-feature/flagd/commit/6fe7bd2a3e82dfc81068d9d95d8c3a4acc16456c))
### ✨ New Features
* Adding gRPC dial option override to grpc_sync.go ([#1563](https://github.com/open-feature/flagd/issues/1563)) ([1a97ca5](https://github.com/open-feature/flagd/commit/1a97ca5f81582e6d1f139a61e0e49007ad173d3f))
## [0.11.1](https://github.com/open-feature/flagd/compare/core/v0.11.0...core/v0.11.1) (2025-02-04)
### 🐛 Bug Fixes
* **deps:** update module golang.org/x/sync to v0.11.0 ([#1543](https://github.com/open-feature/flagd/issues/1543)) ([7d6c0dc](https://github.com/open-feature/flagd/commit/7d6c0dc6e6e6955af1e5225807deeb2b6797900b))
## [0.11.0](https://github.com/open-feature/flagd/compare/core/v0.10.8...core/v0.11.0) (2025-01-31)
### ⚠ BREAKING CHANGES
* flagSetMetadata in OFREP/ResolveAll, core refactors ([#1540](https://github.com/open-feature/flagd/issues/1540))
### 🐛 Bug Fixes
* **deps:** update github.com/open-feature/flagd-schemas digest to bb76343 ([#1534](https://github.com/open-feature/flagd/issues/1534)) ([8303353](https://github.com/open-feature/flagd/commit/8303353a1b503ef34b8e46d9bf77ce53c067ef3b))
* **deps:** update golang.org/x/exp digest to 3edf0e9 ([#1538](https://github.com/open-feature/flagd/issues/1538)) ([7a06567](https://github.com/open-feature/flagd/commit/7a0656713a8c2ac3d456a3a300fe137debee0edd))
* **deps:** update golang.org/x/exp digest to e0ece0d ([#1539](https://github.com/open-feature/flagd/issues/1539)) ([4281c6e](https://github.com/open-feature/flagd/commit/4281c6e80b233a162436fea3640bf5d061d40b96))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20250127221518-be6d1143b690.2 ([#1536](https://github.com/open-feature/flagd/issues/1536)) ([e23060f](https://github.com/open-feature/flagd/commit/e23060f24b2a714ae748e6b37d0d06b7caa1c95c))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.4-20241220192239-696330adaff0.1 ([#1529](https://github.com/open-feature/flagd/issues/1529)) ([8881a80](https://github.com/open-feature/flagd/commit/8881a804b4055da0127a16b8fc57022d24906e1b))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.4-20250127221518-be6d1143b690.1 ([#1537](https://github.com/open-feature/flagd/issues/1537)) ([f74207b](https://github.com/open-feature/flagd/commit/f74207bc13b75bae4275bc486df51e2da569dd41))
* **deps:** update module google.golang.org/grpc to v1.70.0 ([#1528](https://github.com/open-feature/flagd/issues/1528)) ([79b2b0a](https://github.com/open-feature/flagd/commit/79b2b0a6bbd48676dcbdd2393feb8247529bf29c))
### ✨ New Features
* flagSetMetadata in OFREP/ResolveAll, core refactors ([#1540](https://github.com/open-feature/flagd/issues/1540)) ([b49abf9](https://github.com/open-feature/flagd/commit/b49abf95069da93bdf8369c8aa0ae40e698df760))
* support yaml in blob, file, and http syncs ([#1522](https://github.com/open-feature/flagd/issues/1522)) ([76d673a](https://github.com/open-feature/flagd/commit/76d673ae8f765512270e6498569c0ce3d54a60bf))
## [0.10.8](https://github.com/open-feature/flagd/compare/core/v0.10.7...core/v0.10.8) (2025-01-19)
### 🐛 Bug Fixes
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.3 ([#1520](https://github.com/open-feature/flagd/issues/1520)) ([db2f990](https://github.com/open-feature/flagd/commit/db2f99021dfd676d2fd0c6af6af7e77783ee31ce))
* **deps:** update opentelemetry-go monorepo ([#1524](https://github.com/open-feature/flagd/issues/1524)) ([eeae9a6](https://github.com/open-feature/flagd/commit/eeae9a64caf93356fd663cc735cc422edcf9e132))
## [0.10.7](https://github.com/open-feature/flagd/compare/core/v0.10.6...core/v0.10.7) (2025-01-16)
### 🐛 Bug Fixes
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.3-20241220192239-696330adaff0.1 ([#1513](https://github.com/open-feature/flagd/issues/1513)) ([64c5787](https://github.com/open-feature/flagd/commit/64c57875b032edcef2e2d230e7735990e01b72b8))
## [0.10.6](https://github.com/open-feature/flagd/compare/core/v0.10.5...core/v0.10.6) (2025-01-15)
### 🐛 Bug Fixes
* **deps:** update github.com/open-feature/flagd-schemas digest to 37baa2c ([#1499](https://github.com/open-feature/flagd/issues/1499)) ([1a853f7](https://github.com/open-feature/flagd/commit/1a853f79dc41523fd6dcb1ae6ca9745947955cbc))
* **deps:** update github.com/open-feature/flagd-schemas digest to b81a56e ([#1391](https://github.com/open-feature/flagd/issues/1391)) ([6a3d8ac](https://github.com/open-feature/flagd/commit/6a3d8ac2511c32bd0dc77bba0169679aa9bf6ca6))
* **deps:** update golang.org/x/exp digest to 7588d65 ([#1495](https://github.com/open-feature/flagd/issues/1495)) ([242e594](https://github.com/open-feature/flagd/commit/242e59450c71c682b56e554830ea3003bdbf9622))
* **deps:** update golang.org/x/exp digest to b2144cd ([#1320](https://github.com/open-feature/flagd/issues/1320)) ([a692b00](https://github.com/open-feature/flagd/commit/a692b009ae8e7dc928d0fd65236b404192c99562))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20241220192239-696330adaff0.1 ([#1489](https://github.com/open-feature/flagd/issues/1489)) ([53add83](https://github.com/open-feature/flagd/commit/53add83a491c6e00e0d9b1b64a9461e5973edca7))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20241220192239-696330adaff0.2 ([#1492](https://github.com/open-feature/flagd/issues/1492)) ([9f1d94a](https://github.com/open-feature/flagd/commit/9f1d94a42ac00ecf5fc58c07a76c350e2e4ec2f6))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.0-20241220192239-696330adaff0.1 ([#1490](https://github.com/open-feature/flagd/issues/1490)) ([6edce72](https://github.com/open-feature/flagd/commit/6edce72e8cff01ea13cbd15d604b35ccc8337f50))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.2-20241220192239-696330adaff0.1 ([#1502](https://github.com/open-feature/flagd/issues/1502)) ([426c36e](https://github.com/open-feature/flagd/commit/426c36e838b9ded3a23f933e66e963c8110c0ddb))
* **deps:** update module connectrpc.com/connect to v1.18.1 ([#1507](https://github.com/open-feature/flagd/issues/1507)) ([89d3259](https://github.com/open-feature/flagd/commit/89d32591db784458ce9b4cca36662ea502418bc5))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.0 ([#1496](https://github.com/open-feature/flagd/issues/1496)) ([e1fe149](https://github.com/open-feature/flagd/commit/e1fe1490fd1c26b9c566ff5ddef666c0fa74b2d5))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.7.1 ([#1509](https://github.com/open-feature/flagd/issues/1509)) ([9d06812](https://github.com/open-feature/flagd/commit/9d0681270f26bb91777fa2b8a792a4b0ccd07304))
* **deps:** update module golang.org/x/crypto to v0.32.0 ([#1497](https://github.com/open-feature/flagd/issues/1497)) ([63a34d2](https://github.com/open-feature/flagd/commit/63a34d23aedcd798ff9f4cd47cdaddca35416423))
* **deps:** update module google.golang.org/grpc to v1.69.2 ([#1484](https://github.com/open-feature/flagd/issues/1484)) ([6b40ad3](https://github.com/open-feature/flagd/commit/6b40ad34c83da4a3116e7cad4139a63a6c918097))
* **deps:** update module google.golang.org/grpc to v1.69.4 ([#1510](https://github.com/open-feature/flagd/issues/1510)) ([76d6353](https://github.com/open-feature/flagd/commit/76d6353840ab8e7c93bdb0802eb1c49fc6fe1dc0))
* **deps:** update opentelemetry-go monorepo ([#1470](https://github.com/open-feature/flagd/issues/1470)) ([26b0b1a](https://github.com/open-feature/flagd/commit/26b0b1af8bc4b3a393c3453784b50f167f13f743))
### ✨ New Features
* add ssl support to sync service ([#1479](https://github.com/open-feature/flagd/issues/1479)) ([#1501](https://github.com/open-feature/flagd/issues/1501)) ([d50fcc8](https://github.com/open-feature/flagd/commit/d50fcc821c1ae043cb8cf77e464f7b738e2ff755))
* support flag metadata ([#1476](https://github.com/open-feature/flagd/issues/1476)) ([13fbbad](https://github.com/open-feature/flagd/commit/13fbbad4d849b35884f429c0e74a71ece9cce2c9))
## [0.10.5](https://github.com/open-feature/flagd/compare/core/v0.10.4...core/v0.10.5) (2024-12-17)
### 🐛 Bug Fixes
* **deps:** update kubernetes packages to v0.31.2 ([#1430](https://github.com/open-feature/flagd/issues/1430)) ([0df8622](https://github.com/open-feature/flagd/commit/0df862215563545c33f518ab7a5ad42a19bf6adb))
* **deps:** update kubernetes packages to v0.31.3 ([#1454](https://github.com/open-feature/flagd/issues/1454)) ([f56d7b0](https://github.com/open-feature/flagd/commit/f56d7b043c2d80ae4fe27e996c05a7cc1c2c1b28))
* **deps:** update kubernetes packages to v0.31.4 ([#1461](https://github.com/open-feature/flagd/issues/1461)) ([431fbb4](https://github.com/open-feature/flagd/commit/431fbb49513bcdb21b09845f47c26e51e7e9f21b))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.35.2-20240906125204-0a6a901b42e8.1 ([#1451](https://github.com/open-feature/flagd/issues/1451)) ([8c6d91d](https://github.com/open-feature/flagd/commit/8c6d91d538d226b10cb954c23409902e9d245cda))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.36.0-20240906125204-0a6a901b42e8.1 ([#1475](https://github.com/open-feature/flagd/issues/1475)) ([0b11c6c](https://github.com/open-feature/flagd/commit/0b11c6cf612b244bda6bab119814647f3ce8de2e))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.6.0 ([#1460](https://github.com/open-feature/flagd/issues/1460)) ([dbc1da4](https://github.com/open-feature/flagd/commit/dbc1da4ba984c06972b57cf990d1d31c4b8323df))
* **deps:** update module github.com/diegoholiveira/jsonlogic/v3 to v3.6.1 ([#1473](https://github.com/open-feature/flagd/issues/1473)) ([a3d899c](https://github.com/open-feature/flagd/commit/a3d899c5f8952181a6a987436e2255c2ab9176c5))
* **deps:** update module github.com/fsnotify/fsnotify to v1.8.0 ([#1438](https://github.com/open-feature/flagd/issues/1438)) ([949c73b](https://github.com/open-feature/flagd/commit/949c73bd6ebadb30cfa3b7573b43d722f8d2a93d))
* **deps:** update module github.com/stretchr/testify to v1.10.0 ([#1455](https://github.com/open-feature/flagd/issues/1455)) ([8c843df](https://github.com/open-feature/flagd/commit/8c843df7714b1f2d120c5cac8e40c7220cc0c05b))
* **deps:** update module golang.org/x/crypto to v0.29.0 ([#1443](https://github.com/open-feature/flagd/issues/1443)) ([db96dd5](https://github.com/open-feature/flagd/commit/db96dd57b9de032fc4d15931bf907a7ed962f81b))
* **deps:** update module golang.org/x/crypto to v0.30.0 ([#1457](https://github.com/open-feature/flagd/issues/1457)) ([dbdaa19](https://github.com/open-feature/flagd/commit/dbdaa199f0667f16d2a3b91867535ce93e63373c))
* **deps:** update module golang.org/x/crypto to v0.31.0 ([#1463](https://github.com/open-feature/flagd/issues/1463)) ([b2245d7](https://github.com/open-feature/flagd/commit/b2245d7f73f1bde859b9627d337dd09ecd2f1a31))
* **deps:** update module golang.org/x/mod to v0.22.0 ([#1444](https://github.com/open-feature/flagd/issues/1444)) ([ed064e1](https://github.com/open-feature/flagd/commit/ed064e134fb3a5edb0ec2d976f136af7e94d7f6d))
* **deps:** update module google.golang.org/grpc to v1.68.0 ([#1442](https://github.com/open-feature/flagd/issues/1442)) ([cd27d09](https://github.com/open-feature/flagd/commit/cd27d098e6d8d8b0f681ef42d26dba1ebac67d12))
* **deps:** update module google.golang.org/grpc to v1.68.1 ([#1456](https://github.com/open-feature/flagd/issues/1456)) ([0b6e2a1](https://github.com/open-feature/flagd/commit/0b6e2a1cd64910226d348c921b08a6de8013ac90))
* **deps:** update module google.golang.org/grpc to v1.69.0 ([#1469](https://github.com/open-feature/flagd/issues/1469)) ([dd4869f](https://github.com/open-feature/flagd/commit/dd4869f5e095066f80c9d82d1be83155e7504d88))
* **deps:** update opentelemetry-go monorepo ([#1447](https://github.com/open-feature/flagd/issues/1447)) ([68b5794](https://github.com/open-feature/flagd/commit/68b5794180da84af9adc1f2cd80f929489969c1c))
### ✨ New Features
* add context-value flag ([#1448](https://github.com/open-feature/flagd/issues/1448)) ([7ca092e](https://github.com/open-feature/flagd/commit/7ca092e478c937eca0c91357394499763545dc1c))
* s3 support for the blob sync ([#1449](https://github.com/open-feature/flagd/issues/1449)) ([a9f7261](https://github.com/open-feature/flagd/commit/a9f7261e75bc064947ae14900e5c4edc4b49bec4))
## [0.10.4](https://github.com/open-feature/flagd/compare/core/v0.10.3...core/v0.10.4) (2024-10-28)
### 🐛 Bug Fixes
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.35.1-20240906125204-0a6a901b42e8.1 ([#1420](https://github.com/open-feature/flagd/issues/1420)) ([1f06d5a](https://github.com/open-feature/flagd/commit/1f06d5a1837ea2b753974e96c2a1154d6cb3e582))
* **deps:** update module github.com/prometheus/client_golang to v1.20.5 ([#1425](https://github.com/open-feature/flagd/issues/1425)) ([583ba89](https://github.com/open-feature/flagd/commit/583ba894f2de794b36b6a1cc3bfceb9c46dc9d96))
* **deps:** update module go.uber.org/mock to v0.5.0 ([#1427](https://github.com/open-feature/flagd/issues/1427)) ([0c6fd7f](https://github.com/open-feature/flagd/commit/0c6fd7fa688db992d4e58a202889cbfea07eebf6))
* **deps:** update module gocloud.dev to v0.40.0 ([#1422](https://github.com/open-feature/flagd/issues/1422)) ([e0e4709](https://github.com/open-feature/flagd/commit/e0e4709243d8301bcbb0aaaa309be66944c1d9ed))
* **deps:** update module golang.org/x/crypto to v0.28.0 ([#1416](https://github.com/open-feature/flagd/issues/1416)) ([fb272da](https://github.com/open-feature/flagd/commit/fb272da56e0eba12245309899888c18920b9a200))
* **deps:** update module google.golang.org/grpc to v1.67.1 ([#1415](https://github.com/open-feature/flagd/issues/1415)) ([85a3a6b](https://github.com/open-feature/flagd/commit/85a3a6b46233fcc7cf71a0292b46c82ac8e66d7b))
### ✨ New Features
* added custom grpc resolver ([#1424](https://github.com/open-feature/flagd/issues/1424)) ([e5007e2](https://github.com/open-feature/flagd/commit/e5007e2bcb6f049a3c54e09331065bb9abe215be))
* support azure blob sync ([#1428](https://github.com/open-feature/flagd/issues/1428)) ([5c39cfe](https://github.com/open-feature/flagd/commit/5c39cfe30a3dead4f6db2c6f9ee4c12193cd479b))
## [0.10.3](https://github.com/open-feature/flagd/compare/core/v0.10.2...core/v0.10.3) (2024-09-23)
### 🐛 Bug Fixes
* **deps:** update kubernetes package and controller runtime, fix proto lint ([#1290](https://github.com/open-feature/flagd/issues/1290)) ([94860d6](https://github.com/open-feature/flagd/commit/94860d6ceabe9eb7c1e5dd8ea139a796710d6d8b))
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20240906125204-0a6a901b42e8.1 ([#1400](https://github.com/open-feature/flagd/issues/1400)) ([954d972](https://github.com/open-feature/flagd/commit/954d97238210f90b650493ae76277d4a8d80788a))
* **deps:** update module connectrpc.com/connect to v1.17.0 ([#1408](https://github.com/open-feature/flagd/issues/1408)) ([e7eb691](https://github.com/open-feature/flagd/commit/e7eb691094dfbf02e37d79c41f60f556415e7640))
* **deps:** update module github.com/prometheus/client_golang to v1.20.3 ([#1384](https://github.com/open-feature/flagd/issues/1384)) ([8fd16b2](https://github.com/open-feature/flagd/commit/8fd16b23b1fa8517128af36b3068ca18ebbad6c3))
* **deps:** update module github.com/prometheus/client_golang to v1.20.4 ([#1406](https://github.com/open-feature/flagd/issues/1406)) ([a0a6426](https://github.com/open-feature/flagd/commit/a0a64269b08251317676075fdea7bc65bea8a8dc))
* **deps:** update module gocloud.dev to v0.39.0 ([#1404](https://github.com/open-feature/flagd/issues/1404)) ([a3184d6](https://github.com/open-feature/flagd/commit/a3184d68413749808709baac47df3bf7400f9cdc))
* **deps:** update module golang.org/x/crypto to v0.27.0 ([#1396](https://github.com/open-feature/flagd/issues/1396)) ([f9a7d10](https://github.com/open-feature/flagd/commit/f9a7d10590d3191ea8eba0dbb340fa94d07026a4))
* **deps:** update module golang.org/x/mod to v0.21.0 ([#1397](https://github.com/open-feature/flagd/issues/1397)) ([1507e19](https://github.com/open-feature/flagd/commit/1507e19e9304bcebfbbe4376f45e9f2e82135fd2))
* **deps:** update module google.golang.org/grpc to v1.66.0 ([#1393](https://github.com/open-feature/flagd/issues/1393)) ([c96e9d7](https://github.com/open-feature/flagd/commit/c96e9d764aa51caf00fbde07cdc7d2de55b98b9e))
* **deps:** update module google.golang.org/grpc to v1.66.1 ([#1402](https://github.com/open-feature/flagd/issues/1402)) ([50c9cd3](https://github.com/open-feature/flagd/commit/50c9cd3ada2f470a22374392a5a152a487636645))
* **deps:** update module google.golang.org/grpc to v1.66.2 ([#1405](https://github.com/open-feature/flagd/issues/1405)) ([69ec28f](https://github.com/open-feature/flagd/commit/69ec28fceb597bdaad63b184943b66ccdb4af0b7))
* **deps:** update module google.golang.org/grpc to v1.67.0 ([#1407](https://github.com/open-feature/flagd/issues/1407)) ([1ad6480](https://github.com/open-feature/flagd/commit/1ad6480a0f37c4677e53065ef455f615b26b1f17))
* **deps:** update opentelemetry-go monorepo ([#1387](https://github.com/open-feature/flagd/issues/1387)) ([22aef5b](https://github.com/open-feature/flagd/commit/22aef5bbf030c619e48fbe22a16d83e071b11902))
* **deps:** update opentelemetry-go monorepo ([#1403](https://github.com/open-feature/flagd/issues/1403)) ([fc4cd3e](https://github.com/open-feature/flagd/commit/fc4cd3e547f4826ea0bb8cc1bb2304807932b4e6))
* remove dep cycle with certreloader ([#1410](https://github.com/open-feature/flagd/issues/1410)) ([5244f6f](https://github.com/open-feature/flagd/commit/5244f6f6c94f310fd80c7ab84942103cc8c18a39))
### ✨ New Features
* add mTLS support to otel exporter ([#1389](https://github.com/open-feature/flagd/issues/1389)) ([8737f53](https://github.com/open-feature/flagd/commit/8737f53444016b114ee4ae52eead0b835af0e200))
## [0.10.2](https://github.com/open-feature/flagd/compare/core/v0.10.1...core/v0.10.2) (2024-08-22)
### 🐛 Bug Fixes
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20240215170432-1e611e2999cc.1 ([#1372](https://github.com/open-feature/flagd/issues/1372)) ([ae24595](https://github.com/open-feature/flagd/commit/ae2459504f7eccafebccec83fa1f72b08f41a978))
* **deps:** update module connectrpc.com/otelconnect to v0.7.1 ([#1367](https://github.com/open-feature/flagd/issues/1367)) ([184915b](https://github.com/open-feature/flagd/commit/184915b31726729e8ed2f7999f338bf4ed684809))
* **deps:** update module github.com/open-feature/open-feature-operator/apis to v0.2.44 ([#1368](https://github.com/open-feature/flagd/issues/1368)) ([0c68726](https://github.com/open-feature/flagd/commit/0c68726bed1cdae07f1b90447818ebbc9dc45caf))
* **deps:** update module golang.org/x/crypto to v0.26.0 ([#1379](https://github.com/open-feature/flagd/issues/1379)) ([05f6658](https://github.com/open-feature/flagd/commit/05f6658e3dc72182adbff9197c8980641af8c53f))
* **deps:** update module golang.org/x/mod to v0.20.0 ([#1377](https://github.com/open-feature/flagd/issues/1377)) ([797d7a4](https://github.com/open-feature/flagd/commit/797d7a4bbafc73e6882e5998df500ae4fe98fbbc))
* **deps:** update module golang.org/x/sync to v0.8.0 ([#1378](https://github.com/open-feature/flagd/issues/1378)) ([4804c17](https://github.com/open-feature/flagd/commit/4804c17a67ea9761079ecade34ccb3446643050b))
### ✨ New Features
* add 'watcher' interface to file sync ([#1365](https://github.com/open-feature/flagd/issues/1365)) ([61fff43](https://github.com/open-feature/flagd/commit/61fff43e288daac88efb127ada20276c01ed5928))
* added new grpc sync config option to allow setting max receive message size. ([#1358](https://github.com/open-feature/flagd/issues/1358)) ([bed077b](https://github.com/open-feature/flagd/commit/bed077bac9da3b6e3bd45ca54046e40a595fcba6))
* Support blob type sources and GCS as an example of such source. ([#1366](https://github.com/open-feature/flagd/issues/1366)) ([21f2c9a](https://github.com/open-feature/flagd/commit/21f2c9a5d64cbfe2fc841080850a2c582e8f4ba6))
### 🧹 Chore
* **deps:** update dependency go to v1.22.6 ([#1297](https://github.com/open-feature/flagd/issues/1297)) ([50b92c1](https://github.com/open-feature/flagd/commit/50b92c17cfd872d3e6b95fef3b3d96444e563715))
## [0.10.1](https://github.com/open-feature/flagd/compare/core/v0.10.0...core/v0.10.1) (2024-07-08)
### 🐛 Bug Fixes
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.4.0-20240215170432-1e611e2999cc.2 ([#1342](https://github.com/open-feature/flagd/issues/1342)) ([efdd921](https://github.com/open-feature/flagd/commit/efdd92139903b89ac986a62ff2cf4f5cfef91cde))
* **deps:** update module golang.org/x/crypto to v0.25.0 ([#1351](https://github.com/open-feature/flagd/issues/1351)) ([450cbc8](https://github.com/open-feature/flagd/commit/450cbc84ca55eef3fccc768003e358a8e589668e))
* **deps:** update module golang.org/x/mod to v0.19.0 ([#1349](https://github.com/open-feature/flagd/issues/1349)) ([6ee89b4](https://github.com/open-feature/flagd/commit/6ee89b44ca4aca8f6236603fc3f969e814907bd6))
* **deps:** update module google.golang.org/grpc to v1.65.0 ([#1346](https://github.com/open-feature/flagd/issues/1346)) ([72a6b87](https://github.com/open-feature/flagd/commit/72a6b876e880ff0b43440d9b63710c7a87536988))
* **deps:** update opentelemetry-go monorepo ([#1347](https://github.com/open-feature/flagd/issues/1347)) ([37fb3cd](https://github.com/open-feature/flagd/commit/37fb3cd81d5436e9d8cd3ea490a3951ae5794130))
## [0.10.0](https://github.com/open-feature/flagd/compare/core/v0.9.3...core/v0.10.0) (2024-06-27)
### ⚠ BREAKING CHANGES
* support emitting errors from the bulk evaluator ([#1338](https://github.com/open-feature/flagd/issues/1338))
### 🐛 Bug Fixes
* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.4.0-20240215170432-1e611e2999cc.1 ([#1333](https://github.com/open-feature/flagd/issues/1333)) ([494062f](https://github.com/open-feature/flagd/commit/494062fed891fab0fb659352142dbbc97c8f1492))
* **deps:** update module buf.build/gen/go/open-feature/flagd/protocolbuffers/go to v1.34.2-20240215170432-1e611e2999cc.2 ([#1330](https://github.com/open-feature/flagd/issues/1330)) ([32291ad](https://github.com/open-feature/flagd/commit/32291ad93d25d79299a7a02381df70e2719c4fbc))
* **deps:** update module connectrpc.com/connect to v1.16.2 ([#1289](https://github.com/open-feature/flagd/issues/1289)) ([8bacb7c](https://github.com/open-feature/flagd/commit/8bacb7c59c17956dda3cf9d2a7bc6f139885a656))
* **deps:** update module github.com/open-feature/open-feature-operator/apis to v0.2.43 ([#1331](https://github.com/open-feature/flagd/issues/1331)) ([fecd769](https://github.com/open-feature/flagd/commit/fecd769e5f2c4aa7bf1a0fb13f0543e7b8045af8))
* **deps:** update module golang.org/x/crypto to v0.24.0 ([#1335](https://github.com/open-feature/flagd/issues/1335)) ([2a31a17](https://github.com/open-feature/flagd/commit/2a31a1740303991412e0169e50a064823cce0560))
* **deps:** update module golang.org/x/mod to v0.18.0 ([#1336](https://github.com/open-feature/flagd/issues/1336)) ([5fa83f7](https://github.com/open-feature/flagd/commit/5fa83f7ab266320d8d8f1388a6c2f2cac922275a))
* **deps:** update opentelemetry-go monorepo ([#1314](https://github.com/open-feature/flagd/issues/1314)) ([e9f1a7a](https://github.com/open-feature/flagd/commit/e9f1a7a04828f36691e694375b3c665140bc7dee))
* readable error messages ([#1325](https://github.com/open-feature/flagd/issues/1325)) ([7ff33ef](https://github.com/open-feature/flagd/commit/7ff33effcc47e31c5b7fdc33385d8128db2163fc))
### ✨ New Features
* add mandatory flags property in bulk response ([#1339](https://github.com/open-feature/flagd/issues/1339)) ([b20266e](https://github.com/open-feature/flagd/commit/b20266ed5e0c16bf14769f300297f7f2b0ab2dcd))
* support emitting errors from the bulk evaluator ([#1338](https://github.com/open-feature/flagd/issues/1338)) ([b9c099c](https://github.com/open-feature/flagd/commit/b9c099cb7fa002a509a82c81b467f5e784c27e82))
* support relative weighting for fractional evaluation ([#1313](https://github.com/open-feature/flagd/issues/1313)) ([f82c094](https://github.com/open-feature/flagd/commit/f82c094f5c47f99ef37b7392bfd39cec3ec7ba51))
## [0.9.3](https://github.com/open-feature/flagd/compare/core/v0.9.2...core/v0.9.3) (2024-06-06)
### 🐛 Bug Fixes
* fixes store merge when selector is used ([#1322](https://github.com/open-feature/flagd/issues/1322)) ([ed5025d](https://github.com/open-feature/flagd/commit/ed5025d8f28fdf92a5c7dceaec7fd6df7f979e3b))
### 🧹 Chore
* adapt telemetry setup error handling ([#1315](https://github.com/open-feature/flagd/issues/1315)) ([20bcb78](https://github.com/open-feature/flagd/commit/20bcb78d11dbb16aab2b14d5869bb990a0f7bca5))
## [0.9.2](https://github.com/open-feature/flagd/compare/core/v0.9.1...core/v0.9.2) (2024-05-10)
### ✨ New Features
* improve error log and add flag disabled handling for ofrep ([#1306](https://github.com/open-feature/flagd/issues/1306)) ([39ae4fe](https://github.com/open-feature/flagd/commit/39ae4fe11380af5c6e23c4aaae45b5ec17cf32d6))
### 🧹 Chore
* bump go deps to latest ([#1307](https://github.com/open-feature/flagd/issues/1307)) ([004ad08](https://github.com/open-feature/flagd/commit/004ad083dc01538791148d6233e453d2a3009fcd))
## [0.9.1](https://github.com/open-feature/flagd/compare/core/v0.9.0...core/v0.9.1) (2024-04-19)

View File

@ -1,104 +1,167 @@
module github.com/open-feature/flagd/core
go 1.21
go 1.24.0
toolchain go1.21.4
toolchain go1.24.4
require (
buf.build/gen/go/open-feature/flagd/grpc/go v1.3.0-20240215170432-1e611e2999cc.2
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.33.0-20240215170432-1e611e2999cc.1
connectrpc.com/connect v1.16.0
connectrpc.com/otelconnect v0.7.0
github.com/diegoholiveira/jsonlogic/v3 v3.5.0
github.com/fsnotify/fsnotify v1.7.0
github.com/open-feature/flagd-schemas v0.2.9-0.20240408192555-ea4f119d2bd7
github.com/open-feature/open-feature-operator/apis v0.2.39
github.com/prometheus/client_golang v1.19.0
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1
connectrpc.com/connect v1.18.1
connectrpc.com/otelconnect v0.7.2
github.com/diegoholiveira/jsonlogic/v3 v3.8.4
github.com/fsnotify/fsnotify v1.9.0
github.com/google/go-cmp v0.7.0
github.com/open-feature/flagd-schemas v0.2.9-0.20250707123415-08b4c52d3b86
github.com/open-feature/open-feature-operator/apis v0.2.45
github.com/prometheus/client_golang v1.22.0
github.com/robfig/cron v1.2.0
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/twmb/murmur3 v1.1.8
github.com/xeipuuv/gojsonschema v1.2.0
github.com/zeebo/xxh3 v1.0.2
go.opentelemetry.io/otel v1.25.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.25.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.25.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0
go.opentelemetry.io/otel/exporters/prometheus v0.47.0
go.opentelemetry.io/otel/metric v1.25.0
go.opentelemetry.io/otel/sdk v1.25.0
go.opentelemetry.io/otel/sdk/metric v1.25.0
go.opentelemetry.io/otel/trace v1.25.0
go.uber.org/mock v0.4.0
go.opentelemetry.io/otel v1.37.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.37.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0
go.opentelemetry.io/otel/exporters/prometheus v0.59.0
go.opentelemetry.io/otel/metric v1.37.0
go.opentelemetry.io/otel/sdk v1.37.0
go.opentelemetry.io/otel/sdk/metric v1.37.0
go.opentelemetry.io/otel/trace v1.37.0
go.uber.org/mock v0.5.2
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.22.0
golang.org/x/exp v0.0.0-20240409090435-93d18d7e34b8
golang.org/x/mod v0.17.0
golang.org/x/sync v0.7.0
google.golang.org/grpc v1.63.2
gocloud.dev v0.42.0
golang.org/x/crypto v0.39.0
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac
golang.org/x/mod v0.25.0
golang.org/x/sync v0.15.0
google.golang.org/grpc v1.73.0
google.golang.org/protobuf v1.36.6
gopkg.in/yaml.v3 v3.0.1
k8s.io/apimachinery v0.29.3
k8s.io/client-go v0.29.3
k8s.io/apimachinery v0.33.2
k8s.io/client-go v0.33.2
)
require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
cel.dev/expr v0.23.0 // indirect
cloud.google.com/go v0.121.1 // indirect
cloud.google.com/go/auth v0.16.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.7.0 // indirect
cloud.google.com/go/iam v1.5.2 // indirect
cloud.google.com/go/monitoring v1.24.2 // indirect
cloud.google.com/go/storage v1.55.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.0 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest/to v0.4.1 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 // indirect
github.com/aws/aws-sdk-go v1.55.6 // indirect
github.com/aws/aws-sdk-go-v2 v1.36.3 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
github.com/aws/aws-sdk-go-v2/config v1.29.12 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.65 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.69 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.0 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
github.com/aws/smithy-go v1.22.3 // indirect
github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-task/slim-sprig v2.20.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/google/gnostic-models v0.6.9 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/google/wire v0.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
github.com/googleapis/gax-go/v2 v2.14.2 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.52.2 // indirect
github.com/prometheus/procfs v0.13.0 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.65.0 // indirect
github.com/prometheus/procfs v0.16.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
github.com/zeebo/errs v1.4.0 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/oauth2 v0.19.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/term v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect
google.golang.org/protobuf v1.33.0 // indirect
golang.org/x/net v0.41.0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/text v0.26.0 // indirect
golang.org/x/time v0.11.0 // indirect
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/api v0.235.0 // indirect
google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/api v0.29.3 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240403164606-bc84c2ddaf99 // indirect
k8s.io/utils v0.0.0-20240310230437-4693a0247e57 // indirect
sigs.k8s.io/controller-runtime v0.17.3 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
k8s.io/api v0.33.2 // indirect
k8s.io/apiextensions-apiserver v0.31.1 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
sigs.k8s.io/controller-runtime v0.19.3 // indirect
sigs.k8s.io/gateway-api v1.2.1 // indirect
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,69 @@
package certreloader
import (
"crypto/tls"
"fmt"
"sync"
"time"
)
type Config struct {
KeyPath string
CertPath string
ReloadInterval time.Duration
}
type CertReloader struct {
cert *tls.Certificate
mu sync.RWMutex
nextReload time.Time
Config
}
func NewCertReloader(config Config) (*CertReloader, error) {
reloader := CertReloader{
Config: config,
}
reloader.mu.Lock()
defer reloader.mu.Unlock()
cert, err := reloader.loadCertificate()
if err != nil {
return nil, fmt.Errorf("failed to load initial certificate: %w", err)
}
reloader.cert = &cert
return &reloader, nil
}
func (r *CertReloader) GetCertificate() (*tls.Certificate, error) {
now := time.Now()
// Read locking here before we do the time comparison
// If a reload is in progress this will block and we will skip reloading in the current
// call once we can continue
r.mu.RLock()
shouldReload := r.ReloadInterval != 0 && r.nextReload.Before(now)
r.mu.RUnlock()
if shouldReload {
// Need to release the read lock, otherwise we deadlock
r.mu.Lock()
defer r.mu.Unlock()
cert, err := r.loadCertificate()
if err != nil {
return nil, fmt.Errorf("failed to load TLS cert and key: %w", err)
}
r.cert = &cert
r.nextReload = now.Add(r.ReloadInterval)
return r.cert, nil
}
return r.cert, nil
}
func (r *CertReloader) loadCertificate() (tls.Certificate, error) {
newCert, err := tls.LoadX509KeyPair(r.CertPath, r.KeyPath)
if err != nil {
return tls.Certificate{}, fmt.Errorf("failed to load key pair: %w", err)
}
return newCert, nil
}

View File

@ -0,0 +1,306 @@
package certreloader
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"io"
"math/big"
"net"
"os"
"testing"
"time"
)
func TestNewCertReloader(t *testing.T) {
cert1, key1, cleanup := generateValidCertificateFiles(t)
defer cleanup()
_, key2, cleanup := generateValidCertificateFiles(t)
defer cleanup()
tcs := []struct {
name string
config Config
err error
}{
{
name: "no config set",
config: Config{},
err: fmt.Errorf("failed to load initial certificate: failed to load key pair: open : no such file or directory"),
},
{
name: "invalid certs",
config: Config{CertPath: cert1, KeyPath: key2},
err: fmt.Errorf("failed to load initial certificate: failed to load key pair: tls: private key does not match public key"),
},
{
name: "valid certs",
config: Config{CertPath: cert1, KeyPath: key1},
err: nil,
},
}
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
reloader, err := NewCertReloader(tc.config)
if err != nil {
if tc.err == nil {
t.Fatalf("NewCertReloader returned error when no error was expected: %s", err)
} else if tc.err.Error() != err.Error() {
t.Fatalf("expected error did not matched received error. expected: %v, received: %v", tc.err, err)
}
} else {
if reloader == nil {
t.Fatal("expected reloader to not be nil")
}
}
})
}
}
func TestCertificateReload(t *testing.T) {
newCert, newKey, cleanup := generateValidCertificateFiles(t)
defer cleanup()
tcs := []struct {
name string
waitInterval time.Duration
reloadInterval time.Duration
newCert string
newKey string
shouldRotate bool
err error
}{
{
name: "reloads after interval",
waitInterval: time.Microsecond * 200,
reloadInterval: time.Microsecond * 100,
newCert: newCert,
newKey: newKey,
shouldRotate: true,
err: nil,
},
{
name: "doesnt reload before interval",
waitInterval: time.Microsecond * 50,
reloadInterval: time.Microsecond * 100,
newCert: newCert,
newKey: newKey,
shouldRotate: false,
err: nil,
},
}
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
cert, key, cleanup := generateValidCertificateFiles(t)
defer cleanup()
reloader, err := NewCertReloader(Config{
CertPath: cert,
KeyPath: key,
ReloadInterval: tc.reloadInterval,
})
if err != nil {
t.Fatal(err)
}
if err := copyFile(tc.newCert, cert); err != nil {
t.Fatalf("failed to move %s -> %s: %s", newCert, cert, err)
}
if err := copyFile(tc.newKey, key); err != nil {
t.Fatalf("failed to move %s -> %s: %s", newKey, key, err)
}
time.Sleep(tc.waitInterval)
actualCert, err := reloader.GetCertificate()
if err != nil {
t.Fatal(err)
}
actualCertParsed, err := x509.ParseCertificate(actualCert.Certificate[0])
if err != nil {
t.Fatal(err)
}
var expectedCert tls.Certificate
if tc.shouldRotate {
expectedCert, err = tls.LoadX509KeyPair(tc.newCert, tc.newKey)
if err != nil {
t.Fatal(err)
}
} else {
expectedCert, err = tls.LoadX509KeyPair(cert, key)
if err != nil {
t.Fatal(err)
}
}
expectedCertParsed, err := x509.ParseCertificate(expectedCert.Certificate[0])
if err != nil {
t.Fatal(err)
}
if expectedCertParsed.DNSNames[0] != actualCertParsed.DNSNames[0] {
t.Fatalf("expected certificate was not returned by GetCertificate. expectedCert: %v, actualCert: %v", expectedCertParsed.DNSNames[0], actualCertParsed.DNSNames[0])
}
})
}
}
func generateValidCertificate(t *testing.T) (*bytes.Buffer, *bytes.Buffer) {
t.Helper()
// set up our CA certificate
ca := &x509.Certificate{
SerialNumber: big.NewInt(2019),
Subject: pkix.Name{
Organization: []string{"Company, INC."},
Country: []string{"US"},
Province: []string{""},
Locality: []string{"San Francisco"},
StreetAddress: []string{"Golden Gate Bridge"},
PostalCode: []string{"94016"},
},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
IsCA: true,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
BasicConstraintsValid: true,
}
// create our private and public key
caPrivKey, err := rsa.GenerateKey(rand.Reader, 4096)
if err != nil {
t.Fatal(err)
}
// create the CA
caBytes, err := x509.CreateCertificate(rand.Reader, ca, ca, &caPrivKey.PublicKey, caPrivKey)
if err != nil {
t.Fatal(err)
}
// pem encode
caPEM := new(bytes.Buffer)
err = pem.Encode(caPEM, &pem.Block{
Type: "CERTIFICATE",
Bytes: caBytes,
})
if err != nil {
t.Fatal(err)
}
caPrivKeyPEM := new(bytes.Buffer)
err = pem.Encode(caPrivKeyPEM, &pem.Block{
Type: "RSA PRIVATE KEY",
Bytes: x509.MarshalPKCS1PrivateKey(caPrivKey),
})
if err != nil {
t.Fatal(err)
}
// set up our server certificate
cert := &x509.Certificate{
SerialNumber: big.NewInt(2019),
Subject: pkix.Name{
Organization: []string{"Company, INC."},
Country: []string{"US"},
Province: []string{""},
Locality: []string{"San Francisco"},
StreetAddress: []string{"Golden Gate Bridge"},
PostalCode: []string{"94016"},
},
DNSNames: []string{randString(8)},
IPAddresses: []net.IP{net.IPv4(127, 0, 0, 1), net.IPv6loopback},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
SubjectKeyId: []byte{1, 2, 3, 4, 6},
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
KeyUsage: x509.KeyUsageDigitalSignature,
}
certPrivKey, err := rsa.GenerateKey(rand.Reader, 4096)
if err != nil {
t.Fatalf("failed to create private key: %s", err)
}
certBytes, err := x509.CreateCertificate(rand.Reader, cert, ca, &certPrivKey.PublicKey, caPrivKey)
if err != nil {
t.Fatalf("failed to create certificate: %s", err)
}
certPEM := new(bytes.Buffer)
err = pem.Encode(certPEM, &pem.Block{
Type: "CERTIFICATE",
Bytes: certBytes,
})
if err != nil {
t.Fatal(err)
}
certPrivKeyPEM := new(bytes.Buffer)
err = pem.Encode(certPrivKeyPEM, &pem.Block{
Type: "RSA PRIVATE KEY",
Bytes: x509.MarshalPKCS1PrivateKey(certPrivKey),
})
if err != nil {
t.Fatal(err)
}
return certPEM, certPrivKeyPEM
}
func generateValidCertificateFiles(t *testing.T) (string, string, func()) {
t.Helper()
certFile, err := os.CreateTemp("", "certreloader_cert")
if err != nil {
t.Fatalf("failed to create certFile: %s", err)
}
defer certFile.Close()
keyFile, err := os.CreateTemp("", "certreloader_key")
if err != nil {
t.Fatalf("failed to create keyFile: %s", err)
}
defer keyFile.Close()
certBytes, keyBytes := generateValidCertificate(t)
if _, err := io.Copy(certFile, certBytes); err != nil {
t.Fatalf("failed to copy certBytes into %s: %s", certFile.Name(), err)
}
if _, err := io.Copy(keyFile, keyBytes); err != nil {
t.Fatalf("failed to copy keyBytes into %s: %s", keyFile.Name(), err)
}
return certFile.Name(), keyFile.Name(), func() {
os.Remove(certFile.Name())
os.Remove(keyFile.Name())
}
}
func copyFile(src, dst string) error {
data, err := os.ReadFile(src)
if err != nil {
return fmt.Errorf("failed to load key pair: %w", err)
}
err = os.WriteFile(dst, data, 0o0600)
if err != nil {
return fmt.Errorf("failed to load key pair: %w", err)
}
return nil
}
func randString(n int) string {
const alphanum = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
bytes := make([]byte, n)
//nolint:errcheck
rand.Read(bytes)
for i, b := range bytes {
bytes[i] = alphanum[b%byte(len(alphanum))]
}
return string(bytes)
}

View File

@ -16,8 +16,21 @@ type Fractional struct {
}
type fractionalEvaluationDistribution struct {
variant string
percentage int
totalWeight int
weightedVariants []fractionalEvaluationVariant
}
type fractionalEvaluationVariant struct {
variant string
weight int
}
func (v fractionalEvaluationVariant) getPercentage(totalWeight int) float64 {
if totalWeight == 0 {
return 0
}
return 100 * float64(v.weight) / float64(totalWeight)
}
func NewFractional(logger *logger.Logger) *Fractional {
@ -27,14 +40,14 @@ func NewFractional(logger *logger.Logger) *Fractional {
func (fe *Fractional) Evaluate(values, data any) any {
valueToDistribute, feDistributions, err := parseFractionalEvaluationData(values, data)
if err != nil {
fe.Logger.Error(fmt.Sprintf("parse fractional evaluation data: %v", err))
fe.Logger.Warn(fmt.Sprintf("parse fractional evaluation data: %v", err))
return nil
}
return distributeValue(valueToDistribute, feDistributions)
}
func parseFractionalEvaluationData(values, data any) (string, []fractionalEvaluationDistribution, error) {
func parseFractionalEvaluationData(values, data any) (string, *fractionalEvaluationDistribution, error) {
valuesArray, ok := values.([]any)
if !ok {
return "", nil, errors.New("fractional evaluation data is not an array")
@ -77,9 +90,11 @@ func parseFractionalEvaluationData(values, data any) (string, []fractionalEvalua
return bucketBy, feDistributions, nil
}
func parseFractionalEvaluationDistributions(values []any) ([]fractionalEvaluationDistribution, error) {
sumOfPercentages := 0
var feDistributions []fractionalEvaluationDistribution
func parseFractionalEvaluationDistributions(values []any) (*fractionalEvaluationDistribution, error) {
feDistributions := &fractionalEvaluationDistribution{
totalWeight: 0,
weightedVariants: make([]fractionalEvaluationVariant, len(values)),
}
for i := 0; i < len(values); i++ {
distributionArray, ok := values[i].([]any)
if !ok {
@ -87,8 +102,8 @@ func parseFractionalEvaluationDistributions(values []any) ([]fractionalEvaluatio
"please check your rule in flag definition")
}
if len(distributionArray) != 2 {
return nil, errors.New("distribution element isn't length 2")
if len(distributionArray) == 0 {
return nil, errors.New("distribution element needs at least one element")
}
variant, ok := distributionArray[0].(string)
@ -96,37 +111,36 @@ func parseFractionalEvaluationDistributions(values []any) ([]fractionalEvaluatio
return nil, errors.New("first element of distribution element isn't string")
}
percentage, ok := distributionArray[1].(float64)
if !ok {
return nil, errors.New("second element of distribution element isn't float")
weight := 1.0
if len(distributionArray) >= 2 {
distributionWeight, ok := distributionArray[1].(float64)
if ok {
// default the weight to 1 if not specified explicitly
weight = distributionWeight
}
}
sumOfPercentages += int(percentage)
feDistributions = append(feDistributions, fractionalEvaluationDistribution{
variant: variant,
percentage: int(percentage),
})
}
if sumOfPercentages != 100 {
return nil, fmt.Errorf("percentages must sum to 100, got: %d", sumOfPercentages)
feDistributions.totalWeight += int(weight)
feDistributions.weightedVariants[i] = fractionalEvaluationVariant{
variant: variant,
weight: int(weight),
}
}
return feDistributions, nil
}
// distributeValue calculate hash for given hash key and find the bucket distributions belongs to
func distributeValue(value string, feDistribution []fractionalEvaluationDistribution) string {
func distributeValue(value string, feDistribution *fractionalEvaluationDistribution) string {
hashValue := int32(murmur3.StringSum32(value))
hashRatio := math.Abs(float64(hashValue)) / math.MaxInt32
bucket := int(hashRatio * 100) // in range [0, 100]
bucket := hashRatio * 100 // in range [0, 100]
rangeEnd := 0
for _, dist := range feDistribution {
rangeEnd += dist.percentage
rangeEnd := float64(0)
for _, weightedVariant := range feDistribution.weightedVariants {
rangeEnd += weightedVariant.getPercentage(feDistribution.totalWeight)
if bucket < rangeEnd {
return dist.variant
return weightedVariant.variant
}
}

View File

@ -7,9 +7,12 @@ import (
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/open-feature/flagd/core/pkg/store"
"github.com/stretchr/testify/assert"
)
func TestFractionalEvaluation(t *testing.T) {
const source = "testSource"
var sources = []string{source}
ctx := context.Background()
commonFlags := Flags{
@ -318,7 +321,7 @@ func TestFractionalEvaluation(t *testing.T) {
expectedValue: "#FF0000",
expectedReason: model.DefaultReason,
},
"fallback to default variant if percentages don't sum to 100": {
"get variant for non-percentage weight values": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
@ -352,7 +355,41 @@ func TestFractionalEvaluation(t *testing.T) {
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.DefaultReason,
expectedReason: model.TargetingMatchReason,
},
"get variant for non-specified weight values": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"fractional": [
{"var": "email"},
[
"red"
],
[
"blue"
]
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"email": "foo@foo.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"default to targetingKey if no bucket key provided": {
flags: Flags{
@ -423,8 +460,13 @@ func TestFractionalEvaluation(t *testing.T) {
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, store.NewFlags())
je.store.Flags = tt.flags.Flags
s, err := store.NewStore(log, sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
je := NewJSON(log, s)
je.store.Update(source, tt.flags.Flags, model.Metadata{})
value, variant, reason, _, err := resolve[string](ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)
@ -451,6 +493,8 @@ func TestFractionalEvaluation(t *testing.T) {
}
func BenchmarkFractionalEvaluation(b *testing.B) {
const source = "testSource"
var sources = []string{source}
ctx := context.Background()
flags := Flags{
@ -473,7 +517,7 @@ func BenchmarkFractionalEvaluation(b *testing.B) {
},
{
"fractional": [
"email",
{"var": "email"},
[
"red",
25
@ -507,41 +551,41 @@ func BenchmarkFractionalEvaluation(b *testing.B) {
expectedReason string
expectedErrorCode string
}{
"test@faas.com": {
"test_a@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test@faas.com",
"email": "test_a@faas.com",
},
expectedVariant: "blue",
expectedValue: "#0000FF",
expectedReason: model.TargetingMatchReason,
},
"test_b@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test_b@faas.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"test2@faas.com": {
"test_c@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test2@faas.com",
"email": "test_c@faas.com",
},
expectedVariant: "yellow",
expectedValue: "#FFFF00",
expectedVariant: "green",
expectedValue: "#00FF00",
expectedReason: model.TargetingMatchReason,
},
"test3@faas.com": {
"test_d@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test3@faas.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"test4@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test4@faas.com",
"email": "test_d@faas.com",
},
expectedVariant: "blue",
expectedValue: "#0000FF",
@ -552,7 +596,13 @@ func BenchmarkFractionalEvaluation(b *testing.B) {
for name, tt := range tests {
b.Run(name, func(b *testing.B) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, &store.Flags{Flags: tt.flags.Flags})
s, err := store.NewStore(log, sources)
if err != nil {
b.Fatalf("NewStore failed: %v", err)
}
je := NewJSON(log, s)
je.store.Update(source, tt.flags.Flags, model.Metadata{})
for i := 0; i < b.N; i++ {
value, variant, reason, _, err := resolve[string](
ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)
@ -579,3 +629,49 @@ func BenchmarkFractionalEvaluation(b *testing.B) {
})
}
}
func Test_fractionalEvaluationVariant_getPercentage(t *testing.T) {
type fields struct {
variant string
weight int
}
type args struct {
totalWeight int
}
tests := []struct {
name string
fields fields
args args
want float64
}{
{
name: "get percentage",
fields: fields{
weight: 10,
},
args: args{
totalWeight: 20,
},
want: 50,
},
{
name: "total weight 0",
fields: fields{
weight: 10,
},
args: args{
totalWeight: 0,
},
want: 0,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
v := fractionalEvaluationVariant{
variant: tt.fields.variant,
weight: tt.fields.weight,
}
assert.Equalf(t, tt.want, v.getPercentage(tt.args.totalWeight), "getPercentage(%v)", tt.args.totalWeight)
})
}
}

View File

@ -3,6 +3,7 @@ package evaluator
import (
"context"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/open-feature/flagd/core/pkg/sync"
)
@ -11,12 +12,12 @@ type AnyValue struct {
Variant string
Reason string
FlagKey string
Metadata map[string]interface{}
Metadata model.Metadata
Error error
}
func NewAnyValue(
value interface{}, variant string, reason string, flagKey string, metadata map[string]interface{},
value interface{}, variant string, reason string, flagKey string, metadata model.Metadata,
err error,
) AnyValue {
return AnyValue{
@ -44,31 +45,31 @@ type IResolver interface {
ctx context.Context,
reqID string,
flagKey string,
context map[string]any) (value bool, variant string, reason string, metadata map[string]interface{}, err error)
context map[string]any) (value bool, variant string, reason string, metadata model.Metadata, err error)
ResolveStringValue(
ctx context.Context,
reqID string,
flagKey string,
context map[string]any) (
value string, variant string, reason string, metadata map[string]interface{}, err error)
value string, variant string, reason string, metadata model.Metadata, err error)
ResolveIntValue(
ctx context.Context,
reqID string,
flagKey string,
context map[string]any) (
value int64, variant string, reason string, metadata map[string]interface{}, err error)
value int64, variant string, reason string, metadata model.Metadata, err error)
ResolveFloatValue(
ctx context.Context,
reqID string,
flagKey string,
context map[string]any) (
value float64, variant string, reason string, metadata map[string]interface{}, err error)
value float64, variant string, reason string, metadata model.Metadata, err error)
ResolveObjectValue(
ctx context.Context,
reqID string,
flagKey string,
context map[string]any) (
value map[string]any, variant string, reason string, metadata map[string]interface{}, err error)
value map[string]any, variant string, reason string, metadata model.Metadata, err error)
ResolveAsAnyValue(
ctx context.Context,
reqID string,
@ -77,5 +78,5 @@ type IResolver interface {
ResolveAllValues(
ctx context.Context,
reqID string,
context map[string]any) (values []AnyValue)
context map[string]any) (resolutions []AnyValue, metadata model.Metadata, err error)
}

View File

@ -64,13 +64,13 @@ func WithEvaluator(name string, evalFunc func(interface{}, interface{}) interfac
// JSON evaluator
type JSON struct {
store *store.Flags
store *store.Store
Logger *logger.Logger
jsonEvalTracer trace.Tracer
Resolver
}
func NewJSON(logger *logger.Logger, s *store.Flags, opts ...JSONEvaluatorOption) *JSON {
func NewJSON(logger *logger.Logger, s *store.Store, opts ...JSONEvaluatorOption) *JSON {
logger = logger.WithFields(
zap.String("component", "evaluator"),
zap.String("evaluator", "json"),
@ -103,13 +103,12 @@ func (je *JSON) SetState(payload sync.DataSync) (map[string]interface{}, bool, e
_, span := je.jsonEvalTracer.Start(
context.Background(),
"flagSync",
trace.WithAttributes(attribute.String("feature_flag.source", payload.Source)),
trace.WithAttributes(attribute.String("feature_flag.sync_type", payload.Type.String())))
trace.WithAttributes(attribute.String("feature_flag.source", payload.Source)))
defer span.End()
var newFlags Flags
var definition Definition
err := configToFlags(je.Logger, payload.FlagData, &newFlags)
err := configToFlagDefinition(je.Logger, payload.FlagData, &definition)
if err != nil {
span.SetStatus(codes.Error, "flagSync error")
span.RecordError(err)
@ -119,18 +118,7 @@ func (je *JSON) SetState(payload sync.DataSync) (map[string]interface{}, bool, e
var events map[string]interface{}
var reSync bool
switch payload.Type {
case sync.ALL:
events, reSync = je.store.Merge(je.Logger, payload.Source, newFlags.Flags)
case sync.ADD:
events = je.store.Add(je.Logger, payload.Source, newFlags.Flags)
case sync.UPDATE:
events = je.store.Update(je.Logger, payload.Source, newFlags.Flags)
case sync.DELETE:
events = je.store.DeleteFlags(je.Logger, payload.Source, newFlags.Flags)
default:
return nil, false, fmt.Errorf("unsupported sync type: %d", payload.Type)
}
events, reSync = je.store.Update(payload.Source, definition.Flags, definition.Metadata)
// Number of events correlates to the number of flags changed through this sync, record it
span.SetAttributes(attribute.Int("feature_flag.change_count", len(events)))
@ -151,22 +139,32 @@ func NewResolver(store store.IStore, logger *logger.Logger, jsonEvalTracer trace
jsonlogic.AddOperator(StartsWithEvaluationName, NewStringComparisonEvaluator(logger).StartsWithEvaluation)
jsonlogic.AddOperator(EndsWithEvaluationName, NewStringComparisonEvaluator(logger).EndsWithEvaluation)
jsonlogic.AddOperator(SemVerEvaluationName, NewSemVerComparison(logger).SemVerEvaluation)
jsonlogic.AddOperator(LegacyFractionEvaluationName, NewLegacyFractional(logger).LegacyFractionalEvaluation)
return Resolver{store: store, Logger: logger, tracer: jsonEvalTracer}
}
func (je *Resolver) ResolveAllValues(ctx context.Context, reqID string, context map[string]any) []AnyValue {
func (je *Resolver) ResolveAllValues(ctx context.Context, reqID string, context map[string]any) ([]AnyValue,
model.Metadata, error,
) {
_, span := je.tracer.Start(ctx, "resolveAll")
defer span.End()
var selector store.Selector
s := ctx.Value(store.SelectorContextKey{})
if s != nil {
selector = s.(store.Selector)
}
allFlags, flagSetMetadata, err := je.store.GetAll(ctx, &selector)
if err != nil {
return nil, flagSetMetadata, fmt.Errorf("error retreiving flags from the store: %w", err)
}
values := []AnyValue{}
var value interface{}
var variant string
var reason string
var metadata map[string]interface{}
var err error
allFlags := je.store.GetAll(ctx)
for flagKey, flag := range allFlags {
if flag.State == Disabled {
// ignore evaluation of disabled flag
@ -176,44 +174,21 @@ func (je *Resolver) ResolveAllValues(ctx context.Context, reqID string, context
defaultValue := flag.Variants[flag.DefaultVariant]
switch defaultValue.(type) {
case bool:
value, variant, reason, metadata, err = resolve[bool](
ctx,
reqID,
flagKey,
context,
je.evaluateVariant,
)
value, variant, reason, metadata, err = resolve[bool](ctx, reqID, flagKey, context, je.evaluateVariant)
case string:
value, variant, reason, metadata, err = resolve[string](
ctx,
reqID,
flagKey,
context,
je.evaluateVariant,
)
value, variant, reason, metadata, err = resolve[string](ctx, reqID, flagKey, context, je.evaluateVariant)
case float64:
value, variant, reason, metadata, err = resolve[float64](
ctx,
reqID,
flagKey,
context,
je.evaluateVariant,
)
value, variant, reason, metadata, err = resolve[float64](ctx, reqID, flagKey, context, je.evaluateVariant)
case map[string]any:
value, variant, reason, metadata, err = resolve[map[string]any](
ctx,
reqID,
flagKey,
context,
je.evaluateVariant,
)
value, variant, reason, metadata, err = resolve[map[string]any](ctx, reqID, flagKey, context, je.evaluateVariant)
}
if err != nil {
je.Logger.ErrorWithID(reqID, fmt.Sprintf("bulk evaluation: key: %s returned error: %s", flagKey, err.Error()))
}
values = append(values, NewAnyValue(value, variant, reason, flagKey, metadata, err))
}
return values
return values, flagSetMetadata, nil
}
func (je *Resolver) ResolveBooleanValue(
@ -330,19 +305,24 @@ func resolve[T constraints](ctx context.Context, reqID string, key string, conte
func (je *Resolver) evaluateVariant(ctx context.Context, reqID string, flagKey string, evalCtx map[string]any) (
variant string, variants map[string]interface{}, reason string, metadata map[string]interface{}, err error,
) {
metadata = map[string]interface{}{}
flag, ok := je.store.Get(ctx, flagKey)
if !ok {
var selector store.Selector
s := ctx.Value(store.SelectorContextKey{})
if s != nil {
selector = s.(store.Selector)
}
flag, metadata, err := je.store.Get(ctx, flagKey, &selector)
if err != nil {
// flag not found
je.Logger.DebugWithID(reqID, fmt.Sprintf("requested flag could not be found: %s", flagKey))
return "", map[string]interface{}{}, model.ErrorReason, metadata, errors.New(model.FlagNotFoundErrorCode)
}
// add selector to evaluation metadata
selector := je.store.SelectorForFlag(ctx, flag)
if selector != "" {
metadata[SelectorMetadataKey] = selector
for key, value := range flag.Metadata {
// If value is not nil or empty, copy to metadata
if value != nil {
metadata[key] = value
}
}
if flag.State == Disabled {
@ -376,13 +356,18 @@ func (je *Resolver) evaluateVariant(ctx context.Context, reqID string, flagKey s
// evaluate JsonLogic rules to determine the variant
err = jsonlogic.Apply(bytes.NewReader(targetingBytes), bytes.NewReader(b), &result)
if err != nil {
je.Logger.ErrorWithID(reqID, fmt.Sprintf("error applying rules: %s", err))
je.Logger.ErrorWithID(reqID, fmt.Sprintf("error applying targeting rules: %s", err))
return "", flag.Variants, model.ErrorReason, metadata, errors.New(model.ParseErrorCode)
}
// check if string is "null" before we strip quotes, so we can differentiate between JSON null and "null"
trimmed := strings.TrimSpace(result.String())
if trimmed == "null" {
if flag.DefaultVariant == "" {
return "", flag.Variants, model.ErrorReason, metadata, errors.New(model.FlagNotFoundErrorCode)
}
return flag.DefaultVariant, flag.Variants, model.DefaultReason, metadata, nil
}
@ -395,8 +380,13 @@ func (je *Resolver) evaluateVariant(ctx context.Context, reqID string, flagKey s
}
je.Logger.ErrorWithID(reqID,
fmt.Sprintf("invalid or missing variant: %s for flagKey: %s, variant is not valid", variant, flagKey))
return "", flag.Variants, model.ErrorReason, metadata, errors.New(model.ParseErrorCode)
return "", flag.Variants, model.ErrorReason, metadata, errors.New(model.GeneralErrorCode)
}
if flag.DefaultVariant == "" {
return "", flag.Variants, model.ErrorReason, metadata, errors.New(model.FlagNotFoundErrorCode)
}
return flag.DefaultVariant, flag.Variants, model.StaticReason, metadata, nil
}
@ -458,8 +448,8 @@ func loadAndCompileSchema(log *logger.Logger) *gojsonschema.Schema {
return compiledSchema
}
// configToFlags convert string configurations to flags and store them to pointer newFlags
func configToFlags(log *logger.Logger, config string, newFlags *Flags) error {
// configToFlagDefinition convert string configurations to flags and store them to pointer newFlags
func configToFlagDefinition(log *logger.Logger, config string, definition *Definition) error {
compiledSchema := loadAndCompileSchema(log)
flagStringLoader := gojsonschema.NewStringLoader(config)
@ -478,17 +468,22 @@ func configToFlags(log *logger.Logger, config string, newFlags *Flags) error {
return fmt.Errorf("transposing evaluators: %w", err)
}
err = json.Unmarshal([]byte(transposedConfig), &newFlags)
err = json.Unmarshal([]byte(transposedConfig), &definition)
if err != nil {
return fmt.Errorf("unmarshalling provided configurations: %w", err)
}
return validateDefaultVariants(newFlags)
return validateDefaultVariants(definition)
}
// validateDefaultVariants returns an error if any of the default variants aren't valid
func validateDefaultVariants(flags *Flags) error {
func validateDefaultVariants(flags *Definition) error {
for name, flag := range flags.Flags {
// Default Variant is not provided in the config
if flag.DefaultVariant == "" {
continue
}
if _, ok := flag.Variants[flag.DefaultVariant]; !ok {
return fmt.Errorf(
"default variant: '%s' isn't a valid variant of flag: '%s'", flag.DefaultVariant, name,

View File

@ -10,6 +10,11 @@ type Evaluators struct {
Evaluators map[string]json.RawMessage `json:"$evaluators"`
}
type Definition struct {
Flags map[string]model.Flag `json:"flags"`
Metadata map[string]interface{} `json:"metadata"`
}
type Flags struct {
Flags map[string]model.Flag `json:"flags"`
}

View File

@ -44,7 +44,90 @@ const ValidFlags = `{
}
}`
const NullDefault = `{
"flags": {
"validFlag": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"defaultVariant": null
}
}
}`
const UndefinedDefault = `{
"flags": {
"validFlag": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
}
}
}
}`
const NullDefaultWithTargetting = `{
"flags": {
"validFlag": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"defaultVariant": null,
"targeting": {
"if": [
{
"==": [
{
"var": [
"key"
]
},
"value"
]
},
"on"
]
}
}
}
}`
const UndefinedDefaultWithTargetting = `{
"flags": {
"validFlag": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"targeting": {
"if": [
{
"==": [
{
"var": [
"key"
]
},
"value"
]
},
"on"
]
}
}
}
}`
const (
FlagSetID = "testSetId"
Version = "v33"
ValidFlag = "validFlag"
MissingFlag = "missingFlag"
StaticBoolFlag = "staticBoolFlag"
StaticBoolValue = true
@ -69,9 +152,15 @@ const (
ColorProp = "color"
ColorValue = "yellow"
DisabledFlag = "disabledFlag"
MetadataFlag = "metadataFlag"
VersionOverride = "v66"
)
var Flags = fmt.Sprintf(`{
"metadata": {
"flagSetId": "%s",
"version": "%s"
},
"flags": {
"%s": {
"state": "ENABLED",
@ -242,9 +331,22 @@ var Flags = fmt.Sprintf(`{
"off": false
},
"defaultVariant": "on"
},
"%s": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"defaultVariant": "on",
"metadata": {
"version": "%s"
}
}
}
}`,
FlagSetID,
Version,
StaticBoolFlag,
StaticBoolValue,
StaticStringFlag,
@ -275,11 +377,13 @@ var Flags = fmt.Sprintf(`{
DynamicObjectValue,
ColorProp,
ColorValue,
DisabledFlag)
DisabledFlag,
MetadataFlag,
VersionOverride)
func TestGetState_Valid_ContainsFlag(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: ValidFlags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: ValidFlags, Source: "testSource"})
if err != nil {
t.Fatalf("Expected no error")
}
@ -301,9 +405,9 @@ func TestSetState_Invalid_Error(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
// set state with an invalid flag definition
_, _, err := evaluator.SetState(sync.DataSync{FlagData: InvalidFlags})
if err == nil {
t.Fatalf("expected error")
_, _, err := evaluator.SetState(sync.DataSync{FlagData: InvalidFlags, Source: "testSource"})
if err != nil {
t.Fatalf("unexpected error")
}
}
@ -311,7 +415,7 @@ func TestSetState_Valid_NoError(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
// set state with a valid flag definition
_, _, err := evaluator.SetState(sync.DataSync{FlagData: ValidFlags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: ValidFlags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -319,7 +423,7 @@ func TestSetState_Valid_NoError(t *testing.T) {
func TestResolveAllValues(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -335,7 +439,11 @@ func TestResolveAllValues(t *testing.T) {
}
const reqID = "default"
for _, test := range tests {
vals := evaluator.ResolveAllValues(context.TODO(), reqID, test.context)
vals, _, err := evaluator.ResolveAllValues(context.TODO(), reqID, test.context)
if err != nil {
t.Error("error from resolver", err)
}
for _, val := range vals {
// disabled flag must be ignored from bulk evaluation
if val.FlagKey == DisabledFlag {
@ -384,7 +492,7 @@ func TestResolveBooleanValue(t *testing.T) {
}
const reqID = "default"
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -419,7 +527,7 @@ func BenchmarkResolveBooleanValue(b *testing.B) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
b.Fatalf("expected no error")
}
@ -459,7 +567,7 @@ func TestResolveStringValue(t *testing.T) {
}
const reqID = "default"
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -495,7 +603,7 @@ func BenchmarkResolveStringValue(b *testing.B) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
b.Fatalf("expected no error")
}
@ -535,7 +643,7 @@ func TestResolveFloatValue(t *testing.T) {
}
const reqID = "default"
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -571,7 +679,7 @@ func BenchmarkResolveFloatValue(b *testing.B) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
b.Fatalf("expected no error")
}
@ -611,7 +719,7 @@ func TestResolveIntValue(t *testing.T) {
}
const reqID = "default"
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -647,7 +755,7 @@ func BenchmarkResolveIntValue(b *testing.B) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
b.Fatalf("expected no error")
}
@ -687,7 +795,7 @@ func TestResolveObjectValue(t *testing.T) {
}
const reqID = "default"
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -726,7 +834,7 @@ func BenchmarkResolveObjectValue(b *testing.B) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
b.Fatalf("expected no error")
}
@ -771,7 +879,7 @@ func TestResolveAsAnyValue(t *testing.T) {
}
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags})
_, _, err := evaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
@ -790,6 +898,37 @@ func TestResolveAsAnyValue(t *testing.T) {
}
}
func TestResolve_DefaultVariant(t *testing.T) {
tests := []struct {
flags string
flagKey string
context map[string]interface{}
reason string
errorCode string
}{
{NullDefault, ValidFlag, nil, model.ErrorReason, model.FlagNotFoundErrorCode},
{UndefinedDefault, ValidFlag, nil, model.ErrorReason, model.FlagNotFoundErrorCode},
{NullDefaultWithTargetting, ValidFlag, nil, model.ErrorReason, model.FlagNotFoundErrorCode},
{UndefinedDefaultWithTargetting, ValidFlag, nil, model.ErrorReason, model.FlagNotFoundErrorCode},
}
for _, test := range tests {
t.Run("", func(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: test.flags, Source: "testSource"})
if err != nil {
t.Fatalf("expected no error")
}
anyResult := evaluator.ResolveAsAnyValue(context.TODO(), "", test.flagKey, test.context)
assert.Equal(t, model.ErrorReason, anyResult.Reason)
assert.EqualError(t, anyResult.Error, test.errorCode)
})
}
}
func TestSetState_DefaultVariantValidation(t *testing.T) {
tests := map[string]struct {
jsonFlags string
@ -843,7 +982,7 @@ func TestSetState_DefaultVariantValidation(t *testing.T) {
t.Run(name, func(t *testing.T) {
jsonEvaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: tt.jsonFlags})
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: tt.jsonFlags, Source: "testSource"})
if tt.valid && err != nil {
t.Error(err)
@ -855,7 +994,6 @@ func TestSetState_DefaultVariantValidation(t *testing.T) {
func TestState_Evaluator(t *testing.T) {
tests := map[string]struct {
inputState string
inputSyncType sync.Type
expectedOutputState string
expectedError bool
expectedResync bool
@ -891,7 +1029,6 @@ func TestState_Evaluator(t *testing.T) {
}
}
`,
inputSyncType: sync.ALL,
expectedOutputState: `
{
"flags": {
@ -904,7 +1041,8 @@ func TestState_Evaluator(t *testing.T) {
},
"defaultVariant": "recursive",
"state": "ENABLED",
"source":"",
"source":"testSource",
"selector":"",
"targeting": {
"if": [
{
@ -951,7 +1089,6 @@ func TestState_Evaluator(t *testing.T) {
}
}
`,
inputSyncType: sync.ALL,
expectedOutputState: `
{
"flags": {
@ -964,7 +1101,8 @@ func TestState_Evaluator(t *testing.T) {
},
"defaultVariant": "recursive",
"state": "ENABLED",
"source":"",
"source":"testSource",
"selector":"",
"targeting": {
"if": [
{
@ -1007,7 +1145,6 @@ func TestState_Evaluator(t *testing.T) {
}
}
`,
inputSyncType: sync.ALL,
expectedError: true,
},
"invalid targeting": {
@ -1023,7 +1160,6 @@ func TestState_Evaluator(t *testing.T) {
},
"defaultVariant": "recursive",
"state": "ENABLED",
"source":"",
"targeting": {
"if": [
{
@ -1041,7 +1177,7 @@ func TestState_Evaluator(t *testing.T) {
"off": false
},
"defaultVariant": "off",
"source":"",
"source":"testSource",
"targeting": {
"if": [
{
@ -1062,7 +1198,6 @@ func TestState_Evaluator(t *testing.T) {
"flagSources":null
}
`,
inputSyncType: sync.ALL,
expectedError: false,
expectedOutputState: `
{
@ -1076,7 +1211,8 @@ func TestState_Evaluator(t *testing.T) {
},
"defaultVariant": "recursive",
"state": "ENABLED",
"source":"",
"source":"testSource",
"selector":"",
"targeting": {
"if": [
{
@ -1094,7 +1230,8 @@ func TestState_Evaluator(t *testing.T) {
"off": false
},
"defaultVariant": "off",
"source":"",
"source":"testSource",
"selector":"",
"targeting": {
"if": [
{
@ -1143,47 +1280,15 @@ func TestState_Evaluator(t *testing.T) {
}
}
`,
inputSyncType: sync.ALL,
expectedError: true,
},
"unexpected sync type": {
inputState: `
{
"flags": {
"fibAlgo": {
"variants": {
"recursive": "recursive",
"memo": "memo",
"loop": "loop",
"binet": "binet"
},
"defaultVariant": "recursive",
"state": "ENABLED",
"targeting": {
"if": [
{
"$ref": "emailWithFaas"
}, "binet", null
]
}
}
},
"$evaluators": {
"emailWithFaas": ""
}
}
`,
inputSyncType: 999,
expectedError: true,
expectedResync: false,
},
}
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
jsonEvaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, resync, err := jsonEvaluator.SetState(sync.DataSync{FlagData: tt.inputState})
_, resync, err := jsonEvaluator.SetState(sync.DataSync{FlagData: tt.inputState, Source: "testSource"})
if err != nil {
if !tt.expectedError {
t.Error(err)
@ -1216,8 +1321,8 @@ func TestState_Evaluator(t *testing.T) {
t.Fatal(err)
}
if !reflect.DeepEqual(expectedOutputJSON["flags"], gotOutputJSON["flags"]) {
t.Errorf("expected state: %v got state: %v", expectedOutputJSON, gotOutputJSON)
if !reflect.DeepEqual(expectedOutputJSON["flags"], gotOutputJSON) {
t.Errorf("expected state: %v got state: %v", expectedOutputJSON["flags"], gotOutputJSON)
}
})
}
@ -1225,60 +1330,60 @@ func TestState_Evaluator(t *testing.T) {
func TestFlagStateSafeForConcurrentReadWrites(t *testing.T) {
tests := map[string]struct {
dataSyncType sync.Type
flagResolution func(evaluator *evaluator.JSON) error
}{
"Add_ResolveAllValues": {
dataSyncType: sync.ADD,
flagResolution: func(evaluator *evaluator.JSON) error {
evaluator.ResolveAllValues(context.TODO(), "", nil)
_, _, err := evaluator.ResolveAllValues(context.TODO(), "", nil)
if err != nil {
return err
}
return nil
},
},
"Update_ResolveAllValues": {
dataSyncType: sync.UPDATE,
flagResolution: func(evaluator *evaluator.JSON) error {
evaluator.ResolveAllValues(context.TODO(), "", nil)
_, _, err := evaluator.ResolveAllValues(context.TODO(), "", nil)
if err != nil {
return err
}
return nil
},
},
"Delete_ResolveAllValues": {
dataSyncType: sync.DELETE,
flagResolution: func(evaluator *evaluator.JSON) error {
evaluator.ResolveAllValues(context.TODO(), "", nil)
_, _, err := evaluator.ResolveAllValues(context.TODO(), "", nil)
if err != nil {
return err
}
return nil
},
},
"Add_ResolveBooleanValue": {
dataSyncType: sync.ADD,
flagResolution: func(evaluator *evaluator.JSON) error {
_, _, _, _, err := evaluator.ResolveBooleanValue(context.TODO(), "", StaticBoolFlag, nil)
return err
},
},
"Update_ResolveStringValue": {
dataSyncType: sync.UPDATE,
flagResolution: func(evaluator *evaluator.JSON) error {
_, _, _, _, err := evaluator.ResolveBooleanValue(context.TODO(), "", StaticStringValue, nil)
return err
},
},
"Delete_ResolveIntValue": {
dataSyncType: sync.DELETE,
flagResolution: func(evaluator *evaluator.JSON) error {
_, _, _, _, err := evaluator.ResolveIntValue(context.TODO(), "", StaticIntFlag, nil)
return err
},
},
"Add_ResolveFloatValue": {
dataSyncType: sync.ADD,
flagResolution: func(evaluator *evaluator.JSON) error {
_, _, _, _, err := evaluator.ResolveFloatValue(context.TODO(), "", StaticFloatFlag, nil)
return err
},
},
"Update_ResolveObjectValue": {
dataSyncType: sync.UPDATE,
flagResolution: func(evaluator *evaluator.JSON) error {
_, _, _, _, err := evaluator.ResolveObjectValue(context.TODO(), "", StaticObjectFlag, nil)
return err
@ -1290,7 +1395,7 @@ func TestFlagStateSafeForConcurrentReadWrites(t *testing.T) {
t.Run(name, func(t *testing.T) {
jsonEvaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: Flags, Type: sync.ADD})
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
t.Fatal(err)
}
@ -1313,7 +1418,7 @@ func TestFlagStateSafeForConcurrentReadWrites(t *testing.T) {
errChan <- nil
return
default:
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: Flags, Type: tt.dataSyncType})
_, _, err := jsonEvaluator.SetState(sync.DataSync{FlagData: Flags, Source: "testSource"})
if err != nil {
errChan <- err
return
@ -1355,7 +1460,7 @@ func TestFlagdAmbientProperties(t *testing.T) {
t.Run("flagKeyIsInTheContext", func(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: `{
_, _, err := evaluator.SetState(sync.DataSync{Source: "testSource", FlagData: `{
"flags": {
"welcome-banner": {
"state": "ENABLED",
@ -1395,7 +1500,7 @@ func TestFlagdAmbientProperties(t *testing.T) {
t.Run("timestampIsInTheContext", func(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: `{
_, _, err := evaluator.SetState(sync.DataSync{Source: "testSource", FlagData: `{
"flags": {
"welcome-banner": {
"state": "ENABLED",
@ -1429,7 +1534,7 @@ func TestTargetingVariantBehavior(t *testing.T) {
t.Run("missing variant error", func(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: `{
_, _, err := evaluator.SetState(sync.DataSync{Source: "testSource", FlagData: `{
"flags": {
"missing-variant": {
"state": "ENABLED",
@ -1457,7 +1562,7 @@ func TestTargetingVariantBehavior(t *testing.T) {
t.Run("null fallback", func(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
_, _, err := evaluator.SetState(sync.DataSync{FlagData: `{
_, _, err := evaluator.SetState(sync.DataSync{Source: "testSource", FlagData: `{
"flags": {
"null-fallback": {
"state": "ENABLED",
@ -1490,7 +1595,7 @@ func TestTargetingVariantBehavior(t *testing.T) {
evaluator := evaluator.NewJSON(logger.NewLogger(nil, false), store.NewFlags())
//nolint:dupword
_, _, err := evaluator.SetState(sync.DataSync{FlagData: `{
_, _, err := evaluator.SetState(sync.DataSync{Source: "testSource", FlagData: `{
"flags": {
"match-boolean": {
"state": "ENABLED",

View File

@ -1,145 +0,0 @@
// This evaluation type is deprecated and will be removed before v1.
// Do not enhance it or use it for reference.
package evaluator
import (
"errors"
"fmt"
"math"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/zeebo/xxh3"
)
const (
LegacyFractionEvaluationName = "fractionalEvaluation"
LegacyFractionEvaluationLink = "https://flagd.dev/concepts/#migrating-from-legacy-fractionalevaluation"
)
// Deprecated: LegacyFractional is deprecated. This will be removed prior to v1 release.
type LegacyFractional struct {
Logger *logger.Logger
}
type legacyFractionalEvaluationDistribution struct {
variant string
percentage int
}
func NewLegacyFractional(logger *logger.Logger) *LegacyFractional {
return &LegacyFractional{Logger: logger}
}
func (fe *LegacyFractional) LegacyFractionalEvaluation(values, data interface{}) interface{} {
fe.Logger.Warn(
fmt.Sprintf("%s is deprecated, please use %s, see: %s",
LegacyFractionEvaluationName,
FractionEvaluationName,
LegacyFractionEvaluationLink))
valueToDistribute, feDistributions, err := parseLegacyFractionalEvaluationData(values, data)
if err != nil {
fe.Logger.Error(fmt.Sprintf("parse fractional evaluation data: %v", err))
return nil
}
return distributeLegacyValue(valueToDistribute, feDistributions)
}
func parseLegacyFractionalEvaluationData(values, data interface{}) (string,
[]legacyFractionalEvaluationDistribution, error,
) {
valuesArray, ok := values.([]interface{})
if !ok {
return "", nil, errors.New("fractional evaluation data is not an array")
}
if len(valuesArray) < 2 {
return "", nil, errors.New("fractional evaluation data has length under 2")
}
bucketBy, ok := valuesArray[0].(string)
if !ok {
return "", nil, errors.New("first element of fractional evaluation data isn't of type string")
}
dataMap, ok := data.(map[string]interface{})
if !ok {
return "", nil, errors.New("data isn't of type map[string]interface{}")
}
v, ok := dataMap[bucketBy]
if !ok {
return "", nil, nil
}
valueToDistribute, ok := v.(string)
if !ok {
return "", nil, fmt.Errorf("var: %s isn't of type string", bucketBy)
}
feDistributions, err := parseLegacyFractionalEvaluationDistributions(valuesArray)
if err != nil {
return "", nil, err
}
return valueToDistribute, feDistributions, nil
}
func parseLegacyFractionalEvaluationDistributions(values []interface{}) (
[]legacyFractionalEvaluationDistribution, error,
) {
sumOfPercentages := 0
var feDistributions []legacyFractionalEvaluationDistribution
for i := 1; i < len(values); i++ {
distributionArray, ok := values[i].([]interface{})
if !ok {
return nil, errors.New("distribution elements aren't of type []interface{}")
}
if len(distributionArray) != 2 {
return nil, errors.New("distribution element isn't length 2")
}
variant, ok := distributionArray[0].(string)
if !ok {
return nil, errors.New("first element of distribution element isn't string")
}
percentage, ok := distributionArray[1].(float64)
if !ok {
return nil, errors.New("second element of distribution element isn't float")
}
sumOfPercentages += int(percentage)
feDistributions = append(feDistributions, legacyFractionalEvaluationDistribution{
variant: variant,
percentage: int(percentage),
})
}
if sumOfPercentages != 100 {
return nil, fmt.Errorf("percentages must sum to 100, got: %d", sumOfPercentages)
}
return feDistributions, nil
}
func distributeLegacyValue(value string, feDistribution []legacyFractionalEvaluationDistribution) string {
hashValue := xxh3.HashString(value)
hashRatio := float64(hashValue) / math.Pow(2, 64) // divide the hash value by the largest possible value, integer 2^64
bucket := int(hashRatio * 100) // integer in range [0, 99]
rangeEnd := 0
for _, dist := range feDistribution {
rangeEnd += dist.percentage
if bucket < rangeEnd {
return dist.variant
}
}
return ""
}

View File

@ -1,300 +0,0 @@
package evaluator
import (
"context"
"testing"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/open-feature/flagd/core/pkg/store"
)
func TestLegacyFractionalEvaluation(t *testing.T) {
ctx := context.Background()
flags := Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"in": ["@faas.com", {
"var": ["email"]
}]
},
{
"fractionalEvaluation": [
"email",
[
"red",
25
],
[
"blue",
25
],
[
"green",
25
],
[
"yellow",
25
]
]
}, null
]
}`),
},
},
}
tests := map[string]struct {
flags Flags
flagKey string
context map[string]any
expectedValue string
expectedVariant string
expectedReason string
expectedErrorCode string
}{
"test@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test@faas.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"test2@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test2@faas.com",
},
expectedVariant: "yellow",
expectedValue: "#FFFF00",
expectedReason: model.TargetingMatchReason,
},
"test3@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test3@faas.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"test4@faas.com": {
flags: flags,
flagKey: "headerColor",
context: map[string]any{
"email": "test4@faas.com",
},
expectedVariant: "blue",
expectedValue: "#0000FF",
expectedReason: model.TargetingMatchReason,
},
"non even split": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"in": ["@faas.com", {
"var": ["email"]
}]
},
{
"fractionalEvaluation": [
"email",
[
"red",
50
],
[
"blue",
25
],
[
"green",
25
]
]
}, null
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"email": "test4@faas.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"fallback to default variant if no email provided": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"fractionalEvaluation": [
"email",
[
"red",
25
],
[
"blue",
25
],
[
"green",
25
],
[
"yellow",
25
]
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{},
expectedVariant: "",
expectedValue: "",
expectedReason: model.ErrorReason,
expectedErrorCode: model.ParseErrorCode,
},
"fallback to default variant if invalid variant as result of fractional evaluation": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"fractionalEvaluation": [
"email",
[
"black",
100
]
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"email": "foo@foo.com",
},
expectedVariant: "",
expectedValue: "",
expectedReason: model.ErrorReason,
expectedErrorCode: model.ParseErrorCode,
},
"fallback to default variant if percentages don't sum to 100": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"fractionalEvaluation": [
"email",
[
"red",
25
],
[
"blue",
25
]
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"email": "foo@foo.com",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.DefaultReason,
},
}
const reqID = "default"
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, store.NewFlags())
je.store.Flags = tt.flags.Flags
value, variant, reason, _, err := resolve[string](ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)
if value != tt.expectedValue {
t.Errorf("expected value '%s', got '%s'", tt.expectedValue, value)
}
if variant != tt.expectedVariant {
t.Errorf("expected variant '%s', got '%s'", tt.expectedVariant, variant)
}
if reason != tt.expectedReason {
t.Errorf("expected reason '%s', got '%s'", tt.expectedReason, reason)
}
if err != nil {
errorCode := err.Error()
if errorCode != tt.expectedErrorCode {
t.Errorf("expected err '%v', got '%v'", tt.expectedErrorCode, err)
}
}
})
}
}

View File

@ -14,6 +14,7 @@ import (
reflect "reflect"
evaluator "github.com/open-feature/flagd/core/pkg/evaluator"
model "github.com/open-feature/flagd/core/pkg/model"
sync "github.com/open-feature/flagd/core/pkg/sync"
gomock "go.uber.org/mock/gomock"
)
@ -22,6 +23,7 @@ import (
type MockIEvaluator struct {
ctrl *gomock.Controller
recorder *MockIEvaluatorMockRecorder
isgomock struct{}
}
// MockIEvaluatorMockRecorder is the mock recorder for MockIEvaluator.
@ -57,11 +59,13 @@ func (mr *MockIEvaluatorMockRecorder) GetState() *gomock.Call {
}
// ResolveAllValues mocks base method.
func (m *MockIEvaluator) ResolveAllValues(ctx context.Context, reqID string, context map[string]any) []evaluator.AnyValue {
func (m *MockIEvaluator) ResolveAllValues(ctx context.Context, reqID string, context map[string]any) ([]evaluator.AnyValue, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveAllValues", ctx, reqID, context)
ret0, _ := ret[0].([]evaluator.AnyValue)
return ret0
ret1, _ := ret[1].(model.Metadata)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// ResolveAllValues indicates an expected call of ResolveAllValues.
@ -85,13 +89,13 @@ func (mr *MockIEvaluatorMockRecorder) ResolveAsAnyValue(ctx, reqID, flagKey, con
}
// ResolveBooleanValue mocks base method.
func (m *MockIEvaluator) ResolveBooleanValue(ctx context.Context, reqID, flagKey string, context map[string]any) (bool, string, string, map[string]any, error) {
func (m *MockIEvaluator) ResolveBooleanValue(ctx context.Context, reqID, flagKey string, context map[string]any) (bool, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveBooleanValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(map[string]any)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
@ -103,13 +107,13 @@ func (mr *MockIEvaluatorMockRecorder) ResolveBooleanValue(ctx, reqID, flagKey, c
}
// ResolveFloatValue mocks base method.
func (m *MockIEvaluator) ResolveFloatValue(ctx context.Context, reqID, flagKey string, context map[string]any) (float64, string, string, map[string]any, error) {
func (m *MockIEvaluator) ResolveFloatValue(ctx context.Context, reqID, flagKey string, context map[string]any) (float64, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveFloatValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(map[string]any)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
@ -121,13 +125,13 @@ func (mr *MockIEvaluatorMockRecorder) ResolveFloatValue(ctx, reqID, flagKey, con
}
// ResolveIntValue mocks base method.
func (m *MockIEvaluator) ResolveIntValue(ctx context.Context, reqID, flagKey string, context map[string]any) (int64, string, string, map[string]any, error) {
func (m *MockIEvaluator) ResolveIntValue(ctx context.Context, reqID, flagKey string, context map[string]any) (int64, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveIntValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(map[string]any)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
@ -139,13 +143,13 @@ func (mr *MockIEvaluatorMockRecorder) ResolveIntValue(ctx, reqID, flagKey, conte
}
// ResolveObjectValue mocks base method.
func (m *MockIEvaluator) ResolveObjectValue(ctx context.Context, reqID, flagKey string, context map[string]any) (map[string]any, string, string, map[string]any, error) {
func (m *MockIEvaluator) ResolveObjectValue(ctx context.Context, reqID, flagKey string, context map[string]any) (map[string]any, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveObjectValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(map[string]any)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(map[string]any)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
@ -157,13 +161,13 @@ func (mr *MockIEvaluatorMockRecorder) ResolveObjectValue(ctx, reqID, flagKey, co
}
// ResolveStringValue mocks base method.
func (m *MockIEvaluator) ResolveStringValue(ctx context.Context, reqID, flagKey string, context map[string]any) (string, string, string, map[string]any, error) {
func (m *MockIEvaluator) ResolveStringValue(ctx context.Context, reqID, flagKey string, context map[string]any) (string, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveStringValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(map[string]any)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
@ -175,10 +179,10 @@ func (mr *MockIEvaluatorMockRecorder) ResolveStringValue(ctx, reqID, flagKey, co
}
// SetState mocks base method.
func (m *MockIEvaluator) SetState(payload sync.DataSync) (map[string]any, bool, error) {
func (m *MockIEvaluator) SetState(payload sync.DataSync) (model.Metadata, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetState", payload)
ret0, _ := ret[0].(map[string]any)
ret0, _ := ret[0].(model.Metadata)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
@ -189,3 +193,147 @@ func (mr *MockIEvaluatorMockRecorder) SetState(payload any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetState", reflect.TypeOf((*MockIEvaluator)(nil).SetState), payload)
}
// MockIResolver is a mock of IResolver interface.
type MockIResolver struct {
ctrl *gomock.Controller
recorder *MockIResolverMockRecorder
isgomock struct{}
}
// MockIResolverMockRecorder is the mock recorder for MockIResolver.
type MockIResolverMockRecorder struct {
mock *MockIResolver
}
// NewMockIResolver creates a new mock instance.
func NewMockIResolver(ctrl *gomock.Controller) *MockIResolver {
mock := &MockIResolver{ctrl: ctrl}
mock.recorder = &MockIResolverMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIResolver) EXPECT() *MockIResolverMockRecorder {
return m.recorder
}
// ResolveAllValues mocks base method.
func (m *MockIResolver) ResolveAllValues(ctx context.Context, reqID string, context map[string]any) ([]evaluator.AnyValue, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveAllValues", ctx, reqID, context)
ret0, _ := ret[0].([]evaluator.AnyValue)
ret1, _ := ret[1].(model.Metadata)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// ResolveAllValues indicates an expected call of ResolveAllValues.
func (mr *MockIResolverMockRecorder) ResolveAllValues(ctx, reqID, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveAllValues", reflect.TypeOf((*MockIResolver)(nil).ResolveAllValues), ctx, reqID, context)
}
// ResolveAsAnyValue mocks base method.
func (m *MockIResolver) ResolveAsAnyValue(ctx context.Context, reqID, flagKey string, context map[string]any) evaluator.AnyValue {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveAsAnyValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(evaluator.AnyValue)
return ret0
}
// ResolveAsAnyValue indicates an expected call of ResolveAsAnyValue.
func (mr *MockIResolverMockRecorder) ResolveAsAnyValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveAsAnyValue", reflect.TypeOf((*MockIResolver)(nil).ResolveAsAnyValue), ctx, reqID, flagKey, context)
}
// ResolveBooleanValue mocks base method.
func (m *MockIResolver) ResolveBooleanValue(ctx context.Context, reqID, flagKey string, context map[string]any) (bool, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveBooleanValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
// ResolveBooleanValue indicates an expected call of ResolveBooleanValue.
func (mr *MockIResolverMockRecorder) ResolveBooleanValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveBooleanValue", reflect.TypeOf((*MockIResolver)(nil).ResolveBooleanValue), ctx, reqID, flagKey, context)
}
// ResolveFloatValue mocks base method.
func (m *MockIResolver) ResolveFloatValue(ctx context.Context, reqID, flagKey string, context map[string]any) (float64, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveFloatValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
// ResolveFloatValue indicates an expected call of ResolveFloatValue.
func (mr *MockIResolverMockRecorder) ResolveFloatValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveFloatValue", reflect.TypeOf((*MockIResolver)(nil).ResolveFloatValue), ctx, reqID, flagKey, context)
}
// ResolveIntValue mocks base method.
func (m *MockIResolver) ResolveIntValue(ctx context.Context, reqID, flagKey string, context map[string]any) (int64, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveIntValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
// ResolveIntValue indicates an expected call of ResolveIntValue.
func (mr *MockIResolverMockRecorder) ResolveIntValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveIntValue", reflect.TypeOf((*MockIResolver)(nil).ResolveIntValue), ctx, reqID, flagKey, context)
}
// ResolveObjectValue mocks base method.
func (m *MockIResolver) ResolveObjectValue(ctx context.Context, reqID, flagKey string, context map[string]any) (map[string]any, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveObjectValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(map[string]any)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
// ResolveObjectValue indicates an expected call of ResolveObjectValue.
func (mr *MockIResolverMockRecorder) ResolveObjectValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveObjectValue", reflect.TypeOf((*MockIResolver)(nil).ResolveObjectValue), ctx, reqID, flagKey, context)
}
// ResolveStringValue mocks base method.
func (m *MockIResolver) ResolveStringValue(ctx context.Context, reqID, flagKey string, context map[string]any) (string, string, string, model.Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveStringValue", ctx, reqID, flagKey, context)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(string)
ret3, _ := ret[3].(model.Metadata)
ret4, _ := ret[4].(error)
return ret0, ret1, ret2, ret3, ret4
}
// ResolveStringValue indicates an expected call of ResolveStringValue.
func (mr *MockIResolverMockRecorder) ResolveStringValue(ctx, reqID, flagKey, context any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveStringValue", reflect.TypeOf((*MockIResolver)(nil).ResolveStringValue), ctx, reqID, flagKey, context)
}

View File

@ -102,7 +102,7 @@ func parseSemverEvaluationData(values interface{}) (string, string, SemVerOperat
}
if len(parsed) != 3 {
return "", "", "", errors.New("sem_ver evaluation must contain a value, an operator and a comparison target")
return "", "", "", errors.New("sem_ver evaluation must contain a value, an operator, and a comparison target")
}
actualVersion, err := parseSemanticVersion(parsed[0])
@ -122,11 +122,17 @@ func parseSemverEvaluationData(values interface{}) (string, string, SemVerOperat
return actualVersion, targetVersion, operator, nil
}
func parseSemanticVersion(v interface{}) (string, error) {
version, ok := v.(string)
if !ok {
return "", errors.New("sem_ver evaluation: property did not resolve to a string value")
func ensureString(v interface{}) string {
if str, ok := v.(string); ok {
// It's already a string
return str
}
// Convert to string if not already
return fmt.Sprintf("%v", v)
}
func parseSemanticVersion(v interface{}) (string, error) {
version := ensureString(v)
// version strings are only valid in the semver package if they start with a 'v'
// if it's not present in the given value, we prepend it
if !strings.HasPrefix(version, "v") {
@ -134,7 +140,7 @@ func parseSemanticVersion(v interface{}) (string, error) {
}
if !semver.IsValid(version) {
return "", errors.New("not a valid semantic version string")
return "", fmt.Errorf("'%v' is not a valid semantic version string", version)
}
return version, nil
@ -143,7 +149,7 @@ func parseSemanticVersion(v interface{}) (string, error) {
func parseOperator(o interface{}) (SemVerOperator, error) {
operatorString, ok := o.(string)
if !ok {
return "", errors.New("could not parse operator")
return "", fmt.Errorf("could not parse operator '%v'", o)
}
return SemVerOperator(operatorString), nil

View File

@ -23,6 +23,76 @@ func TestSemVerOperator_Compare(t *testing.T) {
want bool
wantErr bool
}{
{
name: "invalid version",
svo: Greater,
args: args{
v1: "invalid",
v2: "v1.0.0",
},
want: false,
wantErr: true,
},
{
name: "preview version vs non preview version",
svo: Greater,
args: args{
v1: "v1.0.0-preview.1.2",
v2: "v1.0.0",
},
want: false,
wantErr: false,
},
{
name: "preview version vs preview version",
svo: Greater,
args: args{
v1: "v1.0.0-preview.1.3",
v2: "v1.0.0-preview.1.2",
},
want: true,
wantErr: false,
},
{
name: "no prefixed v left greater",
svo: Greater,
args: args{
v1: "0.0.1",
v2: "v0.0.2",
},
want: false,
wantErr: false,
},
{
name: "no prefixed v right greater",
svo: Greater,
args: args{
v1: "v0.0.1",
v2: "0.0.2",
},
want: false,
wantErr: false,
},
{
name: "no prefixed v right equals",
svo: Equals,
args: args{
v1: "v0.0.1",
v2: "0.0.1",
},
want: true,
wantErr: false,
},
{
name: "no prefixed v both",
svo: Greater,
args: args{
v1: "0.0.1",
v2: "0.0.2",
},
want: false,
wantErr: false,
},
{
name: "invalid operator",
svo: "",
@ -33,6 +103,16 @@ func TestSemVerOperator_Compare(t *testing.T) {
want: false,
wantErr: true,
},
{
name: "less with large number",
svo: Less,
args: args{
v1: "v1234.0.1",
v2: "v1235.0.2",
},
want: true,
wantErr: false,
},
{
name: "less",
svo: Less,
@ -43,6 +123,16 @@ func TestSemVerOperator_Compare(t *testing.T) {
want: true,
wantErr: false,
},
{
name: "no minor version",
svo: Less,
args: args{
v1: "v1.0",
v2: "v1.2",
},
want: true,
wantErr: false,
},
{
name: "not less",
svo: Less,
@ -206,19 +296,28 @@ func TestSemVerOperator_Compare(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := tt.svo.compare(tt.args.v1, tt.args.v2)
var operatorInterface interface{} = string(tt.svo)
actualVersion, targetVersion, operator, err := parseSemverEvaluationData([]interface{}{tt.args.v1, operatorInterface, tt.args.v2})
if err != nil {
require.Truef(t, tt.wantErr, "Error parsing semver evaluation data. actualVersion: %s, targetVersion: %s, operator: %s, err: %s", actualVersion, targetVersion, operator, err)
return
}
got, err := operator.compare(actualVersion, targetVersion)
if tt.wantErr {
require.NotNil(t, err)
} else {
require.Nil(t, err)
require.Equalf(t, tt.want, got, "compare(%v, %v)", tt.args.v1, tt.args.v2)
require.Equalf(t, tt.want, got, "compare(%v, %v) operator: %s", tt.args.v1, tt.args.v2, operator)
}
})
}
}
func TestJSONEvaluator_semVerEvaluation(t *testing.T) {
const source = "testSource"
var sources = []string{source}
ctx := context.Background()
tests := map[string]struct {
@ -385,6 +484,130 @@ func TestJSONEvaluator_semVerEvaluation(t *testing.T) {
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"versions given as double - match": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"sem_ver": [1.2, "=", "1.2"]
},
"red", "green"
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"version": "1.0.0",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"versions given as int - match": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"sem_ver": [1, "=", "v1.0.0"]
},
"red", "green"
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"version": "1.0.0",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"versions and minor-version without patch version operator provided - match": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"sem_ver": [1.2, "=", "1.2"]
},
"red", "green"
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"version": "1.0.0",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"versions with prefixed v operator provided - match": {
flags: Flags{
Flags: map[string]model.Flag{
"headerColor": {
State: "ENABLED",
DefaultVariant: "red",
Variants: map[string]any{
"red": "#FF0000",
"blue": "#0000FF",
"green": "#00FF00",
"yellow": "#FFFF00",
},
Targeting: []byte(`{
"if": [
{
"sem_ver": [{"var": "version"}, "<", "v1.2"]
},
"red", "green"
]
}`),
},
},
},
flagKey: "headerColor",
context: map[string]any{
"version": "v1.0.0",
},
expectedVariant: "red",
expectedValue: "#FF0000",
expectedReason: model.TargetingMatchReason,
},
"versions and major-version operator provided - no match": {
flags: Flags{
Flags: map[string]model.Flag{
@ -701,8 +924,12 @@ func TestJSONEvaluator_semVerEvaluation(t *testing.T) {
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, store.NewFlags())
je.store.Flags = tt.flags.Flags
s, err := store.NewStore(log, sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
je := NewJSON(log, s)
je.store.Update(source, tt.flags.Flags, model.Metadata{})
value, variant, reason, _, err := resolve[string](ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)

View File

@ -13,6 +13,8 @@ import (
)
func TestJSONEvaluator_startsWithEvaluation(t *testing.T) {
const source = "testSource"
var sources = []string{source}
ctx := context.Background()
tests := map[string]struct {
@ -185,8 +187,12 @@ func TestJSONEvaluator_startsWithEvaluation(t *testing.T) {
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, store.NewFlags())
je.store.Flags = tt.flags.Flags
s, err := store.NewStore(log, sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
je := NewJSON(log, s)
je.store.Update(source, tt.flags.Flags, model.Metadata{})
value, variant, reason, _, err := resolve[string](ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)
@ -210,6 +216,8 @@ func TestJSONEvaluator_startsWithEvaluation(t *testing.T) {
}
func TestJSONEvaluator_endsWithEvaluation(t *testing.T) {
const source = "testSource"
var sources = []string{source}
ctx := context.Background()
tests := map[string]struct {
@ -382,9 +390,12 @@ func TestJSONEvaluator_endsWithEvaluation(t *testing.T) {
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
log := logger.NewLogger(nil, false)
je := NewJSON(log, store.NewFlags())
je.store.Flags = tt.flags.Flags
s, err := store.NewStore(log, sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
je := NewJSON(log, s)
je.store.Update(source, tt.flags.Flags, model.Metadata{})
value, variant, reason, _, err := resolve[string](ctx, reqID, tt.flagKey, tt.context, je.evaluateVariant)

View File

@ -1,5 +1,7 @@
package model
import "fmt"
const (
FlagNotFoundErrorCode = "FLAG_NOT_FOUND"
ParseErrorCode = "PARSE_ERROR"
@ -8,3 +10,19 @@ const (
FlagDisabledErrorCode = "FLAG_DISABLED"
InvalidContextCode = "INVALID_CONTEXT"
)
var ReadableErrorMessage = map[string]string{
FlagNotFoundErrorCode: "Flag not found",
ParseErrorCode: "Error parsing input or configuration",
TypeMismatchErrorCode: "Type mismatch error",
GeneralErrorCode: "General error",
FlagDisabledErrorCode: "Flag is disabled",
InvalidContextCode: "Invalid context provided",
}
func GetErrorMessage(code string) string {
if msg, exists := ReadableErrorMessage[code]; exists {
return msg
}
return fmt.Sprintf("Unknown error code: %s", code)
}

View File

@ -2,14 +2,26 @@ package model
import "encoding/json"
const Key = "Key"
const FlagSetId = "FlagSetId"
const Source = "Source"
const Priority = "Priority"
type Flag struct {
Key string `json:"-"` // not serialized, used only for indexing
FlagSetId string `json:"-"` // not serialized, used only for indexing
Priority int `json:"-"` // not serialized, used only for indexing
State string `json:"state"`
DefaultVariant string `json:"defaultVariant"`
Variants map[string]any `json:"variants"`
Targeting json.RawMessage `json:"targeting,omitempty"`
Source string `json:"source"`
Selector string `json:"selector"`
Metadata Metadata `json:"metadata,omitempty"`
}
type Evaluators struct {
Evaluators map[string]json.RawMessage `json:"$evaluators"`
}
type Metadata = map[string]interface{}

View File

@ -0,0 +1,52 @@
package notifications
import (
"reflect"
"github.com/open-feature/flagd/core/pkg/model"
)
const typeField = "type"
// Use to represent change notifications for mode PROVIDER_CONFIGURATION_CHANGE events.
type Notifications map[string]any
// Generate notifications (deltas) from old and new flag sets for use in RPC mode PROVIDER_CONFIGURATION_CHANGE events.
func NewFromFlags(oldFlags, newFlags map[string]model.Flag) Notifications {
notifications := map[string]interface{}{}
// flags removed
for key := range oldFlags {
if _, ok := newFlags[key]; !ok {
notifications[key] = map[string]interface{}{
typeField: string(model.NotificationDelete),
}
}
}
// flags added or modified
for key, newFlag := range newFlags {
oldFlag, exists := oldFlags[key]
if !exists {
notifications[key] = map[string]interface{}{
typeField: string(model.NotificationCreate),
}
} else if !flagsEqual(oldFlag, newFlag) {
notifications[key] = map[string]interface{}{
typeField: string(model.NotificationUpdate),
}
}
}
return notifications
}
func flagsEqual(a, b model.Flag) bool {
return a.State == b.State &&
a.DefaultVariant == b.DefaultVariant &&
reflect.DeepEqual(a.Variants, b.Variants) &&
reflect.DeepEqual(a.Targeting, b.Targeting) &&
a.Source == b.Source &&
a.Selector == b.Selector &&
reflect.DeepEqual(a.Metadata, b.Metadata)
}

View File

@ -0,0 +1,102 @@
package notifications
import (
"testing"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/stretchr/testify/assert"
)
func TestNewFromFlags(t *testing.T) {
flagA := model.Flag{
Key: "flagA",
State: "ENABLED",
DefaultVariant: "on",
Source: "source1",
}
flagAUpdated := model.Flag{
Key: "flagA",
State: "DISABLED",
DefaultVariant: "on",
Source: "source1",
}
flagB := model.Flag{
Key: "flagB",
State: "ENABLED",
DefaultVariant: "off",
Source: "source1",
}
tests := []struct {
name string
oldFlags map[string]model.Flag
newFlags map[string]model.Flag
want Notifications
}{
{
name: "flag added",
oldFlags: map[string]model.Flag{},
newFlags: map[string]model.Flag{"flagA": flagA},
want: Notifications{
"flagA": map[string]interface{}{
"type": string(model.NotificationCreate),
},
},
},
{
name: "flag deleted",
oldFlags: map[string]model.Flag{"flagA": flagA},
newFlags: map[string]model.Flag{},
want: Notifications{
"flagA": map[string]interface{}{
"type": string(model.NotificationDelete),
},
},
},
{
name: "flag changed",
oldFlags: map[string]model.Flag{"flagA": flagA},
newFlags: map[string]model.Flag{"flagA": flagAUpdated},
want: Notifications{
"flagA": map[string]interface{}{
"type": string(model.NotificationUpdate),
},
},
},
{
name: "flag unchanged",
oldFlags: map[string]model.Flag{"flagA": flagA},
newFlags: map[string]model.Flag{"flagA": flagA},
want: Notifications{},
},
{
name: "mixed changes",
oldFlags: map[string]model.Flag{
"flagA": flagA,
"flagB": flagB,
},
newFlags: map[string]model.Flag{
"flagA": flagAUpdated, // updated
"flagC": flagA, // added
},
want: Notifications{
"flagA": map[string]interface{}{
"type": string(model.NotificationUpdate),
},
"flagB": map[string]interface{}{
"type": string(model.NotificationDelete),
},
"flagC": map[string]interface{}{
"type": string(model.NotificationCreate),
},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := NewFromFlags(tt.oldFlags, tt.newFlags)
assert.Equal(t, tt.want, got)
})
}
}

View File

@ -2,6 +2,7 @@ package service
import (
"context"
"time"
"connectrpc.com/connect"
)
@ -23,15 +24,18 @@ type Notification struct {
type ReadinessProbe func() bool
type Configuration struct {
ReadinessProbe ReadinessProbe
Port uint16
ManagementPort uint16
ServiceName string
CertPath string
KeyPath string
SocketPath string
CORS []string
Options []connect.HandlerOption
ReadinessProbe ReadinessProbe
Port uint16
ManagementPort uint16
ServiceName string
CertPath string
KeyPath string
SocketPath string
CORS []string
Options []connect.HandlerOption
ContextValues map[string]any
HeaderToContextKeyMappings map[string]string
StreamDeadline time.Duration
}
/*

View File

@ -12,36 +12,39 @@ type Request struct {
}
type EvaluationSuccess struct {
Value interface{} `json:"value"`
Key string `json:"key"`
Reason string `json:"reason"`
Variant string `json:"variant"`
Metadata interface{} `json:"metadata"`
Value interface{} `json:"value"`
Key string `json:"key"`
Reason string `json:"reason"`
Variant string `json:"variant"`
Metadata model.Metadata `json:"metadata"`
}
type BulkEvaluationResponse struct {
Flags []interface{} `json:"flags,omitempty"`
Flags []interface{} `json:"flags"`
Metadata model.Metadata `json:"metadata"`
}
type EvaluationError struct {
Key string `json:"key"`
ErrorCode string `json:"errorCode"`
ErrorDetails string `json:"errorDetails"`
Key string `json:"key"`
ErrorCode string `json:"errorCode"`
ErrorDetails string `json:"errorDetails"`
Metadata model.Metadata `json:"metadata"`
}
type BulkEvaluationError struct {
ErrorCode string `json:"errorCode"`
ErrorDetails string `json:"errorDetails"`
ErrorCode string `json:"errorCode"`
ErrorDetails string `json:"errorDetails"`
Metadata model.Metadata `json:"metadata"`
}
type InternalError struct {
ErrorDetails string `json:"errorDetails"`
}
func BulkEvaluationResponseFrom(values []evaluator.AnyValue) BulkEvaluationResponse {
func BulkEvaluationResponseFrom(resolutions []evaluator.AnyValue, metadata model.Metadata) BulkEvaluationResponse {
evaluations := make([]interface{}, 0)
for _, value := range values {
for _, value := range resolutions {
if value.Error != nil {
_, evaluationError := EvaluationErrorResponseFrom(value)
evaluations = append(evaluations, evaluationError)
@ -52,6 +55,7 @@ func BulkEvaluationResponseFrom(values []evaluator.AnyValue) BulkEvaluationRespo
return BulkEvaluationResponse{
evaluations,
metadata,
}
}
@ -73,16 +77,24 @@ func ContextErrorResponseFrom(key string) EvaluationError {
}
}
func BulkEvaluationContextErrorFrom() BulkEvaluationError {
func BulkEvaluationContextError() BulkEvaluationError {
return BulkEvaluationError{
ErrorCode: model.InvalidContextCode,
ErrorDetails: "Provider context is not valid",
}
}
func BulkEvaluationContextErrorFrom(code string, details string) BulkEvaluationError {
return BulkEvaluationError{
ErrorCode: code,
ErrorDetails: details,
}
}
func EvaluationErrorResponseFrom(result evaluator.AnyValue) (int, EvaluationError) {
payload := EvaluationError{
Key: result.FlagKey,
Key: result.FlagKey,
Metadata: result.Metadata,
}
status := 400
@ -92,6 +104,10 @@ func EvaluationErrorResponseFrom(result evaluator.AnyValue) (int, EvaluationErro
status = 404
payload.ErrorCode = model.FlagNotFoundErrorCode
payload.ErrorDetails = fmt.Sprintf("flag `%s` does not exist", result.FlagKey)
case model.FlagDisabledErrorCode:
status = 404
payload.ErrorCode = model.FlagNotFoundErrorCode
payload.ErrorDetails = fmt.Sprintf("flag `%s` is disabled", result.FlagKey)
case model.ParseErrorCode:
payload.ErrorCode = model.ParseErrorCode
payload.ErrorDetails = fmt.Sprintf("error parsing the flag `%s`", result.FlagKey)

View File

@ -1,6 +1,7 @@
package ofrep
import (
"encoding/json"
"errors"
"reflect"
"testing"
@ -45,31 +46,55 @@ func TestSuccessResult(t *testing.T) {
}
}
func TestBulkEvaluationResult(t *testing.T) {
// given
values := []evaluator.AnyValue{
func TestBulkEvaluationResponse(t *testing.T) {
tests := []struct {
name string
input []evaluator.AnyValue
marshalledOutput string
}{
{
Value: false,
Variant: "false",
Reason: model.StaticReason,
FlagKey: "key",
Metadata: map[string]interface{}{
"key": "value",
},
name: "empty input",
input: nil,
marshalledOutput: "{\"flags\":[],\"metadata\":{}}",
},
{
Value: false,
Variant: "false",
Reason: model.ErrorReason,
FlagKey: "errorFlag",
Error: errors.New(model.FlagNotFoundErrorCode),
name: "valid values",
input: []evaluator.AnyValue{
{
Value: false,
Variant: "false",
Reason: model.StaticReason,
FlagKey: "key",
Metadata: map[string]interface{}{
"key": "value",
},
},
{
Value: false,
Variant: "false",
Reason: model.ErrorReason,
FlagKey: "errorFlag",
Error: errors.New(model.FlagNotFoundErrorCode),
Metadata: map[string]interface{}{},
},
},
marshalledOutput: "{\"flags\":[{\"value\":false,\"key\":\"key\",\"reason\":\"STATIC\",\"variant\":\"false\",\"metadata\":{\"key\":\"value\"}},{\"key\":\"errorFlag\",\"errorCode\":\"FLAG_NOT_FOUND\",\"errorDetails\":\"flag `errorFlag` does not exist\",\"metadata\":{}}],\"metadata\":{}}",
},
}
bulkResponse := BulkEvaluationResponseFrom(values)
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
response := BulkEvaluationResponseFrom(test.input, model.Metadata{})
if len(bulkResponse.Flags) != 2 {
t.Errorf("expected bulk response to contain 2 results, but got %d", len(bulkResponse.Flags))
marshal, err := json.Marshal(response)
if err != nil {
t.Errorf("error marshalling the response: %v", err)
}
if test.marshalledOutput != string(marshal) {
t.Errorf("expected %s, got %s", test.marshalledOutput, string(marshal))
}
})
}
}
@ -89,8 +114,8 @@ func TestErrorStatus(t *testing.T) {
{
name: "flag disabled",
modelError: model.FlagDisabledErrorCode,
expectedStatus: 400,
expectedCode: model.GeneralErrorCode,
expectedStatus: 404,
expectedCode: model.FlagNotFoundErrorCode,
},
{
name: "general error",

View File

@ -1,292 +0,0 @@
package store
import (
"context"
"encoding/json"
"fmt"
"reflect"
"sync"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
)
type IStore interface {
GetAll(ctx context.Context) map[string]model.Flag
Get(ctx context.Context, key string) (model.Flag, bool)
SelectorForFlag(ctx context.Context, flag model.Flag) string
}
type Flags struct {
mx sync.RWMutex
Flags map[string]model.Flag `json:"flags"`
FlagSources []string
SourceMetadata map[string]SourceDetails
}
type SourceDetails struct {
Source string
Selector string
}
func (f *Flags) hasPriority(stored string, new string) bool {
if stored == new {
return true
}
for i := len(f.FlagSources) - 1; i >= 0; i-- {
switch f.FlagSources[i] {
case stored:
return false
case new:
return true
}
}
return true
}
func NewFlags() *Flags {
return &Flags{
Flags: map[string]model.Flag{},
SourceMetadata: map[string]SourceDetails{},
}
}
func (f *Flags) Set(key string, flag model.Flag) {
f.mx.Lock()
defer f.mx.Unlock()
f.Flags[key] = flag
}
func (f *Flags) Get(_ context.Context, key string) (model.Flag, bool) {
f.mx.RLock()
defer f.mx.RUnlock()
flag, ok := f.Flags[key]
return flag, ok
}
func (f *Flags) SelectorForFlag(_ context.Context, flag model.Flag) string {
f.mx.RLock()
defer f.mx.RUnlock()
return f.SourceMetadata[flag.Source].Selector
}
func (f *Flags) Delete(key string) {
f.mx.Lock()
defer f.mx.Unlock()
delete(f.Flags, key)
}
func (f *Flags) String() (string, error) {
f.mx.RLock()
defer f.mx.RUnlock()
bytes, err := json.Marshal(f)
if err != nil {
return "", fmt.Errorf("unable to marshal flags: %w", err)
}
return string(bytes), nil
}
// GetAll returns a copy of the store's state (copy in order to be concurrency safe)
func (f *Flags) GetAll(_ context.Context) map[string]model.Flag {
f.mx.RLock()
defer f.mx.RUnlock()
state := make(map[string]model.Flag, len(f.Flags))
for key, flag := range f.Flags {
state[key] = flag
}
return state
}
// Add new flags from source.
func (f *Flags) Add(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{} {
notifications := map[string]interface{}{}
for k, newFlag := range flags {
storedFlag, ok := f.Get(context.Background(), k)
if ok && !f.hasPriority(storedFlag.Source, source) {
logger.Debug(
fmt.Sprintf(
"not overwriting: flag %s from source %s does not have priority over %s",
k,
source,
storedFlag.Source,
),
)
continue
}
notifications[k] = map[string]interface{}{
"type": string(model.NotificationCreate),
"source": source,
}
// Store the new version of the flag
newFlag.Source = source
f.Set(k, newFlag)
}
return notifications
}
// Update existing flags from source.
func (f *Flags) Update(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{} {
notifications := map[string]interface{}{}
for k, flag := range flags {
storedFlag, ok := f.Get(context.Background(), k)
if !ok {
logger.Warn(
fmt.Sprintf("failed to update the flag, flag with key %s from source %s does not exist.",
k,
source))
continue
}
if !f.hasPriority(storedFlag.Source, source) {
logger.Debug(
fmt.Sprintf(
"not updating: flag %s from source %s does not have priority over %s",
k,
source,
storedFlag.Source,
),
)
continue
}
notifications[k] = map[string]interface{}{
"type": string(model.NotificationUpdate),
"source": source,
}
flag.Source = source
f.Set(k, flag)
}
return notifications
}
// DeleteFlags matching flags from source.
func (f *Flags) DeleteFlags(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{} {
logger.Debug(
fmt.Sprintf(
"store resync triggered: delete event from source %s",
source,
),
)
ctx := context.Background()
notifications := map[string]interface{}{}
if len(flags) == 0 {
allFlags := f.GetAll(ctx)
for key, flag := range allFlags {
if flag.Source != source {
continue
}
notifications[key] = map[string]interface{}{
"type": string(model.NotificationDelete),
"source": source,
}
f.Delete(key)
}
}
for k := range flags {
flag, ok := f.Get(ctx, k)
if ok {
if !f.hasPriority(flag.Source, source) {
logger.Debug(
fmt.Sprintf(
"not deleting: flag %s from source %s cannot be deleted by %s",
k,
flag.Source,
source,
),
)
continue
}
notifications[k] = map[string]interface{}{
"type": string(model.NotificationDelete),
"source": source,
}
f.Delete(k)
} else {
logger.Warn(
fmt.Sprintf("failed to remove flag, flag with key %s from source %s does not exist.",
k,
source))
}
}
return notifications
}
// Merge provided flags from source with currently stored flags.
func (f *Flags) Merge(
logger *logger.Logger,
source string,
flags map[string]model.Flag,
) (map[string]interface{}, bool) {
notifications := map[string]interface{}{}
resyncRequired := false
f.mx.Lock()
for k, v := range f.Flags {
if v.Source == source {
if _, ok := flags[k]; !ok {
// flag has been deleted
delete(f.Flags, k)
notifications[k] = map[string]interface{}{
"type": string(model.NotificationDelete),
"source": source,
}
resyncRequired = true
logger.Debug(
fmt.Sprintf(
"store resync triggered: flag %s has been deleted from source %s",
k, source,
),
)
continue
}
}
}
f.mx.Unlock()
for k, newFlag := range flags {
newFlag.Source = source
storedFlag, ok := f.Get(context.Background(), k)
if ok {
if !f.hasPriority(storedFlag.Source, source) {
logger.Debug(
fmt.Sprintf(
"not merging: flag %s from source %s does not have priority over %s",
k, source, storedFlag.Source,
),
)
continue
}
if reflect.DeepEqual(storedFlag, newFlag) {
continue
}
}
if !ok {
notifications[k] = map[string]interface{}{
"type": string(model.NotificationCreate),
"source": source,
}
} else {
notifications[k] = map[string]interface{}{
"type": string(model.NotificationUpdate),
"source": source,
}
}
// Store the new version of the flag
f.Set(k, newFlag)
}
return notifications, resyncRequired
}

View File

@ -1,551 +0,0 @@
package store
import (
"testing"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/stretchr/testify/require"
)
func TestHasPriority(t *testing.T) {
tests := []struct {
name string
currentState *Flags
storedSource string
newSource string
hasPriority bool
}{
{
name: "same source",
currentState: &Flags{},
storedSource: "A",
newSource: "A",
hasPriority: true,
},
{
name: "no priority",
currentState: &Flags{
FlagSources: []string{
"B",
"A",
},
},
storedSource: "A",
newSource: "B",
hasPriority: false,
},
{
name: "priority",
currentState: &Flags{
FlagSources: []string{
"A",
"B",
},
},
storedSource: "A",
newSource: "B",
hasPriority: true,
},
{
name: "not in sources",
currentState: &Flags{
FlagSources: []string{
"A",
"B",
},
},
storedSource: "C",
newSource: "D",
hasPriority: true,
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
p := tt.currentState.hasPriority(tt.storedSource, tt.newSource)
require.Equal(t, p, tt.hasPriority)
})
}
}
func TestMergeFlags(t *testing.T) {
t.Parallel()
tests := []struct {
name string
current *Flags
new map[string]model.Flag
newSource string
want *Flags
wantNotifs map[string]interface{}
wantResync bool
}{
{
name: "both nil",
current: &Flags{
Flags: nil,
},
new: nil,
want: &Flags{Flags: map[string]model.Flag{}},
wantNotifs: map[string]interface{}{},
},
{
name: "both empty flags",
current: &Flags{
Flags: map[string]model.Flag{},
},
new: map[string]model.Flag{},
want: &Flags{Flags: map[string]model.Flag{}},
wantNotifs: map[string]interface{}{},
},
{
name: "empty current",
current: &Flags{
Flags: nil,
},
new: map[string]model.Flag{},
want: &Flags{Flags: map[string]model.Flag{}},
wantNotifs: map[string]interface{}{},
},
{
name: "empty new",
current: &Flags{
Flags: map[string]model.Flag{},
},
new: nil,
want: &Flags{Flags: map[string]model.Flag{}},
wantNotifs: map[string]interface{}{},
},
{
name: "extra fields on each",
current: &Flags{
Flags: map[string]model.Flag{
"waka": {
DefaultVariant: "off",
Source: "1",
},
},
},
new: map[string]model.Flag{
"paka": {
DefaultVariant: "on",
},
},
newSource: "2",
want: &Flags{Flags: map[string]model.Flag{
"waka": {
DefaultVariant: "off",
Source: "1",
},
"paka": {
DefaultVariant: "on",
Source: "2",
},
}},
wantNotifs: map[string]interface{}{
"paka": map[string]interface{}{"type": "write", "source": "2"},
},
},
{
name: "override",
current: &Flags{
Flags: map[string]model.Flag{"waka": {DefaultVariant: "off"}},
},
new: map[string]model.Flag{
"waka": {DefaultVariant: "on"},
"paka": {DefaultVariant: "on"},
},
want: &Flags{Flags: map[string]model.Flag{
"waka": {DefaultVariant: "on"},
"paka": {DefaultVariant: "on"},
}},
wantNotifs: map[string]interface{}{
"waka": map[string]interface{}{"type": "update", "source": ""},
"paka": map[string]interface{}{"type": "write", "source": ""},
},
},
{
name: "identical",
current: &Flags{
Flags: map[string]model.Flag{"hello": {DefaultVariant: "off"}},
},
new: map[string]model.Flag{
"hello": {DefaultVariant: "off"},
},
want: &Flags{Flags: map[string]model.Flag{
"hello": {DefaultVariant: "off"},
}},
wantNotifs: map[string]interface{}{},
},
{
name: "deleted flag",
current: &Flags{
Flags: map[string]model.Flag{"hello": {DefaultVariant: "off", Source: "A"}},
},
new: map[string]model.Flag{},
newSource: "A",
want: &Flags{Flags: map[string]model.Flag{}},
wantNotifs: map[string]interface{}{
"hello": map[string]interface{}{"type": "delete", "source": "A"},
},
wantResync: true,
},
{
name: "no merge priority",
current: &Flags{
FlagSources: []string{
"B",
"A",
},
Flags: map[string]model.Flag{
"hello": {
DefaultVariant: "off",
Source: "A",
},
},
},
new: map[string]model.Flag{
"hello": {DefaultVariant: "off"},
},
newSource: "B",
want: &Flags{
FlagSources: []string{
"B",
"A",
},
Flags: map[string]model.Flag{
"hello": {
DefaultVariant: "off",
Source: "A",
},
},
},
wantNotifs: map[string]interface{}{},
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
gotNotifs, resyncRequired := tt.current.Merge(logger.NewLogger(nil, false), tt.newSource, tt.new)
require.Equal(t, tt.want, tt.want)
require.Equal(t, tt.wantNotifs, gotNotifs)
require.Equal(t, tt.wantResync, resyncRequired)
})
}
}
func TestFlags_Add(t *testing.T) {
mockLogger := logger.NewLogger(nil, false)
mockSource := "source"
mockOverrideSource := "source-2"
type request struct {
source string
flags map[string]model.Flag
}
tests := []struct {
name string
storedState *Flags
addRequest request
expectedState *Flags
expectedNotificationKeys []string
}{
{
name: "Add success",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
},
},
addRequest: request{
source: mockSource,
flags: map[string]model.Flag{
"B": {Source: mockSource},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
},
},
expectedNotificationKeys: []string{"B"},
},
{
name: "Add multiple success",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
},
},
addRequest: request{
source: mockSource,
flags: map[string]model.Flag{
"B": {Source: mockSource},
"C": {Source: mockSource},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
"C": {Source: mockSource},
},
},
expectedNotificationKeys: []string{"B", "C"},
},
{
name: "Add success - conflict and override",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
},
},
addRequest: request{
source: mockOverrideSource,
flags: map[string]model.Flag{
"A": {Source: mockOverrideSource},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockOverrideSource},
},
},
expectedNotificationKeys: []string{"A"},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
messages := tt.storedState.Add(mockLogger, tt.addRequest.source, tt.addRequest.flags)
require.Equal(t, tt.storedState, tt.expectedState)
for k := range messages {
require.Containsf(t, tt.expectedNotificationKeys, k,
"Message key %s not present in the expected key list", k)
}
})
}
}
func TestFlags_Update(t *testing.T) {
mockLogger := logger.NewLogger(nil, false)
mockSource := "source"
mockOverrideSource := "source-2"
type request struct {
source string
flags map[string]model.Flag
}
tests := []struct {
name string
storedState *Flags
UpdateRequest request
expectedState *Flags
expectedNotificationKeys []string
}{
{
name: "Update success",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "True"},
},
},
UpdateRequest: request{
source: mockSource,
flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "False"},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "False"},
},
},
expectedNotificationKeys: []string{"A"},
},
{
name: "Update multiple success",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "True"},
"B": {Source: mockSource, DefaultVariant: "True"},
},
},
UpdateRequest: request{
source: mockSource,
flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "False"},
"B": {Source: mockSource, DefaultVariant: "False"},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "False"},
"B": {Source: mockSource, DefaultVariant: "False"},
},
},
expectedNotificationKeys: []string{"A", "B"},
},
{
name: "Update success - conflict and override",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource, DefaultVariant: "True"},
},
},
UpdateRequest: request{
source: mockOverrideSource,
flags: map[string]model.Flag{
"A": {Source: mockOverrideSource, DefaultVariant: "True"},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockOverrideSource, DefaultVariant: "True"},
},
},
expectedNotificationKeys: []string{"A"},
},
{
name: "Update fail",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
},
},
UpdateRequest: request{
source: mockSource,
flags: map[string]model.Flag{
"B": {Source: mockSource},
},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
},
},
expectedNotificationKeys: []string{},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
messages := tt.storedState.Update(mockLogger, tt.UpdateRequest.source, tt.UpdateRequest.flags)
require.Equal(t, tt.storedState, tt.expectedState)
for k := range messages {
require.Containsf(t, tt.expectedNotificationKeys, k,
"Message key %s not present in the expected key list", k)
}
})
}
}
func TestFlags_Delete(t *testing.T) {
mockLogger := logger.NewLogger(nil, false)
mockSource := "source"
mockSource2 := "source2"
tests := []struct {
name string
storedState *Flags
deleteRequest map[string]model.Flag
expectedState *Flags
expectedNotificationKeys []string
}{
{
name: "Remove success",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
"C": {Source: mockSource2},
},
FlagSources: []string{
mockSource,
mockSource2,
},
},
deleteRequest: map[string]model.Flag{
"A": {Source: mockSource},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"B": {Source: mockSource},
"C": {Source: mockSource2},
},
FlagSources: []string{
mockSource,
mockSource2,
},
},
expectedNotificationKeys: []string{"A"},
},
{
name: "Nothing to remove",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
"C": {Source: mockSource2},
},
FlagSources: []string{
mockSource,
mockSource2,
},
},
deleteRequest: map[string]model.Flag{
"C": {Source: mockSource},
},
expectedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
"C": {Source: mockSource2},
},
FlagSources: []string{
mockSource,
mockSource2,
},
},
expectedNotificationKeys: []string{},
},
{
name: "Remove all",
storedState: &Flags{
Flags: map[string]model.Flag{
"A": {Source: mockSource},
"B": {Source: mockSource},
"C": {Source: mockSource2},
},
},
deleteRequest: map[string]model.Flag{},
expectedState: &Flags{
Flags: map[string]model.Flag{
"C": {Source: mockSource2},
},
},
expectedNotificationKeys: []string{"A", "B"},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
messages := tt.storedState.DeleteFlags(mockLogger, mockSource, tt.deleteRequest)
require.Equal(t, tt.storedState, tt.expectedState)
for k := range messages {
require.Containsf(t, tt.expectedNotificationKeys, k,
"Message key %s not present in the expected key list", k)
}
})
}
}

133
core/pkg/store/query.go Normal file
View File

@ -0,0 +1,133 @@
package store
import (
"maps"
"sort"
"strings"
uuid "github.com/google/uuid"
"github.com/open-feature/flagd/core/pkg/model"
)
// flags table and index constants
const flagsTable = "flags"
const idIndex = "id"
const keyIndex = "key"
const sourceIndex = "source"
const priorityIndex = "priority"
const flagSetIdIndex = "flagSetId"
// compound indices; maintain sub-indexes alphabetically; order matters; these must match what's generated in the SelectorMapToQuery func.
const flagSetIdSourceCompoundIndex = flagSetIdIndex + "+" + sourceIndex
const keySourceCompoundIndex = keyIndex + "+" + sourceIndex
const flagSetIdKeySourceCompoundIndex = flagSetIdIndex + "+" + keyIndex + "+" + sourceIndex
// flagSetId defaults to a UUID generated at startup to make our queries consistent
// any flag without a "flagSetId" is assigned this one; it's never exposed externally
var nilFlagSetId = uuid.New().String()
// A selector represents a set of constraints used to query the store.
type Selector struct {
indexMap map[string]string
}
// NewSelector creates a new Selector from a selector expression string.
// For example, to select flags from source "./mySource" and flagSetId "1234", use the expression:
// "source=./mySource,flagSetId=1234"
func NewSelector(selectorExpression string) Selector {
return Selector{
indexMap: expressionToMap(selectorExpression),
}
}
func expressionToMap(sExp string) map[string]string {
selectorMap := make(map[string]string)
if sExp == "" {
return selectorMap
}
if strings.Index(sExp, "=") == -1 {
// if no '=' is found, treat the whole string as as source (backwards compatibility)
// we may may support interpreting this as a flagSetId in the future as an option
selectorMap[sourceIndex] = sExp
return selectorMap
}
// Split the selector by commas
pairs := strings.Split(sExp, ",")
for _, pair := range pairs {
// Split each pair by the first equal sign
parts := strings.Split(pair, "=")
if len(parts) == 2 {
key := parts[0]
value := parts[1]
selectorMap[key] = value
}
}
return selectorMap
}
func (s Selector) WithIndex(key string, value string) Selector {
m := maps.Clone(s.indexMap)
m[key] = value
return Selector{
indexMap: m,
}
}
func (s *Selector) IsEmpty() bool {
return s == nil || len(s.indexMap) == 0
}
// SelectorMapToQuery converts the selector map to an indexId and constraints for querying the store.
// For a given index, a specific order and number of constraints are required.
// Both the indexId and constraints are generated based on the keys present in the selector's internal map.
func (s Selector) ToQuery() (indexId string, constraints []interface{}) {
if len(s.indexMap) == 2 && s.indexMap[flagSetIdIndex] != "" && s.indexMap[keyIndex] != "" {
// special case for flagSetId and key (this is the "id" index)
return idIndex, []interface{}{s.indexMap[flagSetIdIndex], s.indexMap[keyIndex]}
}
qs := []string{}
keys := make([]string, 0, len(s.indexMap))
for key := range s.indexMap {
keys = append(keys, key)
}
sort.Strings(keys)
for _, key := range keys {
indexId += key + "+"
qs = append(qs, s.indexMap[key])
}
indexId = strings.TrimSuffix(indexId, "+")
// Convert []string to []interface{}
c := make([]interface{}, 0, len(qs))
for _, v := range qs {
c = append(c, v)
}
constraints = c
return indexId, constraints
}
// SelectorToMetadata converts the selector's internal map to metadata for logging or tracing purposes.
// Only includes known indices to avoid leaking sensitive information, and is usually returned as the "top level" metadata
func (s *Selector) ToMetadata() model.Metadata {
meta := model.Metadata{}
if s == nil || s.indexMap == nil {
return meta
}
if s.indexMap[flagSetIdIndex] != "" {
meta[flagSetIdIndex] = s.indexMap[flagSetIdIndex]
}
if s.indexMap[sourceIndex] != "" {
meta[sourceIndex] = s.indexMap[sourceIndex]
}
return meta
}

View File

@ -0,0 +1,193 @@
package store
import (
"reflect"
"testing"
"github.com/open-feature/flagd/core/pkg/model"
)
func TestSelector_IsEmpty(t *testing.T) {
tests := []struct {
name string
selector *Selector
wantEmpty bool
}{
{
name: "nil selector",
selector: nil,
wantEmpty: true,
},
{
name: "nil indexMap",
selector: &Selector{indexMap: nil},
wantEmpty: true,
},
{
name: "empty indexMap",
selector: &Selector{indexMap: map[string]string{}},
wantEmpty: true,
},
{
name: "non-empty indexMap",
selector: &Selector{indexMap: map[string]string{"source": "abc"}},
wantEmpty: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := tt.selector.IsEmpty()
if got != tt.wantEmpty {
t.Errorf("IsEmpty() = %v, want %v", got, tt.wantEmpty)
}
})
}
}
func TestSelector_WithIndex(t *testing.T) {
oldS := Selector{indexMap: map[string]string{"source": "abc"}}
newS := oldS.WithIndex("flagSetId", "1234")
if newS.indexMap["source"] != "abc" {
t.Errorf("WithIndex did not preserve existing keys")
}
if newS.indexMap["flagSetId"] != "1234" {
t.Errorf("WithIndex did not add new key")
}
// Ensure original is unchanged
if _, ok := oldS.indexMap["flagSetId"]; ok {
t.Errorf("WithIndex mutated original selector")
}
}
func TestSelector_ToQuery(t *testing.T) {
tests := []struct {
name string
selector Selector
wantIndex string
wantConstr []interface{}
}{
{
name: "flagSetId and key primary index special case",
selector: Selector{indexMap: map[string]string{"flagSetId": "fsid", "key": "myKey"}},
wantIndex: "id",
wantConstr: []interface{}{"fsid", "myKey"},
},
{
name: "multiple keys sorted",
selector: Selector{indexMap: map[string]string{"source": "src", "flagSetId": "fsid"}},
wantIndex: "flagSetId+source",
wantConstr: []interface{}{"fsid", "src"},
},
{
name: "single key",
selector: Selector{indexMap: map[string]string{"source": "src"}},
wantIndex: "source",
wantConstr: []interface{}{"src"},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
gotIndex, gotConstr := tt.selector.ToQuery()
if gotIndex != tt.wantIndex {
t.Errorf("ToQuery() index = %v, want %v", gotIndex, tt.wantIndex)
}
if !reflect.DeepEqual(gotConstr, tt.wantConstr) {
t.Errorf("ToQuery() constraints = %v, want %v", gotConstr, tt.wantConstr)
}
})
}
}
func TestSelector_ToMetadata(t *testing.T) {
tests := []struct {
name string
selector *Selector
want model.Metadata
}{
{
name: "nil selector",
selector: nil,
want: model.Metadata{},
},
{
name: "nil indexMap",
selector: &Selector{indexMap: nil},
want: model.Metadata{},
},
{
name: "empty indexMap",
selector: &Selector{indexMap: map[string]string{}},
want: model.Metadata{},
},
{
name: "flagSetId only",
selector: &Selector{indexMap: map[string]string{"flagSetId": "fsid"}},
want: model.Metadata{"flagSetId": "fsid"},
},
{
name: "source only",
selector: &Selector{indexMap: map[string]string{"source": "src"}},
want: model.Metadata{"source": "src"},
},
{
name: "flagSetId and source",
selector: &Selector{indexMap: map[string]string{"flagSetId": "fsid", "source": "src"}},
want: model.Metadata{"flagSetId": "fsid", "source": "src"},
},
{
name: "flagSetId, source, and key (key should be ignored)",
selector: &Selector{indexMap: map[string]string{"flagSetId": "fsid", "source": "src", "key": "myKey"}},
want: model.Metadata{"flagSetId": "fsid", "source": "src"},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := tt.selector.ToMetadata()
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("ToMetadata() = %v, want %v", got, tt.want)
}
})
}
}
func TestNewSelector(t *testing.T) {
tests := []struct {
name string
input string
wantMap map[string]string
}{
{
name: "source and flagSetId",
input: "source=abc,flagSetId=1234",
wantMap: map[string]string{"source": "abc", "flagSetId": "1234"},
},
{
name: "source",
input: "source=abc",
wantMap: map[string]string{"source": "abc"},
},
{
name: "no equals, treat as source",
input: "mysource",
wantMap: map[string]string{"source": "mysource"},
},
{
name: "empty string",
input: "",
wantMap: map[string]string{},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
s := NewSelector(tt.input)
if !reflect.DeepEqual(s.indexMap, tt.wantMap) {
t.Errorf("NewSelector(%q) indexMap = %v, want %v", tt.input, s.indexMap, tt.wantMap)
}
})
}
}

396
core/pkg/store/store.go Normal file
View File

@ -0,0 +1,396 @@
package store
import (
"context"
"encoding/json"
"fmt"
"slices"
"sync"
"github.com/hashicorp/go-memdb"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/open-feature/flagd/core/pkg/notifications"
)
var noValidatedSources = []string{}
type SelectorContextKey struct{}
type FlagQueryResult struct {
Flags map[string]model.Flag
}
type IStore interface {
Get(ctx context.Context, key string, selector *Selector) (model.Flag, model.Metadata, error)
GetAll(ctx context.Context, selector *Selector) (map[string]model.Flag, model.Metadata, error)
Watch(ctx context.Context, selector *Selector, watcher chan<- FlagQueryResult)
}
var _ IStore = (*Store)(nil)
type Store struct {
mx sync.RWMutex
db *memdb.MemDB
logger *logger.Logger
sources []string
// deprecated: has no effect and will be removed soon.
FlagSources []string
}
type SourceDetails struct {
Source string
Selector string
}
// NewStore creates a new in-memory store with the given sources.
// The order of sources in the slice determines their priority, when queries result in duplicate flags (queries without source or flagSetId), the higher priority source "wins".
func NewStore(logger *logger.Logger, sources []string) (*Store, error) {
// a unique index must exist for each set of constraints - for example, to look up by key and source, we need a compound index on key+source, etc
// we maybe want to generate these dynamically in the future to support more robust querying, but for now we will hardcode the ones we need
schema := &memdb.DBSchema{
Tables: map[string]*memdb.TableSchema{
flagsTable: {
Name: flagsTable,
Indexes: map[string]*memdb.IndexSchema{
// primary index; must be unique and named "id"
idIndex: {
Name: idIndex,
Unique: true,
Indexer: &memdb.CompoundIndex{
Indexes: []memdb.Indexer{
&memdb.StringFieldIndex{Field: model.FlagSetId, Lowercase: false},
&memdb.StringFieldIndex{Field: model.Key, Lowercase: false},
},
},
},
// for looking up by source
sourceIndex: {
Name: sourceIndex,
Unique: false,
Indexer: &memdb.StringFieldIndex{Field: model.Source, Lowercase: false},
},
// for looking up by priority, used to maintain highest priority flag when there are duplicates and no selector is provided
priorityIndex: {
Name: priorityIndex,
Unique: false,
Indexer: &memdb.IntFieldIndex{Field: model.Priority},
},
// for looking up by flagSetId
flagSetIdIndex: {
Name: flagSetIdIndex,
Unique: false,
Indexer: &memdb.StringFieldIndex{Field: model.FlagSetId, Lowercase: false},
},
keyIndex: {
Name: keyIndex,
Unique: false,
Indexer: &memdb.StringFieldIndex{Field: model.Key, Lowercase: false},
},
flagSetIdSourceCompoundIndex: {
Name: flagSetIdSourceCompoundIndex,
Unique: false,
Indexer: &memdb.CompoundIndex{
Indexes: []memdb.Indexer{
&memdb.StringFieldIndex{Field: model.FlagSetId, Lowercase: false},
&memdb.StringFieldIndex{Field: model.Source, Lowercase: false},
},
},
},
keySourceCompoundIndex: {
Name: keySourceCompoundIndex,
Unique: false, // duplicate from a single source ARE allowed (they just must have different flag sets)
Indexer: &memdb.CompoundIndex{
Indexes: []memdb.Indexer{
&memdb.StringFieldIndex{Field: model.Key, Lowercase: false},
&memdb.StringFieldIndex{Field: model.Source, Lowercase: false},
},
},
},
// used to query all flags from a specific source so we know which flags to delete if a flag is missing from a source
flagSetIdKeySourceCompoundIndex: {
Name: flagSetIdKeySourceCompoundIndex,
Unique: true,
Indexer: &memdb.CompoundIndex{
Indexes: []memdb.Indexer{
&memdb.StringFieldIndex{Field: model.FlagSetId, Lowercase: false},
&memdb.StringFieldIndex{Field: model.Key, Lowercase: false},
&memdb.StringFieldIndex{Field: model.Source, Lowercase: false},
},
},
},
},
},
},
}
// Create a new data base
db, err := memdb.NewMemDB(schema)
if err != nil {
return nil, fmt.Errorf("unable to initialize flag database: %w", err)
}
// clone the sources to avoid modifying the original slice
s := slices.Clone(sources)
return &Store{
sources: s,
db: db,
logger: logger,
}, nil
}
// Deprecated: use NewStore instead - will be removed very soon.
func NewFlags() *Store {
state, err := NewStore(logger.NewLogger(nil, false), noValidatedSources)
if err != nil {
panic(fmt.Sprintf("unable to create flag store: %v", err))
}
return state
}
func (s *Store) Get(_ context.Context, key string, selector *Selector) (model.Flag, model.Metadata, error) {
s.logger.Debug(fmt.Sprintf("getting flag %s", key))
txn := s.db.Txn(false)
queryMeta := selector.ToMetadata()
// if present, use the selector to query the flags
if !selector.IsEmpty() {
selector := selector.WithIndex("key", key)
indexId, constraints := selector.ToQuery()
s.logger.Debug(fmt.Sprintf("getting flag with query: %s, %v", indexId, constraints))
raw, err := txn.First(flagsTable, indexId, constraints...)
flag, ok := raw.(model.Flag)
if err != nil {
return model.Flag{}, queryMeta, fmt.Errorf("flag %s not found: %w", key, err)
}
if !ok {
return model.Flag{}, queryMeta, fmt.Errorf("flag %s is not a valid flag", key)
}
return flag, queryMeta, nil
}
// otherwise, get all flags with the given key, and keep the last one with the highest priority
s.logger.Debug(fmt.Sprintf("getting highest priority flag with key: %s", key))
it, err := txn.Get(flagsTable, keyIndex, key)
if err != nil {
return model.Flag{}, queryMeta, fmt.Errorf("flag %s not found: %w", key, err)
}
flag := model.Flag{}
found := false
for raw := it.Next(); raw != nil; raw = it.Next() {
nextFlag, ok := raw.(model.Flag)
if !ok {
continue
}
found = true
if nextFlag.Priority >= flag.Priority {
flag = nextFlag
} else {
s.logger.Debug(fmt.Sprintf("discarding flag %s from lower priority source %s in favor of flag from source %s", nextFlag.Key, s.sources[nextFlag.Priority], s.sources[flag.Priority]))
}
}
if !found {
return flag, queryMeta, fmt.Errorf("flag %s not found", key)
}
return flag, queryMeta, nil
}
func (f *Store) String() (string, error) {
f.logger.Debug("dumping flags to string")
f.mx.RLock()
defer f.mx.RUnlock()
state, _, err := f.GetAll(context.Background(), nil)
if err != nil {
return "", fmt.Errorf("unable to get all flags: %w", err)
}
bytes, err := json.Marshal(state)
if err != nil {
return "", fmt.Errorf("unable to marshal flags: %w", err)
}
return string(bytes), nil
}
// GetAll returns a copy of the store's state (copy in order to be concurrency safe)
func (s *Store) GetAll(ctx context.Context, selector *Selector) (map[string]model.Flag, model.Metadata, error) {
flags := make(map[string]model.Flag)
queryMeta := selector.ToMetadata()
it, err := s.selectOrAll(selector)
if err != nil {
s.logger.Error(fmt.Sprintf("flag query error: %v", err))
return flags, queryMeta, err
}
flags = s.collect(it)
return flags, queryMeta, nil
}
// Update the flag state with the provided flags.
func (s *Store) Update(
source string,
flags map[string]model.Flag,
metadata model.Metadata,
) (map[string]interface{}, bool) {
resyncRequired := false
if source == "" {
panic("source cannot be empty")
}
priority := slices.Index(s.sources, source)
if priority == -1 {
// this is a hack to allow old constructors that didn't pass sources, remove when we remove "NewFlags" constructor
if !slices.Equal(s.sources, noValidatedSources) {
panic(fmt.Sprintf("source %s is not registered in the store", source))
}
// same as above - remove when we remove "NewFlags" constructor
priority = 0
}
txn := s.db.Txn(true)
defer txn.Abort()
// get all flags for the source we are updating
selector := NewSelector(sourceIndex + "=" + source)
oldFlags, _, _ := s.GetAll(context.Background(), &selector)
s.mx.Lock()
for key := range oldFlags {
if _, ok := flags[key]; !ok {
// flag has been deleted
s.logger.Debug(fmt.Sprintf("flag %s has been deleted from source %s", key, source))
count, err := txn.DeleteAll(flagsTable, keySourceCompoundIndex, key, source)
s.logger.Debug(fmt.Sprintf("deleted %d flags with key %s from source %s", count, key, source))
if err != nil {
s.logger.Error(fmt.Sprintf("error deleting flag: %s, %v", key, err))
}
continue
}
}
s.mx.Unlock()
for key, newFlag := range flags {
s.logger.Debug(fmt.Sprintf("got metadata %v", metadata))
newFlag.Key = key
newFlag.Source = source
newFlag.Priority = priority
newFlag.Metadata = patchMetadata(metadata, newFlag.Metadata)
// flagSetId defaults to a UUID generated at startup to make our queries isomorphic
flagSetId := nilFlagSetId
// flagSetId is inherited from the set, but can be overridden by the flag
setFlagSetId, ok := newFlag.Metadata["flagSetId"].(string)
if ok {
flagSetId = setFlagSetId
}
newFlag.FlagSetId = flagSetId
raw, err := txn.First(flagsTable, keySourceCompoundIndex, key, source)
if err != nil {
s.logger.Error(fmt.Sprintf("unable to get flag %s from source %s: %v", key, source, err))
continue
}
oldFlag, ok := raw.(model.Flag)
// If we already have a flag with the same key and source, we need to check if it has the same flagSetId
if ok {
if oldFlag.FlagSetId != newFlag.FlagSetId {
// If the flagSetId is different, we need to delete the entry, since flagSetId+key represents the primary index, and it's now been changed.
// This is important especially for clients listening to flagSetId changes, as they expect the flag to be removed from the set in this case.
_, err = txn.DeleteAll(flagsTable, idIndex, oldFlag.FlagSetId, key)
if err != nil {
s.logger.Error(fmt.Sprintf("unable to delete flags with key %s and flagSetId %s: %v", key, oldFlag.FlagSetId, err))
continue
}
}
}
// Store the new version of the flag
s.logger.Debug(fmt.Sprintf("storing flag: %v", newFlag))
err = txn.Insert(flagsTable, newFlag)
if err != nil {
s.logger.Error(fmt.Sprintf("unable to insert flag %s: %v", key, err))
continue
}
}
txn.Commit()
return notifications.NewFromFlags(oldFlags, flags), resyncRequired
}
// Watch the result-set of a selector for changes, sending updates to the watcher channel.
func (s *Store) Watch(ctx context.Context, selector *Selector, watcher chan<- FlagQueryResult) {
go func() {
for {
ws := memdb.NewWatchSet()
it, err := s.selectOrAll(selector)
if err != nil {
s.logger.Error(fmt.Sprintf("error watching flags: %v", err))
close(watcher)
return
}
ws.Add(it.WatchCh())
flags := s.collect(it)
watcher <- FlagQueryResult{
Flags: flags,
}
if err = ws.WatchCtx(ctx); err != nil {
s.logger.Error(fmt.Sprintf("error watching flags: %v", err))
close(watcher)
return
}
}
}()
}
// returns an iterator for the given selector, or all flags if the selector is nil or empty
func (s *Store) selectOrAll(selector *Selector) (it memdb.ResultIterator, err error) {
txn := s.db.Txn(false)
if !selector.IsEmpty() {
indexId, constraints := selector.ToQuery()
s.logger.Debug(fmt.Sprintf("getting all flags with query: %s, %v", indexId, constraints))
return txn.Get(flagsTable, indexId, constraints...)
} else {
// no selector, get all flags
return txn.Get(flagsTable, idIndex)
}
}
// collects flags from an iterator, ensuring that only the highest priority flag is kept when there are duplicates
func (s *Store) collect(it memdb.ResultIterator) map[string]model.Flag {
flags := make(map[string]model.Flag)
for raw := it.Next(); raw != nil; raw = it.Next() {
flag := raw.(model.Flag)
if existing, ok := flags[flag.Key]; ok {
if flag.Priority < existing.Priority {
s.logger.Debug(fmt.Sprintf("discarding duplicate flag %s from lower priority source %s in favor of flag from source %s", flag.Key, s.sources[flag.Priority], s.sources[existing.Priority]))
continue // we already have a higher priority flag
}
s.logger.Debug(fmt.Sprintf("overwriting duplicate flag %s from lower priority source %s in favor of flag from source %s", flag.Key, s.sources[existing.Priority], s.sources[flag.Priority]))
}
flags[flag.Key] = flag
}
return flags
}
func patchMetadata(original, patch model.Metadata) model.Metadata {
patched := make(model.Metadata)
if original == nil && patch == nil {
return nil
}
for key, value := range original {
patched[key] = value
}
for key, value := range patch { // patch values overwrite m1 values on key conflict
patched[key] = value
}
return patched
}

View File

@ -0,0 +1,487 @@
package store
import (
"context"
"testing"
"time"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestUpdateFlags(t *testing.T) {
const source1 = "source1"
const source2 = "source2"
var sources = []string{source1, source2}
t.Parallel()
tests := []struct {
name string
setup func(t *testing.T) *Store
newFlags map[string]model.Flag
source string
wantFlags map[string]model.Flag
setMetadata model.Metadata
wantNotifs map[string]interface{}
wantResync bool
}{
{
name: "both nil",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
return s
},
source: source1,
newFlags: nil,
wantFlags: map[string]model.Flag{},
wantNotifs: map[string]interface{}{},
},
{
name: "both empty flags",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
return s
},
source: source1,
newFlags: map[string]model.Flag{},
wantFlags: map[string]model.Flag{},
wantNotifs: map[string]interface{}{},
},
{
name: "empty new",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
return s
},
source: source1,
newFlags: nil,
wantFlags: map[string]model.Flag{},
wantNotifs: map[string]interface{}{},
},
{
name: "update from source 1 (old flag removed)",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
s.Update(source1, map[string]model.Flag{
"waka": {DefaultVariant: "off"},
}, nil)
return s
},
newFlags: map[string]model.Flag{
"paka": {DefaultVariant: "on"},
},
source: source1,
wantFlags: map[string]model.Flag{
"paka": {Key: "paka", DefaultVariant: "on", Source: source1, FlagSetId: nilFlagSetId, Priority: 0},
},
wantNotifs: map[string]interface{}{
"paka": map[string]interface{}{"type": "write"},
"waka": map[string]interface{}{"type": "delete"},
},
},
{
name: "update from source 1 (new flag added)",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
s.Update(source1, map[string]model.Flag{
"waka": {DefaultVariant: "off"},
}, nil)
return s
},
newFlags: map[string]model.Flag{
"paka": {DefaultVariant: "on"},
},
source: source2,
wantFlags: map[string]model.Flag{
"waka": {Key: "waka", DefaultVariant: "off", Source: source1, FlagSetId: nilFlagSetId, Priority: 0},
"paka": {Key: "paka", DefaultVariant: "on", Source: source2, FlagSetId: nilFlagSetId, Priority: 1},
},
wantNotifs: map[string]interface{}{"paka": map[string]interface{}{"type": "write"}},
},
{
name: "flag set inheritance",
setup: func(t *testing.T) *Store {
s, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
s.Update(source1, map[string]model.Flag{}, model.Metadata{})
return s
},
setMetadata: model.Metadata{
"flagSetId": "topLevelSet", // top level set metadata, including flagSetId
},
newFlags: map[string]model.Flag{
"waka": {DefaultVariant: "on"},
"paka": {DefaultVariant: "on", Metadata: model.Metadata{"flagSetId": "flagLevelSet"}}, // overrides set level flagSetId
},
source: source1,
wantFlags: map[string]model.Flag{
"waka": {Key: "waka", DefaultVariant: "on", Source: source1, FlagSetId: "topLevelSet", Priority: 0, Metadata: model.Metadata{"flagSetId": "topLevelSet"}},
"paka": {Key: "paka", DefaultVariant: "on", Source: source1, FlagSetId: "flagLevelSet", Priority: 0, Metadata: model.Metadata{"flagSetId": "flagLevelSet"}},
},
wantNotifs: map[string]interface{}{
"paka": map[string]interface{}{"type": "write"},
"waka": map[string]interface{}{"type": "write"},
},
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
store := tt.setup(t)
gotNotifs, resyncRequired := store.Update(tt.source, tt.newFlags, tt.setMetadata)
gotFlags, _, _ := store.GetAll(context.Background(), nil)
require.Equal(t, tt.wantFlags, gotFlags)
require.Equal(t, tt.wantNotifs, gotNotifs)
require.Equal(t, tt.wantResync, resyncRequired)
})
}
}
func TestGet(t *testing.T) {
sourceA := "sourceA"
sourceB := "sourceB"
sourceC := "sourceC"
flagSetIdB := "flagSetIdA"
flagSetIdC := "flagSetIdC"
var sources = []string{sourceA, sourceB, sourceC}
sourceASelector := NewSelector("source=" + sourceA)
flagSetIdCSelector := NewSelector("flagSetId=" + flagSetIdC)
t.Parallel()
tests := []struct {
name string
key string
selector *Selector
wantFlag model.Flag
wantErr bool
}{
{
name: "nil selector",
key: "flagA",
selector: nil,
wantFlag: model.Flag{Key: "flagA", DefaultVariant: "off", Source: sourceA, FlagSetId: nilFlagSetId, Priority: 0},
wantErr: false,
},
{
name: "flagSetId selector",
key: "dupe",
selector: &flagSetIdCSelector,
wantFlag: model.Flag{Key: "dupe", DefaultVariant: "off", Source: sourceC, FlagSetId: flagSetIdC, Priority: 2, Metadata: model.Metadata{"flagSetId": flagSetIdC}},
wantErr: false,
},
{
name: "source selector",
key: "dupe",
selector: &sourceASelector,
wantFlag: model.Flag{Key: "dupe", DefaultVariant: "on", Source: sourceA, FlagSetId: nilFlagSetId, Priority: 0},
wantErr: false,
},
{
name: "flag not found with source selector",
key: "flagB",
selector: &sourceASelector,
wantFlag: model.Flag{Key: "flagB", DefaultVariant: "off", Source: sourceB, FlagSetId: flagSetIdB, Priority: 1, Metadata: model.Metadata{"flagSetId": flagSetIdB}},
wantErr: true,
},
{
name: "flag not found with flagSetId selector",
key: "flagB",
selector: &flagSetIdCSelector,
wantFlag: model.Flag{Key: "flagB", DefaultVariant: "off", Source: sourceB, FlagSetId: flagSetIdB, Priority: 1, Metadata: model.Metadata{"flagSetId": flagSetIdB}},
wantErr: true,
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
sourceAFlags := map[string]model.Flag{
"flagA": {Key: "flagA", DefaultVariant: "off"},
"dupe": {Key: "dupe", DefaultVariant: "on"},
}
sourceBFlags := map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdB}},
}
sourceCFlags := map[string]model.Flag{
"flagC": {Key: "flagC", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdC}},
"dupe": {Key: "dupe", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdC}},
}
store, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
store.Update(sourceA, sourceAFlags, nil)
store.Update(sourceB, sourceBFlags, nil)
store.Update(sourceC, sourceCFlags, nil)
gotFlag, _, err := store.Get(context.Background(), tt.key, tt.selector)
if !tt.wantErr {
require.Equal(t, tt.wantFlag, gotFlag)
} else {
require.Error(t, err, "expected an error for key %s with selector %v", tt.key, tt.selector)
}
})
}
}
func TestGetAllNoWatcher(t *testing.T) {
sourceA := "sourceA"
sourceB := "sourceB"
sourceC := "sourceC"
flagSetIdB := "flagSetIdA"
flagSetIdC := "flagSetIdC"
sources := []string{sourceA, sourceB, sourceC}
sourceASelector := NewSelector("source=" + sourceA)
flagSetIdCSelector := NewSelector("flagSetId=" + flagSetIdC)
t.Parallel()
tests := []struct {
name string
selector *Selector
wantFlags map[string]model.Flag
}{
{
name: "nil selector",
selector: nil,
wantFlags: map[string]model.Flag{
// "dupe" should be overwritten by higher priority flag
"flagA": {Key: "flagA", DefaultVariant: "off", Source: sourceA, FlagSetId: nilFlagSetId, Priority: 0},
"flagB": {Key: "flagB", DefaultVariant: "off", Source: sourceB, FlagSetId: flagSetIdB, Priority: 1, Metadata: model.Metadata{"flagSetId": flagSetIdB}},
"flagC": {Key: "flagC", DefaultVariant: "off", Source: sourceC, FlagSetId: flagSetIdC, Priority: 2, Metadata: model.Metadata{"flagSetId": flagSetIdC}},
"dupe": {Key: "dupe", DefaultVariant: "off", Source: sourceC, FlagSetId: flagSetIdC, Priority: 2, Metadata: model.Metadata{"flagSetId": flagSetIdC}},
},
},
{
name: "source selector",
selector: &sourceASelector,
wantFlags: map[string]model.Flag{
// we should get the "dupe" from sourceA
"flagA": {Key: "flagA", DefaultVariant: "off", Source: sourceA, FlagSetId: nilFlagSetId, Priority: 0},
"dupe": {Key: "dupe", DefaultVariant: "on", Source: sourceA, FlagSetId: nilFlagSetId, Priority: 0},
},
},
{
name: "flagSetId selector",
selector: &flagSetIdCSelector,
wantFlags: map[string]model.Flag{
// we should get the "dupe" from flagSetIdC
"flagC": {Key: "flagC", DefaultVariant: "off", Source: sourceC, FlagSetId: flagSetIdC, Priority: 2, Metadata: model.Metadata{"flagSetId": flagSetIdC}},
"dupe": {Key: "dupe", DefaultVariant: "off", Source: sourceC, FlagSetId: flagSetIdC, Priority: 2, Metadata: model.Metadata{"flagSetId": flagSetIdC}},
},
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
sourceAFlags := map[string]model.Flag{
"flagA": {Key: "flagA", DefaultVariant: "off"},
"dupe": {Key: "dupe", DefaultVariant: "on"},
}
sourceBFlags := map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdB}},
}
sourceCFlags := map[string]model.Flag{
"flagC": {Key: "flagC", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdC}},
"dupe": {Key: "dupe", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": flagSetIdC}},
}
store, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
store.Update(sourceA, sourceAFlags, nil)
store.Update(sourceB, sourceBFlags, nil)
store.Update(sourceC, sourceCFlags, nil)
gotFlags, _, _ := store.GetAll(context.Background(), tt.selector)
require.Equal(t, len(tt.wantFlags), len(gotFlags))
require.Equal(t, tt.wantFlags, gotFlags)
})
}
}
func TestWatch(t *testing.T) {
sourceA := "sourceA"
sourceB := "sourceB"
sourceC := "sourceC"
myFlagSetId := "myFlagSet"
var sources = []string{sourceA, sourceB, sourceC}
pauseTime := 100 * time.Millisecond // time for updates to settle
timeout := 1000 * time.Millisecond // time to make sure we get enough updates, and no extras
sourceASelector := NewSelector("source=" + sourceA)
flagSetIdCSelector := NewSelector("flagSetId=" + myFlagSetId)
emptySelector := NewSelector("")
sourceCSelector := NewSelector("source=" + sourceC)
tests := []struct {
name string
selector *Selector
wantUpdates int
}{
{
name: "flag source selector (initial, plus 1 update)",
selector: &sourceASelector,
wantUpdates: 2,
},
{
name: "flag set selector (initial, plus 3 updates)",
selector: &flagSetIdCSelector,
wantUpdates: 4,
},
{
name: "no selector (all updates)",
selector: &emptySelector,
wantUpdates: 5,
},
{
name: "flag source selector for unchanged source (initial, plus no updates)",
selector: &sourceCSelector,
wantUpdates: 1,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
sourceAFlags := map[string]model.Flag{
"flagA": {Key: "flagA", DefaultVariant: "off"},
}
sourceBFlags := map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "off", Metadata: model.Metadata{"flagSetId": myFlagSetId}},
}
sourceCFlags := map[string]model.Flag{
"flagC": {Key: "flagC", DefaultVariant: "off"},
}
store, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
// setup initial flags
store.Update(sourceA, sourceAFlags, model.Metadata{})
store.Update(sourceB, sourceBFlags, model.Metadata{})
store.Update(sourceC, sourceCFlags, model.Metadata{})
watcher := make(chan FlagQueryResult, 1)
time.Sleep(pauseTime)
ctx, cancel := context.WithCancel(context.Background())
store.Watch(ctx, tt.selector, watcher)
// perform updates
go func() {
time.Sleep(pauseTime)
// changing a flag default variant should trigger an update
store.Update(sourceA, map[string]model.Flag{
"flagA": {Key: "flagA", DefaultVariant: "on"},
}, model.Metadata{})
time.Sleep(pauseTime)
// changing a flag default variant should trigger an update
store.Update(sourceB, map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "on", Metadata: model.Metadata{"flagSetId": myFlagSetId}},
}, model.Metadata{})
time.Sleep(pauseTime)
// removing a flag set id should trigger an update (even for flag set id selectors; it should remove the flag from the set)
store.Update(sourceB, map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "on"},
}, model.Metadata{})
time.Sleep(pauseTime)
// adding a flag set id should trigger an update
store.Update(sourceB, map[string]model.Flag{
"flagB": {Key: "flagB", DefaultVariant: "on", Metadata: model.Metadata{"flagSetId": myFlagSetId}},
}, model.Metadata{})
}()
updates := 0
for {
select {
case <-time.After(timeout):
assert.Equal(t, tt.wantUpdates, updates, "expected %d updates, got %d", tt.wantUpdates, updates)
cancel()
_, open := <-watcher
assert.False(t, open, "watcher channel should be closed after cancel")
return
case q := <-watcher:
if q.Flags != nil {
updates++
}
}
}
})
}
}
func TestQueryMetadata(t *testing.T) {
sourceA := "sourceA"
otherSource := "otherSource"
nonExistingFlagSetId := "nonExistingFlagSetId"
var sources = []string{sourceA}
sourceAFlags := map[string]model.Flag{
"flagA": {Key: "flagA", DefaultVariant: "off"},
"flagB": {Key: "flagB", DefaultVariant: "on"},
}
store, err := NewStore(logger.NewLogger(nil, false), sources)
if err != nil {
t.Fatalf("NewStore failed: %v", err)
}
// setup initial flags
store.Update(sourceA, sourceAFlags, model.Metadata{})
selector := NewSelector("source=" + otherSource + ",flagSetId=" + nonExistingFlagSetId)
_, metadata, _ := store.GetAll(context.Background(), &selector)
assert.Equal(t, metadata, model.Metadata{"source": otherSource, "flagSetId": nonExistingFlagSetId}, "metadata did not match expected")
selector = NewSelector("source=" + otherSource + ",flagSetId=" + nonExistingFlagSetId)
_, metadata, _ = store.Get(context.Background(), "key", &selector)
assert.Equal(t, metadata, model.Metadata{"source": otherSource, "flagSetId": nonExistingFlagSetId}, "metadata did not match expected")
}

View File

@ -0,0 +1,147 @@
package blob
import (
"context"
"errors"
"fmt"
"io"
"path/filepath"
"time"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
"github.com/open-feature/flagd/core/pkg/utils"
"gocloud.dev/blob"
_ "gocloud.dev/blob/azureblob" // needed to initialize Azure Blob Storage driver
_ "gocloud.dev/blob/gcsblob" // needed to initialize GCS driver
_ "gocloud.dev/blob/s3blob" // needed to initialize s3 driver
)
type Sync struct {
Bucket string
Object string
BlobURLMux *blob.URLMux
Cron Cron
Logger *logger.Logger
Interval uint32
ready bool
lastUpdated time.Time
}
// Cron defines the behaviour required of a cron
type Cron interface {
AddFunc(spec string, cmd func()) error
Start()
Stop()
}
func (hs *Sync) Init(_ context.Context) error {
if hs.Bucket == "" {
return errors.New("no bucket string set")
}
if hs.Object == "" {
return errors.New("no object string set")
}
return nil
}
func (hs *Sync) IsReady() bool {
return hs.ready
}
func (hs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
hs.Logger.Info(fmt.Sprintf("starting sync from %s/%s with interval %ds", hs.Bucket, hs.Object, hs.Interval))
_ = hs.Cron.AddFunc(fmt.Sprintf("*/%d * * * *", hs.Interval), func() {
err := hs.sync(ctx, dataSync, false)
if err != nil {
hs.Logger.Warn(fmt.Sprintf("sync failed: %v", err))
}
})
// Initial fetch
hs.Logger.Debug(fmt.Sprintf("initial sync of the %s/%s", hs.Bucket, hs.Object))
err := hs.sync(ctx, dataSync, false)
if err != nil {
return err
}
hs.ready = true
hs.Cron.Start()
<-ctx.Done()
hs.Cron.Stop()
return nil
}
func (hs *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error {
return hs.sync(ctx, dataSync, true)
}
func (hs *Sync) sync(ctx context.Context, dataSync chan<- sync.DataSync, skipCheckingModTime bool) error {
bucket, err := hs.getBucket(ctx)
if err != nil {
return fmt.Errorf("couldn't get bucket: %v", err)
}
defer bucket.Close()
var updated time.Time
if !skipCheckingModTime {
updated, err = hs.fetchObjectModificationTime(ctx, bucket)
if err != nil {
return fmt.Errorf("couldn't get object attributes: %v", err)
}
if hs.lastUpdated.Equal(updated) {
hs.Logger.Debug("configuration hasn't changed, skipping fetching full object")
return nil
}
if hs.lastUpdated.After(updated) {
hs.Logger.Warn("configuration changed but the modification time decreased instead of increasing")
}
}
msg, err := hs.fetchObject(ctx, bucket)
if err != nil {
return fmt.Errorf("couldn't get object: %v", err)
}
hs.Logger.Debug(fmt.Sprintf("configuration updated: %s", msg))
if !skipCheckingModTime {
hs.lastUpdated = updated
}
dataSync <- sync.DataSync{FlagData: msg, Source: hs.Bucket + hs.Object}
return nil
}
func (hs *Sync) getBucket(ctx context.Context) (*blob.Bucket, error) {
b, err := hs.BlobURLMux.OpenBucket(ctx, hs.Bucket)
if err != nil {
return nil, fmt.Errorf("error opening bucket %s: %v", hs.Bucket, err)
}
return b, nil
}
func (hs *Sync) fetchObjectModificationTime(ctx context.Context, bucket *blob.Bucket) (time.Time, error) {
if hs.Object == "" {
return time.Time{}, errors.New("no object string set")
}
attrs, err := bucket.Attributes(ctx, hs.Object)
if err != nil {
return time.Time{}, fmt.Errorf("error fetching attributes for object %s/%s: %w", hs.Bucket, hs.Object, err)
}
return attrs.ModTime, nil
}
func (hs *Sync) fetchObject(ctx context.Context, bucket *blob.Bucket) (string, error) {
r, err := bucket.NewReader(ctx, hs.Object, nil)
if err != nil {
return "", fmt.Errorf("error opening reader for object %s/%s: %w", hs.Bucket, hs.Object, err)
}
defer r.Close()
data, err := io.ReadAll(r)
if err != nil {
return "", fmt.Errorf("error downloading object %s/%s: %w", hs.Bucket, hs.Object, err)
}
json, err := utils.ConvertToJSON(data, filepath.Ext(hs.Object), r.ContentType())
if err != nil {
return "", fmt.Errorf("error converting blob data to json: %w", err)
}
return json, nil
}

View File

@ -0,0 +1,152 @@
package blob
import (
"context"
"log"
"testing"
"time"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
synctesting "github.com/open-feature/flagd/core/pkg/sync/testing"
"go.uber.org/mock/gomock"
)
func TestBlobSync(t *testing.T) {
tests := map[string]struct {
scheme string
bucket string
object string
content string
convertedContent string
}{
"json file type": {
scheme: "xyz",
bucket: "b",
object: "flags.json",
content: "{\"flags\":{}}",
convertedContent: "{\"flags\":{}}",
},
"yaml file type": {
scheme: "xyz",
bucket: "b",
object: "flags.yaml",
content: "flags: []",
convertedContent: "{\"flags\":[]}",
},
}
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
ctrl := gomock.NewController(t)
mockCron := synctesting.NewMockCron(ctrl)
mockCron.EXPECT().AddFunc(gomock.Any(), gomock.Any()).DoAndReturn(func(spec string, cmd func()) error {
return nil
})
mockCron.EXPECT().Start().Times(1)
blobSync := &Sync{
Bucket: tt.scheme + "://" + tt.bucket,
Object: tt.object,
Cron: mockCron,
Logger: logger.NewLogger(nil, false),
}
blobMock := NewMockBlob(tt.scheme, func() *Sync {
return blobSync
})
blobSync.BlobURLMux = blobMock.URLMux()
ctx := context.Background()
dataSyncChan := make(chan sync.DataSync, 1)
blobMock.AddObject(tt.object, tt.content)
go func() {
err := blobSync.Sync(ctx, dataSyncChan)
if err != nil {
log.Fatalf("Error start sync: %s", err.Error())
return
}
}()
data := <-dataSyncChan // initial sync
if data.FlagData != tt.convertedContent {
t.Errorf("expected content: %s, but received content: %s", tt.convertedContent, data.FlagData)
}
tickWithConfigChange(t, mockCron, dataSyncChan, blobMock, tt.object, tt.convertedContent)
tickWithoutConfigChange(t, mockCron, dataSyncChan)
tickWithConfigChange(t, mockCron, dataSyncChan, blobMock, tt.object, tt.convertedContent)
tickWithoutConfigChange(t, mockCron, dataSyncChan)
tickWithoutConfigChange(t, mockCron, dataSyncChan)
})
}
}
func tickWithConfigChange(t *testing.T, mockCron *synctesting.MockCron, dataSyncChan chan sync.DataSync, blobMock *MockBlob, object string, newConfig string) {
time.Sleep(1 * time.Millisecond) // sleep so the new file has different modification date
blobMock.AddObject(object, newConfig)
mockCron.Tick()
select {
case data, ok := <-dataSyncChan:
if ok {
if data.FlagData != newConfig {
t.Errorf("expected content: %s, but received content: %s", newConfig, data.FlagData)
}
} else {
t.Errorf("data channel unexpectedly closed")
}
default:
t.Errorf("data channel has no expected update")
}
}
func tickWithoutConfigChange(t *testing.T, mockCron *synctesting.MockCron, dataSyncChan chan sync.DataSync) {
mockCron.Tick()
select {
case data, ok := <-dataSyncChan:
if ok {
t.Errorf("unexpected update: %s", data.FlagData)
} else {
t.Errorf("data channel unexpectedly closed")
}
default:
}
}
func TestReSync(t *testing.T) {
const (
scheme = "xyz"
bucket = "b"
object = "flags.json"
)
ctrl := gomock.NewController(t)
mockCron := synctesting.NewMockCron(ctrl)
blobSync := &Sync{
Bucket: scheme + "://" + bucket,
Object: object,
Cron: mockCron,
Logger: logger.NewLogger(nil, false),
}
blobMock := NewMockBlob(scheme, func() *Sync {
return blobSync
})
blobSync.BlobURLMux = blobMock.URLMux()
ctx := context.Background()
dataSyncChan := make(chan sync.DataSync, 1)
config := "my-config"
blobMock.AddObject(object, config)
err := blobSync.ReSync(ctx, dataSyncChan)
if err != nil {
log.Fatalf("Error start sync: %s", err.Error())
return
}
data := <-dataSyncChan
if data.FlagData != config {
t.Errorf("expected content: %s, but received content: %s", config, data.FlagData)
}
}

View File

@ -0,0 +1,72 @@
package blob
import (
"context"
"log"
"net/url"
"gocloud.dev/blob"
"gocloud.dev/blob/memblob"
)
type MockBlob struct {
mux *blob.URLMux
scheme string
opener *fakeOpener
}
type fakeOpener struct {
object string
content string
keepModTime bool
getSync func() *Sync
}
func (f *fakeOpener) OpenBucketURL(ctx context.Context, _ *url.URL) (*blob.Bucket, error) {
bucketURL, err := url.Parse("mem://")
if err != nil {
log.Fatalf("couldn't parse url: %s: %v", "mem://", err)
}
opener := &memblob.URLOpener{}
bucket, err := opener.OpenBucketURL(ctx, bucketURL)
if err != nil {
log.Fatalf("couldn't open in memory bucket: %v", err)
}
if f.object != "" {
err = bucket.WriteAll(ctx, f.object, []byte(f.content), nil)
if err != nil {
log.Fatalf("couldn't write in memory file: %v", err)
}
}
if f.keepModTime && f.object != "" {
attrs, err := bucket.Attributes(ctx, f.object)
if err != nil {
log.Fatalf("couldn't get memory file attributes: %v", err)
}
f.getSync().lastUpdated = attrs.ModTime
} else {
f.keepModTime = true
}
return bucket, nil
}
func NewMockBlob(scheme string, getSync func() *Sync) *MockBlob {
mux := new(blob.URLMux)
opener := &fakeOpener{getSync: getSync}
mux.RegisterBucket(scheme, opener)
return &MockBlob{
mux: mux,
scheme: scheme,
opener: opener,
}
}
func (mb *MockBlob) URLMux() *blob.URLMux {
return mb.mux
}
func (mb *MockBlob) AddObject(object, content string) {
mb.opener.object = object
mb.opener.content = content
mb.opener.keepModTime = false
}

View File

@ -5,11 +5,11 @@ import (
"net/http"
"os"
"regexp"
msync "sync"
"time"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
blobSync "github.com/open-feature/flagd/core/pkg/sync/blob"
"github.com/open-feature/flagd/core/pkg/sync/file"
"github.com/open-feature/flagd/core/pkg/sync/grpc"
"github.com/open-feature/flagd/core/pkg/sync/grpc/credentials"
@ -17,6 +17,7 @@ import (
"github.com/open-feature/flagd/core/pkg/sync/kubernetes"
"github.com/robfig/cron"
"go.uber.org/zap"
"gocloud.dev/blob"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
@ -24,17 +25,26 @@ import (
const (
syncProviderFile = "file"
syncProviderFsNotify = "fsnotify"
syncProviderFileInfo = "fileinfo"
syncProviderGrpc = "grpc"
syncProviderKubernetes = "kubernetes"
syncProviderHTTP = "http"
syncProviderGcs = "gcs"
syncProviderAzblob = "azblob"
syncProviderS3 = "s3"
)
var (
regCrd *regexp.Regexp
regURL *regexp.Regexp
regGRPC *regexp.Regexp
regGRPCSecure *regexp.Regexp
regFile *regexp.Regexp
regCrd *regexp.Regexp
regURL *regexp.Regexp
regGRPC *regexp.Regexp
regGRPCSecure *regexp.Regexp
regGRPCCustomResolver *regexp.Regexp
regFile *regexp.Regexp
regGcs *regexp.Regexp
regAzblob *regexp.Regexp
regS3 *regexp.Regexp
)
func init() {
@ -42,7 +52,11 @@ func init() {
regURL = regexp.MustCompile("^https?://")
regGRPC = regexp.MustCompile("^" + grpc.Prefix)
regGRPCSecure = regexp.MustCompile("^" + grpc.PrefixSecure)
regGRPCCustomResolver = regexp.MustCompile("^" + grpc.SupportedScheme)
regFile = regexp.MustCompile("^file:")
regGcs = regexp.MustCompile("^gs://.+?/")
regAzblob = regexp.MustCompile("^azblob://.+?/")
regS3 = regexp.MustCompile("^s3://.+?/")
}
type ISyncBuilder interface {
@ -86,8 +100,13 @@ func (sb *SyncBuilder) SyncsFromConfig(sourceConfigs []sync.SourceConfig, logger
func (sb *SyncBuilder) syncFromConfig(sourceConfig sync.SourceConfig, logger *logger.Logger) (sync.ISync, error) {
switch sourceConfig.Provider {
case syncProviderFile:
logger.Debug(fmt.Sprintf("using filepath sync-provider for: %q", sourceConfig.URI))
return sb.newFile(sourceConfig.URI, logger), nil
case syncProviderFsNotify:
logger.Debug(fmt.Sprintf("using fsnotify sync-provider for: %q", sourceConfig.URI))
return sb.newFsNotify(sourceConfig.URI, logger), nil
case syncProviderFileInfo:
logger.Debug(fmt.Sprintf("using fileinfo sync-provider for: %q", sourceConfig.URI))
return sb.newFileInfo(sourceConfig.URI, logger), nil
case syncProviderKubernetes:
logger.Debug(fmt.Sprintf("using kubernetes sync-provider for: %s", sourceConfig.URI))
return sb.newK8s(sourceConfig.URI, logger)
@ -97,24 +116,60 @@ func (sb *SyncBuilder) syncFromConfig(sourceConfig sync.SourceConfig, logger *lo
case syncProviderGrpc:
logger.Debug(fmt.Sprintf("using grpc sync-provider for: %s", sourceConfig.URI))
return sb.newGRPC(sourceConfig, logger), nil
case syncProviderGcs:
logger.Debug(fmt.Sprintf("using blob sync-provider with gcs driver for: %s", sourceConfig.URI))
return sb.newGcs(sourceConfig, logger), nil
case syncProviderAzblob:
logger.Debug(fmt.Sprintf("using blob sync-provider with azblob driver for: %s", sourceConfig.URI))
return sb.newAzblob(sourceConfig, logger)
case syncProviderS3:
logger.Debug(fmt.Sprintf("using blob sync-provider with s3 driver for: %s", sourceConfig.URI))
return sb.newS3(sourceConfig, logger), nil
default:
return nil, fmt.Errorf("invalid sync provider: %s, must be one of with '%s', '%s', '%s' or '%s'",
sourceConfig.Provider, syncProviderFile, syncProviderKubernetes, syncProviderHTTP, syncProviderKubernetes)
return nil, fmt.Errorf("invalid sync provider: %s, must be one of with "+
"'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' or '%s'",
sourceConfig.Provider, syncProviderFile, syncProviderFsNotify, syncProviderFileInfo,
syncProviderKubernetes, syncProviderHTTP, syncProviderGrpc, syncProviderGcs, syncProviderAzblob, syncProviderS3)
}
}
// newFile returns an fsinfo sync if we are in k8s or fileinfo if not
func (sb *SyncBuilder) newFile(uri string, logger *logger.Logger) *file.Sync {
return &file.Sync{
URI: regFile.ReplaceAllString(uri, ""),
Logger: logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", "filepath"),
),
Mux: &msync.RWMutex{},
switch os.Getenv("KUBERNETES_SERVICE_HOST") {
case "":
// no k8s service host env; use fileinfo
return sb.newFileInfo(uri, logger)
default:
// default to fsnotify
return sb.newFsNotify(uri, logger)
}
}
// return a new file.Sync that uses fsnotify under the hood
func (sb *SyncBuilder) newFsNotify(uri string, logger *logger.Logger) *file.Sync {
return file.NewFileSync(
regFile.ReplaceAllString(uri, ""),
file.FSNOTIFY,
logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", syncProviderFsNotify),
),
)
}
// return a new file.Sync that uses os.Stat/fs.FileInfo under the hood
func (sb *SyncBuilder) newFileInfo(uri string, logger *logger.Logger) *file.Sync {
return file.NewFileSync(
regFile.ReplaceAllString(uri, ""),
file.FILEINFO,
logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", syncProviderFileInfo),
),
)
}
func (sb *SyncBuilder) newK8s(uri string, logger *logger.Logger) (*kubernetes.Sync, error) {
dynamicClient, err := sb.k8sClientBuilder.GetK8sClient()
if err != nil {
@ -166,6 +221,100 @@ func (sb *SyncBuilder) newGRPC(config sync.SourceConfig, logger *logger.Logger)
ProviderID: config.ProviderID,
Secure: config.TLS,
Selector: config.Selector,
MaxMsgSize: config.MaxMsgSize,
}
}
func (sb *SyncBuilder) newGcs(config sync.SourceConfig, logger *logger.Logger) *blobSync.Sync {
// Extract bucket uri and object name from the full URI:
// gs://bucket/path/to/object results in gs://bucket/ as bucketUri and
// path/to/object as an object name.
bucketURI := regGcs.FindString(config.URI)
objectName := regGcs.ReplaceAllString(config.URI, "")
// Defaults to 5 seconds if interval is not set.
var interval uint32 = 5
if config.Interval != 0 {
interval = config.Interval
}
return &blobSync.Sync{
Bucket: bucketURI,
Object: objectName,
BlobURLMux: blob.DefaultURLMux(),
Logger: logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", "gcs"),
),
Interval: interval,
Cron: cron.New(),
}
}
func (sb *SyncBuilder) newAzblob(config sync.SourceConfig, logger *logger.Logger) (*blobSync.Sync, error) {
// Required to generate the azblob service URL
storageAccountName := os.Getenv("AZURE_STORAGE_ACCOUNT")
if storageAccountName == "" {
return nil, fmt.Errorf("environment variable AZURE_STORAGE_ACCOUNT not set or is blank")
}
if regexp.MustCompile(`\s`).MatchString(storageAccountName) {
return nil, fmt.Errorf("environment variable AZURE_STORAGE_ACCOUNT contains whitespace")
}
// Extract bucket uri and object name from the full URI:
// azblob://bucket/path/to/object results in azblob://bucket/ as bucketUri and
// path/to/object as an object name.
bucketURI := regAzblob.FindString(config.URI)
objectName := regAzblob.ReplaceAllString(config.URI, "")
// Defaults to 5 seconds if interval is not set.
var interval uint32 = 5
if config.Interval != 0 {
interval = config.Interval
}
return &blobSync.Sync{
Bucket: bucketURI,
Object: objectName,
BlobURLMux: blob.DefaultURLMux(),
Logger: logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", "azblob"),
),
Interval: interval,
Cron: cron.New(),
}, nil
}
func (sb *SyncBuilder) newS3(config sync.SourceConfig, logger *logger.Logger) *blobSync.Sync {
// Extract bucket uri and object name from the full URI:
// gs://bucket/path/to/object results in gs://bucket/ as bucketUri and
// path/to/object as an object name.
bucketURI := regS3.FindString(config.URI)
objectName := regS3.ReplaceAllString(config.URI, "")
// Defaults to 5 seconds if interval is not set.
var interval uint32 = 5
if config.Interval != 0 {
interval = config.Interval
}
return &blobSync.Sync{
Bucket: bucketURI,
Object: objectName,
BlobURLMux: blob.DefaultURLMux(),
Logger: logger.WithFields(
zap.String("component", "sync"),
zap.String("sync", "s3"),
),
Interval: interval,
Cron: cron.New(),
}
}

View File

@ -6,6 +6,7 @@ import (
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
"github.com/open-feature/flagd/core/pkg/sync/blob"
buildermock "github.com/open-feature/flagd/core/pkg/sync/builder/mock"
"github.com/open-feature/flagd/core/pkg/sync/file"
"github.com/open-feature/flagd/core/pkg/sync/grpc"
@ -173,9 +174,31 @@ func Test_SyncsFromFromConfig(t *testing.T) {
},
wantErr: false,
},
{
name: "grpc-with-msg-size",
args: args{
logger: lg,
sources: []sync.SourceConfig{
{
URI: "grpc://host:port",
Provider: syncProviderGrpc,
ProviderID: "myapp",
CertPath: "/tmp/ca.cert",
Selector: "source=database",
MaxMsgSize: 10,
},
},
},
wantSyncs: []sync.ISync{
&grpc.Sync{},
},
wantErr: false,
},
{
name: "combined",
injectFunc: func(builder *SyncBuilder) {
t.Setenv("AZURE_STORAGE_ACCOUNT", "myaccount")
ctrl := gomock.NewController(t)
mockClientBuilder := buildermock.NewMockIK8sClientBuilder(ctrl)
@ -211,6 +234,18 @@ func Test_SyncsFromFromConfig(t *testing.T) {
URI: "my-namespace/my-flags",
Provider: syncProviderKubernetes,
},
{
URI: "gs://bucket/path/to/file",
Provider: syncProviderGcs,
},
{
URI: "azblob://bucket/path/to/file",
Provider: syncProviderAzblob,
},
{
URI: "s3://bucket/path/to/file",
Provider: syncProviderS3,
},
},
},
wantSyncs: []sync.ISync{
@ -219,6 +254,9 @@ func Test_SyncsFromFromConfig(t *testing.T) {
&http.Sync{},
&file.Sync{},
&kubernetes.Sync{},
&blob.Sync{},
&blob.Sync{},
&blob.Sync{},
},
wantErr: false,
},
@ -244,3 +282,198 @@ func Test_SyncsFromFromConfig(t *testing.T) {
})
}
}
func Test_GcsConfig(t *testing.T) {
lg := logger.NewLogger(nil, false)
defaultInterval := uint32(5)
tests := []struct {
name string
uri string
interval uint32
expectedBucket string
expectedObject string
expectedInterval uint32
}{
{
name: "simple path",
uri: "gs://bucket/path/to/object",
interval: 10,
expectedBucket: "gs://bucket/",
expectedObject: "path/to/object",
expectedInterval: 10,
},
{
name: "default interval",
uri: "gs://bucket/path/to/object",
expectedBucket: "gs://bucket/",
expectedObject: "path/to/object",
expectedInterval: defaultInterval,
},
{
name: "no object set", // Blob syncer will return error when fetching
uri: "gs://bucket/",
expectedBucket: "gs://bucket/",
expectedObject: "",
expectedInterval: defaultInterval,
},
{
name: "malformed uri", // Blob syncer will return error when opening bucket
uri: "malformed",
expectedBucket: "",
expectedObject: "malformed",
expectedInterval: defaultInterval,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
gcsSync := NewSyncBuilder().newGcs(sync.SourceConfig{
URI: tt.uri,
Interval: tt.interval,
}, lg)
require.Equal(t, tt.expectedBucket, gcsSync.Bucket)
require.Equal(t, tt.expectedObject, gcsSync.Object)
require.Equal(t, int(tt.expectedInterval), int(gcsSync.Interval))
})
}
}
func Test_AzblobConfig(t *testing.T) {
lg := logger.NewLogger(nil, false)
defaultInterval := uint32(5)
tests := []struct {
name string
uri string
interval uint32
storageAccount string
expectedBucket string
expectedObject string
expectedInterval uint32
wantErr bool
}{
{
name: "simple path",
uri: "azblob://bucket/path/to/object",
interval: 10,
storageAccount: "myaccount",
expectedBucket: "azblob://bucket/",
expectedObject: "path/to/object",
expectedInterval: 10,
wantErr: false,
},
{
name: "default interval",
uri: "azblob://bucket/path/to/object",
storageAccount: "myaccount",
expectedBucket: "azblob://bucket/",
expectedObject: "path/to/object",
expectedInterval: defaultInterval,
wantErr: false,
},
{
name: "no object set", // Blob syncer will return error when fetching
uri: "azblob://bucket/",
storageAccount: "myaccount",
expectedBucket: "azblob://bucket/",
expectedObject: "",
expectedInterval: defaultInterval,
wantErr: false,
},
{
name: "malformed uri", // Blob syncer will return error when opening bucket
uri: "malformed",
storageAccount: "myaccount",
expectedBucket: "",
expectedObject: "malformed",
expectedInterval: defaultInterval,
wantErr: false,
},
{
name: "storage account not set", // Sync builder will fail and return error
uri: "azblob://bucket/path/to/object",
storageAccount: "",
wantErr: true,
},
{
name: "storage account contains whitespace", // Sync builder will fail and return error
uri: "azblob://bucket/path/to/object",
storageAccount: "my account",
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Setenv("AZURE_STORAGE_ACCOUNT", tt.storageAccount)
azblobSync, err := NewSyncBuilder().newAzblob(sync.SourceConfig{
URI: tt.uri,
Interval: tt.interval,
}, lg)
if (err != nil) != tt.wantErr {
t.Errorf("newAzblob() error = %v, wantErr %v", err, tt.wantErr)
return
}
if (err != nil) && (tt.wantErr == true) {
return
}
require.Equal(t, tt.expectedBucket, azblobSync.Bucket)
require.Equal(t, tt.expectedObject, azblobSync.Object)
require.Equal(t, int(tt.expectedInterval), int(azblobSync.Interval))
})
}
}
func Test_S3Config(t *testing.T) {
lg := logger.NewLogger(nil, false)
defaultInterval := uint32(5)
tests := []struct {
name string
uri string
interval uint32
expectedBucket string
expectedObject string
expectedInterval uint32
}{
{
name: "simple path",
uri: "s3://bucket/path/to/object",
interval: 10,
expectedBucket: "s3://bucket/",
expectedObject: "path/to/object",
expectedInterval: 10,
},
{
name: "default interval",
uri: "s3://bucket/path/to/object",
expectedBucket: "s3://bucket/",
expectedObject: "path/to/object",
expectedInterval: defaultInterval,
},
{
name: "no object set", // Blob syncer will return error when fetching
uri: "s3://bucket/",
expectedBucket: "s3://bucket/",
expectedObject: "",
expectedInterval: defaultInterval,
},
{
name: "malformed uri", // Blob syncer will return error when opening bucket
uri: "malformed",
expectedBucket: "",
expectedObject: "malformed",
expectedInterval: defaultInterval,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
s3Sync := NewSyncBuilder().newS3(sync.SourceConfig{
URI: tt.uri,
Interval: tt.interval,
}, lg)
require.Equal(t, tt.expectedBucket, s3Sync.Bucket)
require.Equal(t, tt.expectedObject, s3Sync.Object)
require.Equal(t, int(tt.expectedInterval), int(s3Sync.Interval))
})
}
}

View File

@ -64,9 +64,29 @@ func ParseSyncProviderURIs(uris []string) ([]sync.SourceConfig, error) {
Provider: syncProviderGrpc,
TLS: true,
})
case regGRPCCustomResolver.Match(uriB):
syncProvidersParsed = append(syncProvidersParsed, sync.SourceConfig{
URI: uri,
Provider: syncProviderGrpc,
})
case regGcs.Match(uriB):
syncProvidersParsed = append(syncProvidersParsed, sync.SourceConfig{
URI: uri,
Provider: syncProviderGcs,
})
case regAzblob.Match(uriB):
syncProvidersParsed = append(syncProvidersParsed, sync.SourceConfig{
URI: uri,
Provider: syncProviderAzblob,
})
case regS3.Match(uriB):
syncProvidersParsed = append(syncProvidersParsed, sync.SourceConfig{
URI: uri,
Provider: syncProviderS3,
})
default:
return syncProvidersParsed, fmt.Errorf("invalid sync uri argument: %s, must start with 'file:', "+
"'http(s)://', 'grpc(s)://', or 'core.openfeature.dev'", uri)
"'http(s)://', 'grpc(s)://', 'gs://', 'azblob://' or 'core.openfeature.dev'", uri)
}
}
return syncProvidersParsed, nil

View File

@ -28,7 +28,10 @@ func TestParseSource(t *testing.T) {
{"uri":"config/samples/example_flags.json","provider":"file"},
{"uri":"http://test.com","provider":"http","bearerToken":":)"},
{"uri":"host:port","provider":"grpc"},
{"uri":"default/my-crd","provider":"kubernetes"}
{"uri":"default/my-crd","provider":"kubernetes"},
{"uri":"gs://bucket-name/path/to/file","provider":"gcs"},
{"uri":"azblob://bucket-name/path/to/file","provider":"azblob"},
{"uri":"s3://bucket-name/path/to/file","provider":"s3"}
]`,
expectErr: false,
out: []sync.SourceConfig{
@ -49,6 +52,18 @@ func TestParseSource(t *testing.T) {
URI: "default/my-crd",
Provider: syncProviderKubernetes,
},
{
URI: "gs://bucket-name/path/to/file",
Provider: syncProviderGcs,
},
{
URI: "azblob://bucket-name/path/to/file",
Provider: syncProviderAzblob,
},
{
URI: "s3://bucket-name/path/to/file",
Provider: syncProviderS3,
},
},
},
"multiple-syncs-with-options": {
@ -182,6 +197,9 @@ func TestParseSyncProviderURIs(t *testing.T) {
"grpc://host:port",
"grpcs://secure-grpc",
"core.openfeature.dev/default/my-crd",
"gs://bucket-name/path/to/file",
"azblob://bucket-name/path/to/file",
"s3://bucket-name/path/to/file",
},
expectErr: false,
out: []sync.SourceConfig{
@ -207,6 +225,18 @@ func TestParseSyncProviderURIs(t *testing.T) {
URI: "default/my-crd",
Provider: "kubernetes",
},
{
URI: "gs://bucket-name/path/to/file",
Provider: syncProviderGcs,
},
{
URI: "azblob://bucket-name/path/to/file",
Provider: syncProviderAzblob,
},
{
URI: "s3://bucket-name/path/to/file",
Provider: syncProviderS3,
},
},
},
"empty": {

View File

@ -0,0 +1,202 @@
package file
import (
"context"
"errors"
"fmt"
"io/fs"
"os"
"sync"
"time"
"github.com/fsnotify/fsnotify"
"github.com/open-feature/flagd/core/pkg/logger"
)
// Implements file.Watcher using a timer and os.FileInfo
type fileInfoWatcher struct {
// Event Chan
evChan chan fsnotify.Event
// Errors Chan
erChan chan error
// logger
logger *logger.Logger
// Func to wrap os.Stat (injection point for test helpers)
statFunc func(string) (fs.FileInfo, error)
// thread-safe interface to underlying files we are watching
mu sync.RWMutex
watches map[string]fs.FileInfo // filename -> info
}
// NewFsNotifyWatcher returns a new fsNotifyWatcher
func NewFileInfoWatcher(ctx context.Context, logger *logger.Logger) Watcher {
fiw := &fileInfoWatcher{
evChan: make(chan fsnotify.Event, 32),
erChan: make(chan error, 32),
statFunc: getFileInfo,
logger: logger,
watches: make(map[string]fs.FileInfo),
}
fiw.run(ctx, (1 * time.Second))
return fiw
}
// fileInfoWatcher explicitly implements file.Watcher
var _ Watcher = &fileInfoWatcher{}
// Close calls close on the underlying fsnotify.Watcher
func (f *fileInfoWatcher) Close() error {
// close all channels and exit
close(f.evChan)
close(f.erChan)
return nil
}
// Add calls Add on the underlying fsnotify.Watcher
func (f *fileInfoWatcher) Add(name string) error {
f.mu.Lock()
defer f.mu.Unlock()
// exit early if name already exists
if _, ok := f.watches[name]; ok {
return nil
}
info, err := f.statFunc(name)
if err != nil {
return err
}
f.watches[name] = info
return nil
}
// Remove calls Remove on the underlying fsnotify.Watcher
func (f *fileInfoWatcher) Remove(name string) error {
f.mu.Lock()
defer f.mu.Unlock()
// no need to exit early, deleting non-existent key is a no-op
delete(f.watches, name)
return nil
}
// Watchlist calls watchlist on the underlying fsnotify.Watcher
func (f *fileInfoWatcher) WatchList() []string {
f.mu.RLock()
defer f.mu.RUnlock()
out := []string{}
for name := range f.watches {
n := name
out = append(out, n)
}
return out
}
// Events returns the underlying watcher's Events chan
func (f *fileInfoWatcher) Events() chan fsnotify.Event {
return f.evChan
}
// Errors returns the underlying watcher's Errors chan
func (f *fileInfoWatcher) Errors() chan error {
return f.erChan
}
// run is a blocking function that starts the filewatcher's timer thread
func (f *fileInfoWatcher) run(ctx context.Context, s time.Duration) {
// timer thread
go func() {
// execute update on the configured interval of time
ticker := time.NewTicker(s)
defer ticker.Stop()
for {
select {
case <-ctx.Done():
return
case <-ticker.C:
if err := f.update(); err != nil {
f.erChan <- err
return
}
}
}
}()
}
func (f *fileInfoWatcher) update() error {
f.mu.Lock()
defer f.mu.Unlock()
for path, info := range f.watches {
newInfo, err := f.statFunc(path)
if err != nil {
// if the file isn't there, it must have been removed
// fire off a remove event and remove it from the watches
if errors.Is(err, os.ErrNotExist) {
f.evChan <- fsnotify.Event{
Name: path,
Op: fsnotify.Remove,
}
delete(f.watches, path)
continue
}
return err
}
// if the new stat doesn't match the old stat, figure out what changed
if info != newInfo {
event := f.generateEvent(path, newInfo)
if event != nil {
f.evChan <- *event
}
f.watches[path] = newInfo
}
}
return nil
}
// generateEvent figures out what changed and generates an fsnotify.Event for it. (if we care)
// file removal are handled above in the update() method
func (f *fileInfoWatcher) generateEvent(path string, newInfo fs.FileInfo) *fsnotify.Event {
info := f.watches[path]
switch {
// new mod time is more recent than old mod time, generate a write event
case newInfo.ModTime().After(info.ModTime()):
return &fsnotify.Event{
Name: path,
Op: fsnotify.Write,
}
// the file modes changed, generate a chmod event
case info.Mode() != newInfo.Mode():
return &fsnotify.Event{
Name: path,
Op: fsnotify.Chmod,
}
// nothing changed that we care about
default:
return nil
}
}
// getFileInfo returns the fs.FileInfo for the given path
func getFileInfo(path string) (fs.FileInfo, error) {
f, err := os.Open(path)
if err != nil {
return nil, fmt.Errorf("error from os.Open(%s): %w", path, err)
}
info, err := f.Stat()
if err != nil {
return info, fmt.Errorf("error from fs.Stat(%s): %w", path, err)
}
if err := f.Close(); err != nil {
return info, fmt.Errorf("err from fs.Close(%s): %w", path, err)
}
return info, nil
}

View File

@ -0,0 +1,248 @@
package file
import (
"errors"
"fmt"
"io/fs"
"os"
"testing"
"time"
"github.com/fsnotify/fsnotify"
"github.com/google/go-cmp/cmp"
)
func Test_fileInfoWatcher_Close(t *testing.T) {
tests := []struct {
name string
watcher *fileInfoWatcher
wantErr bool
}{
{
name: "all chans close",
watcher: makeTestWatcher(t, map[string]fs.FileInfo{}),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := tt.watcher.Close(); (err != nil) != tt.wantErr {
t.Errorf("fileInfoWatcher.Close() error = %v, wantErr %v", err, tt.wantErr)
}
if _, ok := (<-tt.watcher.Errors()); ok != false {
t.Error("fileInfoWatcher.Close() failed to close error chan")
}
if _, ok := (<-tt.watcher.Events()); ok != false {
t.Error("fileInfoWatcher.Close() failed to close events chan")
}
})
}
}
func Test_fileInfoWatcher_Add(t *testing.T) {
tests := []struct {
name string
watcher *fileInfoWatcher
add []string
want map[string]fs.FileInfo
wantErr bool
}{
{
name: "add one watch",
watcher: makeTestWatcher(t, map[string]fs.FileInfo{}),
add: []string{"/foo"},
want: map[string]fs.FileInfo{
"/foo": &mockFileInfo{},
},
},
}
for _, tt := range tests {
tt.watcher.statFunc = makeStatFunc(t, &mockFileInfo{})
t.Run(tt.name, func(t *testing.T) {
for _, path := range tt.add {
if err := tt.watcher.Add(path); (err != nil) != tt.wantErr {
t.Errorf("fileInfoWatcher.Add() error = %v, wantErr %v", err, tt.wantErr)
}
}
if !cmp.Equal(tt.watcher.watches, tt.want, cmp.AllowUnexported(mockFileInfo{})) {
t.Errorf("fileInfoWatcher.Add(): want-, got+: %v ", cmp.Diff(tt.want, tt.watcher.watches))
}
})
}
}
func Test_fileInfoWatcher_Remove(t *testing.T) {
tests := []struct {
name string
watcher *fileInfoWatcher
removeThis string
want []string
}{{
name: "remove foo",
watcher: makeTestWatcher(t, map[string]fs.FileInfo{"foo": &mockFileInfo{}, "bar": &mockFileInfo{}}),
removeThis: "foo",
want: []string{"bar"},
}}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
err := tt.watcher.Remove(tt.removeThis)
if err != nil {
t.Errorf("fileInfoWatcher.Remove() error = %v", err)
}
if !cmp.Equal(tt.watcher.WatchList(), tt.want) {
t.Errorf("fileInfoWatcher.Add(): want-, got+: %v ", cmp.Diff(tt.want, tt.watcher.WatchList()))
}
})
}
}
func Test_fileInfoWatcher_update(t *testing.T) {
tests := []struct {
name string
watcher *fileInfoWatcher
statFunc func(string) (fs.FileInfo, error)
wantErr bool
want *fsnotify.Event
}{
{
name: "chmod",
watcher: makeTestWatcher(t,
map[string]fs.FileInfo{
"foo": &mockFileInfo{
name: "foo",
mode: 0,
},
},
),
statFunc: func(_ string) (fs.FileInfo, error) {
return &mockFileInfo{
name: "foo",
mode: 1,
}, nil
},
want: &fsnotify.Event{Name: "foo", Op: fsnotify.Chmod},
},
{
name: "write",
watcher: makeTestWatcher(t,
map[string]fs.FileInfo{
"foo": &mockFileInfo{
name: "foo",
modTime: time.Now().Local(),
},
},
),
statFunc: func(_ string) (fs.FileInfo, error) {
return &mockFileInfo{
name: "foo",
modTime: (time.Now().Local().Add(5 * time.Minute)),
}, nil
},
want: &fsnotify.Event{Name: "foo", Op: fsnotify.Write},
},
{
name: "remove",
watcher: makeTestWatcher(t,
map[string]fs.FileInfo{
"foo": &mockFileInfo{
name: "foo",
},
},
),
statFunc: func(_ string) (fs.FileInfo, error) {
return nil, fmt.Errorf("mock file-no-existy error: %w", os.ErrNotExist)
},
want: &fsnotify.Event{Name: "foo", Op: fsnotify.Remove},
},
{
name: "unknown error",
watcher: makeTestWatcher(t,
map[string]fs.FileInfo{
"foo": &mockFileInfo{
name: "foo",
},
},
),
statFunc: func(_ string) (fs.FileInfo, error) {
return nil, errors.New("unhandled error")
},
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// set the statFunc
tt.watcher.statFunc = tt.statFunc
// run an update
// this also flexes fileinfowatcher.generateEvent()
err := tt.watcher.update()
if err != nil {
if tt.wantErr {
return
}
t.Errorf("fileInfoWatcher.update() unexpected error = %v, wantErr %v", err, tt.wantErr)
}
// slurp an event off the event chan
out := <-tt.watcher.Events()
if out != *tt.want {
t.Errorf("fileInfoWatcher.update() wanted %v, got %v", tt.want, out)
}
})
}
}
// Helpers
// makeTestWatcher returns a pointer to a fileInfoWatcher suitable for testing
func makeTestWatcher(t *testing.T, watches map[string]fs.FileInfo) *fileInfoWatcher {
t.Helper()
return &fileInfoWatcher{
evChan: make(chan fsnotify.Event, 512),
erChan: make(chan error, 512),
watches: watches,
}
}
// makeStateFunc returns an os.Stat wrapper that parrots back whatever its
// constructor is given
func makeStatFunc(t *testing.T, fi fs.FileInfo) func(string) (fs.FileInfo, error) {
t.Helper()
return func(_ string) (fs.FileInfo, error) {
return fi, nil
}
}
// mockFileInfo implements fs.FileInfo for mocks
type mockFileInfo struct {
name string // base name of the file
size int64 // length in bytes for regular files; system-dependent for others
mode fs.FileMode // file mode bits
modTime time.Time // modification time
}
// explicitly impements fs.FileInfo
var _ fs.FileInfo = &mockFileInfo{}
func (mfi *mockFileInfo) Name() string {
return mfi.name
}
func (mfi *mockFileInfo) Size() int64 {
return mfi.size
}
func (mfi *mockFileInfo) Mode() fs.FileMode {
return mfi.mode
}
func (mfi *mockFileInfo) ModTime() time.Time {
return mfi.modTime
}
func (mfi *mockFileInfo) IsDir() bool {
return false
}
func (mfi *mockFileInfo) Sys() any {
return "foo"
}

View File

@ -2,34 +2,49 @@ package file
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"strings"
"path/filepath"
msync "sync"
"github.com/fsnotify/fsnotify"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
"gopkg.in/yaml.v3"
"github.com/open-feature/flagd/core/pkg/utils"
)
const (
FSNOTIFY = "fsnotify"
FILEINFO = "fileinfo"
)
type Watcher interface {
Close() error
Add(name string) error
Remove(name string) error
WatchList() []string
Events() chan fsnotify.Event
Errors() chan error
}
type Sync struct {
URI string
Logger *logger.Logger
// FileType indicates the file type e.g., json, yaml/yml etc.,
fileType string
watcher *fsnotify.Watcher
ready bool
Mux *msync.RWMutex
// watchType indicates how to watch the file FSNOTIFY|FILEINFO
watchType string
watcher Watcher
ready bool
Mux *msync.RWMutex
}
func NewFileSync(uri string, logger *logger.Logger) *Sync {
func NewFileSync(uri string, watchType string, logger *logger.Logger) *Sync {
return &Sync{
URI: uri,
Logger: logger,
Mux: &msync.RWMutex{},
URI: uri,
watchType: watchType,
Logger: logger,
Mux: &msync.RWMutex{},
}
}
@ -37,18 +52,28 @@ func NewFileSync(uri string, logger *logger.Logger) *Sync {
const defaultState = "{}"
func (fs *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error {
fs.sendDataSync(ctx, sync.ALL, dataSync)
fs.sendDataSync(ctx, dataSync)
return nil
}
func (fs *Sync) Init(_ context.Context) error {
func (fs *Sync) Init(ctx context.Context) error {
fs.Logger.Info("Starting filepath sync notifier")
w, err := fsnotify.NewWatcher()
if err != nil {
return fmt.Errorf("error creating filepath watcher: %w", err)
switch fs.watchType {
case FSNOTIFY, "":
w, err := NewFSNotifyWatcher()
if err != nil {
return fmt.Errorf("error creating fsnotify watcher: %w", err)
}
fs.watcher = w
case FILEINFO:
w := NewFileInfoWatcher(ctx, fs.Logger)
fs.watcher = w
default:
return fmt.Errorf("unknown watcher type: '%s'", fs.watchType)
}
fs.watcher = w
if err = fs.watcher.Add(fs.URI); err != nil {
if err := fs.watcher.Add(fs.URI); err != nil {
return fmt.Errorf("error adding watcher %s: %w", fs.URI, err)
}
return nil
@ -69,12 +94,12 @@ func (fs *Sync) setReady(val bool) {
//nolint:funlen
func (fs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
defer fs.watcher.Close()
fs.sendDataSync(ctx, sync.ALL, dataSync)
fs.sendDataSync(ctx, dataSync)
fs.setReady(true)
fs.Logger.Info(fmt.Sprintf("watching filepath: %s", fs.URI))
for {
select {
case event, ok := <-fs.watcher.Events:
case event, ok := <-fs.watcher.Events():
if !ok {
fs.Logger.Info("filepath notifier closed")
return errors.New("filepath notifier closed")
@ -83,7 +108,7 @@ func (fs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
fs.Logger.Info(fmt.Sprintf("filepath event: %s %s", event.Name, event.Op.String()))
switch {
case event.Has(fsnotify.Create) || event.Has(fsnotify.Write):
fs.sendDataSync(ctx, sync.ALL, dataSync)
fs.sendDataSync(ctx, dataSync)
case event.Has(fsnotify.Remove):
// K8s exposes config maps as symlinks.
// Updates cause a remove event, we need to re-add the watcher in this case.
@ -91,24 +116,24 @@ func (fs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
if err != nil {
// the watcher could not be re-added, so the file must have been deleted
fs.Logger.Error(fmt.Sprintf("error restoring watcher, file may have been deleted: %s", err.Error()))
fs.sendDataSync(ctx, sync.DELETE, dataSync)
fs.sendDataSync(ctx, dataSync)
continue
}
// Counterintuitively, remove events are the only meaningful ones seen in K8s.
// K8s handles mounted ConfigMap updates by modifying symbolic links, which is an atomic operation.
// At the point the remove event is fired, we have our new data, so we can send it down the channel.
fs.sendDataSync(ctx, sync.ALL, dataSync)
fs.sendDataSync(ctx, dataSync)
case event.Has(fsnotify.Chmod):
// on linux the REMOVE event will not fire until all file descriptors are closed, this cannot happen
// while the file is being watched, os.Stat is used here to infer deletion
if _, err := os.Stat(fs.URI); errors.Is(err, os.ErrNotExist) {
fs.Logger.Error(fmt.Sprintf("file has been deleted: %s", err.Error()))
fs.sendDataSync(ctx, sync.DELETE, dataSync)
fs.sendDataSync(ctx, dataSync)
}
}
case err, ok := <-fs.watcher.Errors:
case err, ok := <-fs.watcher.Errors():
if !ok {
fs.setReady(false)
return errors.New("watcher error")
@ -122,14 +147,8 @@ func (fs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
}
}
func (fs *Sync) sendDataSync(ctx context.Context, syncType sync.Type, dataSync chan<- sync.DataSync) {
fs.Logger.Debug(fmt.Sprintf("Configuration %s: %s", fs.URI, syncType.String()))
if syncType == sync.DELETE {
// Skip fetching and emit default state to avoid EOF errors
dataSync <- sync.DataSync{FlagData: defaultState, Source: fs.URI, Type: syncType}
return
}
func (fs *Sync) sendDataSync(ctx context.Context, dataSync chan<- sync.DataSync) {
fs.Logger.Debug(fmt.Sprintf("Data sync received for %s", fs.URI))
msg := defaultState
m, err := fs.fetch(ctx)
@ -142,49 +161,29 @@ func (fs *Sync) sendDataSync(ctx context.Context, syncType sync.Type, dataSync c
msg = m
}
dataSync <- sync.DataSync{FlagData: msg, Source: fs.URI, Type: syncType}
dataSync <- sync.DataSync{FlagData: msg, Source: fs.URI}
}
func (fs *Sync) fetch(_ context.Context) (string, error) {
if fs.URI == "" {
return "", errors.New("no filepath string set")
}
if fs.fileType == "" {
uriSplit := strings.Split(fs.URI, ".")
fs.fileType = uriSplit[len(uriSplit)-1]
file, err := os.Open(fs.URI)
if err != nil {
return "", fmt.Errorf("error opening file %s: %w", fs.URI, err)
}
rawFile, err := os.ReadFile(fs.URI)
defer file.Close()
data, err := io.ReadAll(file)
if err != nil {
return "", fmt.Errorf("error reading file %s: %w", fs.URI, err)
}
switch fs.fileType {
case "yaml", "yml":
return yamlToJSON(rawFile)
case "json":
return string(rawFile), nil
default:
return "", fmt.Errorf("filepath extension for URI: '%s' is not supported", fs.URI)
}
}
// yamlToJSON is a generic helper function to convert
// yaml to json
func yamlToJSON(rawFile []byte) (string, error) {
if len(rawFile) == 0 {
return "", nil
}
var ms map[string]interface{}
// yaml.Unmarshal unmarshals to map[interface]interface{}
if err := yaml.Unmarshal(rawFile, &ms); err != nil {
return "", fmt.Errorf("unmarshal yaml: %w", err)
}
r, err := json.Marshal(ms)
// File extension is used to determine the content type, so media type is unnecessary
json, err := utils.ConvertToJSON(data, filepath.Ext(fs.URI), "")
if err != nil {
return "", fmt.Errorf("convert yaml to json: %w", err)
return "", fmt.Errorf("error converting file content to json: %w", err)
}
return string(r), err
return json, nil
}

View File

@ -26,7 +26,6 @@ func TestSimpleReSync(t *testing.T) {
expectedDataSync := sync.DataSync{
FlagData: "hello",
Source: source,
Type: sync.ALL,
}
handler := Sync{
URI: source,
@ -76,7 +75,6 @@ func TestSimpleSync(t *testing.T) {
{
FlagData: fetchFileContents,
Source: fmt.Sprintf("%s/%s", readDirName, fetchFileName),
Type: sync.ALL,
},
},
},
@ -94,12 +92,10 @@ func TestSimpleSync(t *testing.T) {
{
FlagData: fetchFileContents,
Source: fmt.Sprintf("%s/%s", updateDirName, fetchFileName),
Type: sync.ALL,
},
{
FlagData: "new content",
Source: fmt.Sprintf("%s/%s", updateDirName, fetchFileName),
Type: sync.ALL,
},
},
},
@ -117,12 +113,10 @@ func TestSimpleSync(t *testing.T) {
{
FlagData: fetchFileContents,
Source: fmt.Sprintf("%s/%s", deleteDirName, fetchFileName),
Type: sync.ALL,
},
{
FlagData: defaultState,
Source: fmt.Sprintf("%s/%s", deleteDirName, fetchFileName),
Type: sync.DELETE,
},
},
},
@ -172,9 +166,6 @@ func TestSimpleSync(t *testing.T) {
if data.Source != syncEvent.Source {
t.Errorf("expected source: %s, but received source: %s", syncEvent.Source, data.Source)
}
if data.Type != syncEvent.Type {
t.Errorf("expected type: %b, but received type: %b", syncEvent.Type, data.Type)
}
case <-time.After(10 * time.Second):
t.Errorf("event not found, timeout out after 10 seconds")
}
@ -190,7 +181,7 @@ func TestSimpleSync(t *testing.T) {
func TestFilePathSync_Fetch(t *testing.T) {
successDirName := t.TempDir()
falureDirName := t.TempDir()
failureDirName := t.TempDir()
tests := map[string]struct {
fpSync Sync
handleResponse func(t *testing.T, fetched string, err error)
@ -213,9 +204,9 @@ func TestFilePathSync_Fetch(t *testing.T) {
},
},
"not found": {
fetchDirName: falureDirName,
fetchDirName: failureDirName,
fpSync: Sync{
URI: fmt.Sprintf("%s/%s", falureDirName, "not_found"),
URI: fmt.Sprintf("%s/%s", failureDirName, "not_found"),
Logger: logger.NewLogger(nil, false),
},
handleResponse: func(t *testing.T, fetched string, err error) {
@ -309,31 +300,3 @@ func writeToFile(t *testing.T, fetchDirName, fileContents string) {
t.Fatal(err)
}
}
func TestFilePathSync_yamlToJSON(t *testing.T) {
tests := map[string]struct {
input []byte
handleResponse func(t *testing.T, output string, err error)
}{
"empty": {
input: []byte(""),
handleResponse: func(t *testing.T, output string, err error) {
if err != nil {
t.Fatalf("expect no err, got err = %v", err)
}
if output != "" {
t.Fatalf("expect output = '', got output = '%v'", output)
}
},
},
}
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
output, err := yamlToJSON(tt.input)
tt.handleResponse(t, output, err)
})
}
}

View File

@ -0,0 +1,67 @@
package file
import (
"fmt"
"github.com/fsnotify/fsnotify"
)
// Implements file.Watcher by wrapping fsnotify.Watcher
// This is only necessary because fsnotify.Watcher directly exposes its Errors
// and Events channels rather than returning them by method invocation
type fsNotifyWatcher struct {
watcher *fsnotify.Watcher
}
// NewFsNotifyWatcher returns a new fsNotifyWatcher
func NewFSNotifyWatcher() (Watcher, error) {
fsn, err := fsnotify.NewWatcher()
if err != nil {
return nil, fmt.Errorf("fsnotify: %w", err)
}
return &fsNotifyWatcher{
watcher: fsn,
}, nil
}
// explicitly implements file.Watcher
var _ Watcher = &fsNotifyWatcher{}
// Close calls close on the underlying fsnotify.Watcher
func (f *fsNotifyWatcher) Close() error {
if err := f.watcher.Close(); err != nil {
return fmt.Errorf("fsnotify: %w", err)
}
return nil
}
// Add calls Add on the underlying fsnotify.Watcher
func (f *fsNotifyWatcher) Add(name string) error {
if err := f.watcher.Add(name); err != nil {
return fmt.Errorf("fsnotify: %w", err)
}
return nil
}
// Remove calls Remove on the underlying fsnotify.Watcher
func (f *fsNotifyWatcher) Remove(name string) error {
if err := f.watcher.Remove(name); err != nil {
return fmt.Errorf("fsnotify: %w", err)
}
return nil
}
// Watchlist calls watchlist on the underlying fsnotify.Watcher
func (f *fsNotifyWatcher) WatchList() []string {
return f.watcher.WatchList()
}
// Events returns the underlying watcher's Events chan
func (f *fsNotifyWatcher) Events() chan fsnotify.Event {
return f.watcher.Events
}
// Errors returns the underlying watcher's Errors chan
func (f *fsNotifyWatcher) Errors() chan error {
return f.watcher.Errors
}

View File

@ -12,14 +12,17 @@ import (
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
grpccredential "github.com/open-feature/flagd/core/pkg/sync/grpc/credentials"
_ "github.com/open-feature/flagd/core/pkg/sync/grpc/nameresolvers" // initialize custom resolvers e.g. envoy.Init()
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
const (
// Prefix for GRPC URL inputs. GRPC does not define a standard prefix. This prefix helps to differentiate remote
// URLs for REST APIs (i.e - HTTP) from GRPC endpoints.
Prefix = "grpc://"
PrefixSecure = "grpcs://"
Prefix = "grpc://"
PrefixSecure = "grpcs://"
SupportedScheme = "(envoy|dns|uds|xds)"
// Connection retry constants
// Back off period is calculated with backOffBase ^ #retry-iteration. However, when #retry-iteration count reach
@ -41,28 +44,46 @@ type FlagSyncServiceClientResponse interface {
var once msync.Once
type Sync struct {
CertPath string
CredentialBuilder grpccredential.Builder
Logger *logger.Logger
ProviderID string
Secure bool
Selector string
URI string
GrpcDialOptionsOverride []grpc.DialOption
CertPath string
CredentialBuilder grpccredential.Builder
Logger *logger.Logger
ProviderID string
Secure bool
Selector string
URI string
MaxMsgSize int
client FlagSyncServiceClient
ready bool
}
func (g *Sync) Init(ctx context.Context) error {
tCredentials, err := g.CredentialBuilder.Build(g.Secure, g.CertPath)
if err != nil {
err := fmt.Errorf("error building transport credentials: %w", err)
g.Logger.Error(err.Error())
return err
func (g *Sync) Init(_ context.Context) error {
var rpcCon *grpc.ClientConn // Reusable client connection
var err error
if len(g.GrpcDialOptionsOverride) > 0 {
g.Logger.Debug("GRPC DialOptions override provided")
rpcCon, err = grpc.NewClient(g.URI, g.GrpcDialOptionsOverride...)
} else {
var tCredentials credentials.TransportCredentials
tCredentials, err = g.CredentialBuilder.Build(g.Secure, g.CertPath)
if err != nil {
err = fmt.Errorf("error building transport credentials: %w", err)
g.Logger.Error(err.Error())
return err
}
// Set MaxMsgSize if passed
if g.MaxMsgSize > 0 {
g.Logger.Info(fmt.Sprintf("setting max receive message size %d bytes default 4MB", g.MaxMsgSize))
dialOptions := grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(g.MaxMsgSize))
rpcCon, err = grpc.NewClient(g.URI, grpc.WithTransportCredentials(tCredentials), dialOptions)
} else {
rpcCon, err = grpc.NewClient(g.URI, grpc.WithTransportCredentials(tCredentials))
}
}
// Derive reusable client connection
rpcCon, err := grpc.DialContext(ctx, g.URI, grpc.WithTransportCredentials(tCredentials))
if err != nil {
err := fmt.Errorf("error initiating grpc client connection: %w", err)
g.Logger.Error(err.Error())
@ -76,7 +97,7 @@ func (g *Sync) Init(ctx context.Context) error {
}
func (g *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error {
res, err := g.client.FetchAllFlags(ctx, &v1.FetchAllFlagsRequest{})
res, err := g.client.FetchAllFlags(ctx, &v1.FetchAllFlagsRequest{ProviderId: g.ProviderID, Selector: g.Selector})
if err != nil {
err = fmt.Errorf("error fetching all flags: %w", err)
g.Logger.Error(err.Error())
@ -85,7 +106,6 @@ func (g *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error
dataSync <- sync.DataSync{
FlagData: res.GetFlagConfiguration(),
Source: g.URI,
Type: sync.ALL,
}
return nil
}
@ -179,9 +199,10 @@ func (g *Sync) handleFlagSync(stream syncv1grpc.FlagSyncService_SyncFlagsClient,
}
dataSync <- sync.DataSync{
FlagData: data.FlagConfiguration,
Source: g.URI,
Type: sync.ALL,
FlagData: data.FlagConfiguration,
SyncContext: data.SyncContext,
Source: g.URI,
Selector: g.Selector,
}
g.Logger.Debug("received full configuration payload")

View File

@ -16,14 +16,17 @@ import (
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
credendialsmock "github.com/open-feature/flagd/core/pkg/sync/grpc/credentials/mock"
grpcmock "github.com/open-feature/flagd/core/pkg/sync/grpc/mock"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"go.uber.org/zap"
"go.uber.org/zap/zaptest/observer"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/test/bufconn"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/structpb"
)
func Test_InitWithMockCredentialBuilder(t *testing.T) {
@ -78,6 +81,30 @@ func Test_InitWithMockCredentialBuilder(t *testing.T) {
}
}
func Test_InitWithSizeOverride(t *testing.T) {
observedZapCore, observedLogs := observer.New(zap.InfoLevel)
observedLogger := zap.New(observedZapCore)
mockCtrl := gomock.NewController(t)
mockCredentialBulder := credendialsmock.NewMockBuilder(mockCtrl)
mockCredentialBulder.EXPECT().
Build(gomock.Any(), gomock.Any()).
Return(insecure.NewCredentials(), nil)
grpcSync := Sync{
URI: "grpc-target",
Logger: logger.NewLogger(observedLogger, false),
CredentialBuilder: mockCredentialBulder,
MaxMsgSize: 10,
}
err := grpcSync.Init(context.Background())
require.Nilf(t, err, "%s: expected no error, but got non nil error", t.Name())
require.Equal(t, "setting max receive message size 10 bytes default 4MB", observedLogs.All()[0].Message)
}
func Test_ReSyncTests(t *testing.T) {
const target = "localBufCon"
@ -96,7 +123,6 @@ func Test_ReSyncTests(t *testing.T) {
notifications: []sync.DataSync{
{
FlagData: "success",
Type: sync.ALL,
},
},
shouldError: false,
@ -153,9 +179,6 @@ func Test_ReSyncTests(t *testing.T) {
for _, expected := range test.notifications {
out := <-syncChan
if expected.Type != out.Type {
t.Errorf("Returned sync type = %v, wanted %v", out.Type, expected.Type)
}
if expected.FlagData != out.FlagData {
t.Errorf("Returned sync data = %v, wanted %v", out.FlagData, expected.FlagData)
@ -169,98 +192,14 @@ func Test_ReSyncTests(t *testing.T) {
}
}
func TestSync_BasicFlagSyncStates(t *testing.T) {
grpcSyncImpl := Sync{
URI: "grpc://test",
ProviderID: "",
Logger: logger.NewLogger(nil, false),
}
mockError := errors.New("could not sync")
tests := []struct {
name string
stream syncv1grpc.FlagSyncService_SyncFlagsClient
setup func(t *testing.T, client *grpcmock.MockFlagSyncServiceClient, clientResponse *grpcmock.MockFlagSyncServiceClientResponse)
want sync.Type
wantError error
ready bool
}{
{
name: "State All maps to Sync All",
setup: func(t *testing.T, client *grpcmock.MockFlagSyncServiceClient, clientResponse *grpcmock.MockFlagSyncServiceClientResponse) {
client.EXPECT().SyncFlags(gomock.Any(), gomock.Any(), gomock.Any()).Return(clientResponse, nil)
gomock.InOrder(
clientResponse.EXPECT().Recv().Return(
&v1.SyncFlagsResponse{
FlagConfiguration: "{}",
},
nil,
),
clientResponse.EXPECT().Recv().Return(
nil, io.EOF,
),
)
},
want: sync.ALL,
ready: true,
},
{
name: "Error during flag sync",
setup: func(t *testing.T, client *grpcmock.MockFlagSyncServiceClient, clientResponse *grpcmock.MockFlagSyncServiceClientResponse) {
client.EXPECT().SyncFlags(gomock.Any(), gomock.Any(), gomock.Any()).Return(clientResponse, nil)
clientResponse.EXPECT().Recv().Return(
nil,
mockError,
)
},
ready: true,
want: -1,
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
ctrl := gomock.NewController(t)
syncChan := make(chan sync.DataSync, 1)
mockClient := grpcmock.NewMockFlagSyncServiceClient(ctrl)
mockClientResponse := grpcmock.NewMockFlagSyncServiceClientResponse(ctrl)
test.setup(t, mockClient, mockClientResponse)
waitChan := make(chan struct{})
go func() {
grpcSyncImpl.client = mockClient
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()
err := grpcSyncImpl.Sync(ctx, syncChan)
if err != nil {
t.Errorf("Error handling flag sync: %v", err)
}
close(waitChan)
}()
<-waitChan
if test.want < 0 {
require.Empty(t, syncChan)
return
}
data := <-syncChan
if grpcSyncImpl.IsReady() != test.ready {
t.Errorf("expected grpcSyncImpl.ready to be: '%v', got: '%v'", test.ready, grpcSyncImpl.ready)
}
if data.Type != test.want {
t.Errorf("Returned data sync state = %v, wanted %v", data.Type, test.want)
}
})
}
}
func Test_StreamListener(t *testing.T) {
const target = "localBufCon"
metadata, err := structpb.NewStruct(map[string]any{"sources": "A,B,C"})
if err != nil {
t.Fatalf("Failed to create sync context: %v", err)
}
tests := []struct {
name string
input []serverPayload
@ -275,8 +214,8 @@ func Test_StreamListener(t *testing.T) {
},
output: []sync.DataSync{
{
FlagData: "{\"flags\": {}}",
Type: sync.ALL,
FlagData: "{\"flags\": {}}",
SyncContext: metadata,
},
},
},
@ -292,12 +231,12 @@ func Test_StreamListener(t *testing.T) {
},
output: []sync.DataSync{
{
FlagData: "{}",
Type: sync.ALL,
FlagData: "{}",
SyncContext: metadata,
},
{
FlagData: "{\"flags\": {}}",
Type: sync.ALL,
FlagData: "{\"flags\": {}}",
SyncContext: metadata,
},
},
},
@ -350,13 +289,13 @@ func Test_StreamListener(t *testing.T) {
for _, expected := range test.output {
out := <-syncChan
if expected.Type != out.Type {
t.Errorf("Returned sync type = %v, wanted %v", out.Type, expected.Type)
}
if expected.FlagData != out.FlagData {
t.Errorf("Returned sync data = %v, wanted %v", out.FlagData, expected.FlagData)
}
if !proto.Equal(expected.SyncContext, out.SyncContext) {
t.Errorf("Returned sync context = %v, wanted = %v", out.SyncContext, expected.SyncContext)
}
}
// channel must be empty
@ -440,8 +379,7 @@ func Test_SyncRetry(t *testing.T) {
// Setup
target := "grpc://local"
bufListener := bufconn.Listen(1)
expectType := sync.ALL
emptyFlagData := "{}"
// buffer based server. response ignored purposefully
bServer := bufferedServer{listener: bufListener, mockResponses: []serverPayload{
@ -495,7 +433,7 @@ func Test_SyncRetry(t *testing.T) {
t.Errorf("timeout waiting for conditions to fulfil")
break
case data := <-syncChan:
if data.Type != expectType {
if data.FlagData != emptyFlagData {
t.Errorf("sync start error: %s", err.Error())
}
}
@ -515,9 +453,9 @@ func Test_SyncRetry(t *testing.T) {
case <-tCtx.Done():
cancelFunc()
t.Error("timeout waiting for conditions to fulfil")
case rsp := <-syncChan:
if rsp.Type != expectType {
t.Errorf("expected response: %s, but got: %s", expectType, rsp.Type)
case data := <-syncChan:
if data.FlagData != emptyFlagData {
t.Errorf("sync start error: %s", err.Error())
}
}
}
@ -549,8 +487,10 @@ type bufferedServer struct {
func (b *bufferedServer) SyncFlags(_ *v1.SyncFlagsRequest, stream syncv1grpc.FlagSyncService_SyncFlagsServer) error {
for _, response := range b.mockResponses {
metadata, _ := structpb.NewStruct(map[string]any{"sources": "A,B,C"})
err := stream.Send(&v1.SyncFlagsResponse{
FlagConfiguration: response.flags,
SyncContext: metadata,
})
if err != nil {
fmt.Printf("Error with stream: %s", err.Error())

View File

@ -0,0 +1,84 @@
package nameresolvers
import (
"fmt"
"strings"
"google.golang.org/grpc/resolver"
)
const scheme = "envoy"
type envoyBuilder struct{}
// Build A custom NameResolver to resolve gRPC target uri for envoy in the
// format of.
//
// Custom URI Scheme:
//
// envoy://[proxy-agent-host]:[proxy-agent-port]/[service-name]
func (*envoyBuilder) Build(target resolver.Target,
cc resolver.ClientConn, _ resolver.BuildOptions,
) (resolver.Resolver, error) {
_, err := isValidTarget(target)
if err != nil {
return nil, err
}
r := &envoyResolver{
target: target,
cc: cc,
}
r.start()
return r, nil
}
func (*envoyBuilder) Scheme() string {
return scheme
}
type envoyResolver struct {
target resolver.Target
cc resolver.ClientConn
}
// Envoy NameResolver, will always override the authority with the specified authority i.e. URL.path and
// use the socketAddress i.e. Host:Port to connect.
func (r *envoyResolver) start() {
addr := fmt.Sprintf("%s:%s", r.target.URL.Hostname(), r.target.URL.Port())
err := r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: addr}}})
if err != nil {
return
}
}
func (*envoyResolver) ResolveNow(resolver.ResolveNowOptions) {}
func (*envoyResolver) Close() {}
// Validate user specified target
//
// Sample target string: envoy://localhost:9211/test.service
//
// return `true` if the target string used match the scheme and format
func isValidTarget(target resolver.Target) (bool, error) {
// make sure and host and port not empty
// used as resolver.Address
if target.URL.Scheme != "envoy" || target.URL.Hostname() == "" || target.URL.Port() == "" {
return false, fmt.Errorf("envoy-resolver: invalid scheme or missing host/port, target: %s",
target)
}
// make sure the path is valid
// used as :authority e.g. test.service
path := target.Endpoint()
if path == "" || strings.Contains(path, "/") {
return false, fmt.Errorf("envoy-resolver: invalid path %s", path)
}
return true, nil
}
func init() {
resolver.Register(&envoyBuilder{})
}

View File

@ -0,0 +1,103 @@
package nameresolvers
import (
"net/url"
"testing"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/resolver"
)
func Test_EnvoyTargetString(t *testing.T) {
tests := []struct {
name string
mockURL url.URL
mockError string
shouldError bool
}{
{
name: "Should be valid string",
mockURL: url.URL{
Scheme: "envoy",
Host: "localhost:8080",
Path: "/test.service",
},
mockError: "",
shouldError: false,
},
{
name: "Should be valid scheme",
mockURL: url.URL{
Scheme: "invalid",
Host: "localhost:8080",
Path: "/test.service",
},
mockError: "envoy-resolver: invalid scheme or missing host/port, target: invalid://localhost:8080/test.service",
shouldError: true,
},
{
name: "Should be valid path",
mockURL: url.URL{
Scheme: "envoy",
Host: "localhost:8080",
Path: "/test.service/test",
},
mockError: "envoy-resolver: invalid path test.service/test",
shouldError: true,
},
{
name: "Should be valid path",
mockURL: url.URL{
Scheme: "envoy",
Host: "localhost:8080",
Path: "/test.service/",
},
mockError: "envoy-resolver: invalid path test.service/",
shouldError: true,
},
{
name: "Hostname should not be empty",
mockURL: url.URL{
Scheme: "envoy",
Host: ":8080",
Path: "/test.service",
},
mockError: "envoy-resolver: invalid scheme or missing host/port, target: envoy://:8080/test.service",
shouldError: true,
},
{
name: "Port should not be empty",
mockURL: url.URL{
Scheme: "envoy",
Host: "localhost",
Path: "/test.service",
},
mockError: "envoy-resolver: invalid scheme or missing host/port, target: envoy://localhost/test.service",
shouldError: true,
},
{
name: "Hostname and Port should not be empty",
mockURL: url.URL{
Scheme: "envoy",
Path: "/test.service",
},
mockError: "envoy-resolver: invalid scheme or missing host/port, target: envoy:///test.service",
shouldError: true,
},
}
for _, test := range tests {
target := resolver.Target{URL: test.mockURL}
isValid, err := isValidTarget(target)
if test.shouldError {
require.False(t, isValid, "Should not be valid")
require.NotNilf(t, err, "Error should not be nil")
require.Containsf(t, err.Error(), test.mockError, "Error should contains %s", test.mockError)
} else {
require.True(t, isValid, "Should be valid")
require.NoErrorf(t, err, "Error should be nil")
}
}
}

View File

@ -8,9 +8,12 @@ import (
"fmt"
"io"
"net/http"
parseUrl "net/url"
"path/filepath"
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
"github.com/open-feature/flagd/core/pkg/utils"
"golang.org/x/crypto/sha3" //nolint:gosec
)
@ -24,6 +27,7 @@ type Sync struct {
AuthHeader string
Interval uint32
ready bool
eTag string
}
// Client defines the behaviour required of a http client
@ -39,11 +43,11 @@ type Cron interface {
}
func (hs *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error {
msg, err := hs.Fetch(ctx)
msg, _, err := hs.fetchBody(ctx, true)
if err != nil {
return err
}
dataSync <- sync.DataSync{FlagData: msg, Source: hs.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: msg, Source: hs.URI}
return nil
}
@ -60,7 +64,7 @@ func (hs *Sync) IsReady() bool {
func (hs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
// Initial fetch
fetch, err := hs.Fetch(ctx)
fetch, _, err := hs.fetchBody(ctx, true)
if err != nil {
return err
}
@ -71,43 +75,30 @@ func (hs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
hs.Logger.Debug(fmt.Sprintf("polling %s every %d seconds", hs.URI, hs.Interval))
_ = hs.Cron.AddFunc(fmt.Sprintf("*/%d * * * *", hs.Interval), func() {
hs.Logger.Debug(fmt.Sprintf("fetching configuration from %s", hs.URI))
body, err := hs.fetchBodyFromURL(ctx, hs.URI)
previousBodySHA := hs.LastBodySHA
body, noChange, err := hs.fetchBody(ctx, false)
if err != nil {
hs.Logger.Error(err.Error())
hs.Logger.Error(fmt.Sprintf("error fetching: %s", err.Error()))
return
}
if len(body) == 0 {
if body == "" && !noChange {
hs.Logger.Debug("configuration deleted")
} else {
if hs.LastBodySHA == "" {
hs.Logger.Debug("new configuration created")
msg, err := hs.Fetch(ctx)
if err != nil {
hs.Logger.Error(fmt.Sprintf("error fetching: %s", err.Error()))
} else {
dataSync <- sync.DataSync{FlagData: msg, Source: hs.URI, Type: sync.ALL}
}
} else {
currentSHA := hs.generateSha(body)
if hs.LastBodySHA != currentSHA {
hs.Logger.Debug("configuration modified")
msg, err := hs.Fetch(ctx)
if err != nil {
hs.Logger.Error(fmt.Sprintf("error fetching: %s", err.Error()))
} else {
dataSync <- sync.DataSync{FlagData: msg, Source: hs.URI, Type: sync.ALL}
}
}
return
}
hs.LastBodySHA = currentSHA
}
if previousBodySHA == "" {
hs.Logger.Debug("configuration created")
dataSync <- sync.DataSync{FlagData: body, Source: hs.URI}
} else if previousBodySHA != hs.LastBodySHA {
hs.Logger.Debug("configuration updated")
dataSync <- sync.DataSync{FlagData: body, Source: hs.URI}
}
})
hs.Cron.Start()
dataSync <- sync.DataSync{FlagData: fetch, Source: hs.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: fetch, Source: hs.URI}
<-ctx.Done()
hs.Cron.Stop()
@ -115,13 +106,18 @@ func (hs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
return nil
}
func (hs *Sync) fetchBodyFromURL(ctx context.Context, url string) ([]byte, error) {
req, err := http.NewRequestWithContext(ctx, "GET", url, bytes.NewBuffer(nil))
func (hs *Sync) fetchBody(ctx context.Context, fetchAll bool) (string, bool, error) {
if hs.URI == "" {
return "", false, errors.New("no HTTP URL string set")
}
req, err := http.NewRequestWithContext(ctx, "GET", hs.URI, bytes.NewBuffer(nil))
if err != nil {
return nil, fmt.Errorf("error creating request for url %s: %w", url, err)
return "", false, fmt.Errorf("error creating request for url %s: %w", hs.URI, err)
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Accept", "application/yaml")
if hs.AuthHeader != "" {
req.Header.Set("Authorization", hs.AuthHeader)
@ -130,23 +126,60 @@ func (hs *Sync) fetchBodyFromURL(ctx context.Context, url string) ([]byte, error
req.Header.Set("Authorization", bearer)
}
if hs.eTag != "" && !fetchAll {
req.Header.Set("If-None-Match", hs.eTag)
}
resp, err := hs.Client.Do(req)
if err != nil {
return nil, fmt.Errorf("error calling endpoint %s: %w", url, err)
return "", false, fmt.Errorf("error calling endpoint %s: %w", hs.URI, err)
}
defer func() {
err = resp.Body.Close()
if err != nil {
hs.Logger.Debug(fmt.Sprintf("error closing the response body: %s", err.Error()))
hs.Logger.Error(fmt.Sprintf("error closing the response body: %s", err.Error()))
}
}()
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, fmt.Errorf("unable to read body to bytes: %w", err)
if resp.StatusCode == 304 {
hs.Logger.Debug("no changes detected")
return "", true, nil
}
return body, nil
statusOK := resp.StatusCode >= 200 && resp.StatusCode < 300
if !statusOK {
return "", false, fmt.Errorf("error fetching from url %s: %s", hs.URI, resp.Status)
}
if resp.Header.Get("ETag") != "" {
hs.eTag = resp.Header.Get("ETag")
}
body, err := io.ReadAll(resp.Body)
if err != nil {
return "", false, fmt.Errorf("unable to read body to bytes: %w", err)
}
json, err := utils.ConvertToJSON(body, getFileExtensions(hs.URI), resp.Header.Get("Content-Type"))
if err != nil {
return "", false, fmt.Errorf("error converting response body to json: %w", err)
}
if json != "" {
hs.LastBodySHA = hs.generateSha([]byte(body))
}
return json, false, nil
}
// getFileExtensions returns the file extension from the URL path
func getFileExtensions(url string) string {
u, err := parseUrl.Parse(url)
if err != nil {
return ""
}
return filepath.Ext(u.Path)
}
func (hs *Sync) generateSha(body []byte) string {
@ -156,17 +189,6 @@ func (hs *Sync) generateSha(body []byte) string {
}
func (hs *Sync) Fetch(ctx context.Context) (string, error) {
if hs.URI == "" {
return "", errors.New("no HTTP URL string set")
}
body, err := hs.fetchBodyFromURL(ctx, hs.URI)
if err != nil {
return "", err
}
if len(body) != 0 {
hs.LastBodySHA = hs.generateSha(body)
}
return string(body), nil
body, _, err := hs.fetchBody(ctx, false)
return body, err
}

View File

@ -5,7 +5,6 @@ import (
"io"
"log"
"net/http"
"reflect"
"strings"
"testing"
"time"
@ -13,24 +12,29 @@ import (
"github.com/open-feature/flagd/core/pkg/logger"
"github.com/open-feature/flagd/core/pkg/sync"
syncmock "github.com/open-feature/flagd/core/pkg/sync/http/mock"
synctesting "github.com/open-feature/flagd/core/pkg/sync/testing"
"go.uber.org/mock/gomock"
)
func TestSimpleSync(t *testing.T) {
ctrl := gomock.NewController(t)
resp := "test response"
mockCron := syncmock.NewMockCron(ctrl)
mockCron.EXPECT().AddFunc(gomock.Any(), gomock.Any()).DoAndReturn(func(spec string, cmd func()) error {
mockCron := synctesting.NewMockCron(ctrl)
mockCron.EXPECT().AddFunc(gomock.Any(), gomock.Any()).DoAndReturn(func(_ string, _ func()) error {
return nil
})
mockCron.EXPECT().Start().Times(1)
mockClient := syncmock.NewMockClient(ctrl)
mockClient.EXPECT().Do(gomock.Any()).Return(&http.Response{Body: io.NopCloser(strings.NewReader(resp))}, nil)
responseBody := "test response"
resp := &http.Response{
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader(responseBody)),
StatusCode: http.StatusOK,
}
mockClient.EXPECT().Do(gomock.Any()).Return(resp, nil)
httpSync := Sync{
URI: "http://localhost",
URI: "http://localhost/flags",
Client: mockClient,
Cron: mockCron,
LastBodySHA: "",
@ -50,8 +54,51 @@ func TestSimpleSync(t *testing.T) {
data := <-dataSyncChan
if data.FlagData != resp {
t.Errorf("expected content: %s, but received content: %s", resp, data.FlagData)
if data.FlagData != responseBody {
t.Errorf("expected content: %s, but received content: %s", responseBody, data.FlagData)
}
}
func TestExtensionWithQSSync(t *testing.T) {
ctrl := gomock.NewController(t)
mockCron := synctesting.NewMockCron(ctrl)
mockCron.EXPECT().AddFunc(gomock.Any(), gomock.Any()).DoAndReturn(func(_ string, _ func()) error {
return nil
})
mockCron.EXPECT().Start().Times(1)
mockClient := syncmock.NewMockClient(ctrl)
responseBody := "test response"
resp := &http.Response{
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader(responseBody)),
StatusCode: http.StatusOK,
}
mockClient.EXPECT().Do(gomock.Any()).Return(resp, nil)
httpSync := Sync{
URI: "http://localhost/flags.json?env=dev",
Client: mockClient,
Cron: mockCron,
LastBodySHA: "",
Logger: logger.NewLogger(nil, false),
}
ctx := context.Background()
dataSyncChan := make(chan sync.DataSync)
go func() {
err := httpSync.Sync(ctx, dataSyncChan)
if err != nil {
log.Fatalf("Error start sync: %s", err.Error())
return
}
}()
data := <-dataSyncChan
if data.FlagData != responseBody {
t.Errorf("expected content: %s, but received content: %s", responseBody, data.FlagData)
}
}
@ -63,13 +110,16 @@ func TestHTTPSync_Fetch(t *testing.T) {
uri string
bearerToken string
authHeader string
eTagHeader string
lastBodySHA string
handleResponse func(*testing.T, Sync, string, error)
}{
"success": {
setup: func(t *testing.T, client *syncmock.MockClient) {
setup: func(_ *testing.T, client *syncmock.MockClient) {
client.EXPECT().Do(gomock.Any()).Return(&http.Response{
Body: io.NopCloser(strings.NewReader("test response")),
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader("test response")),
StatusCode: http.StatusOK,
}, nil)
},
uri: "http://localhost",
@ -84,17 +134,19 @@ func TestHTTPSync_Fetch(t *testing.T) {
},
},
"return an error if no uri": {
setup: func(t *testing.T, client *syncmock.MockClient) {},
handleResponse: func(t *testing.T, _ Sync, fetched string, err error) {
setup: func(_ *testing.T, _ *syncmock.MockClient) {},
handleResponse: func(t *testing.T, _ Sync, _ string, err error) {
if err == nil {
t.Error("expected err, got nil")
}
},
},
"update last body sha": {
setup: func(t *testing.T, client *syncmock.MockClient) {
setup: func(_ *testing.T, client *syncmock.MockClient) {
client.EXPECT().Do(gomock.Any()).Return(&http.Response{
Body: io.NopCloser(strings.NewReader("test response")),
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader("test response")),
StatusCode: http.StatusOK,
}, nil)
},
uri: "http://localhost",
@ -120,7 +172,11 @@ func TestHTTPSync_Fetch(t *testing.T) {
if actualAuthHeader != "Bearer "+expectedToken {
t.Fatalf("expected Authorization header to be 'Bearer %s', got %s", expectedToken, actualAuthHeader)
}
return &http.Response{Body: io.NopCloser(strings.NewReader("test response"))}, nil
return &http.Response{
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader("test response")),
StatusCode: http.StatusOK,
}, nil
})
},
uri: "http://localhost",
@ -147,7 +203,11 @@ func TestHTTPSync_Fetch(t *testing.T) {
if actualAuthHeader != expectedHeader {
t.Fatalf("expected Authorization header to be '%s', got %s", expectedHeader, actualAuthHeader)
}
return &http.Response{Body: io.NopCloser(strings.NewReader("test response"))}, nil
return &http.Response{
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader("test response")),
StatusCode: http.StatusOK,
}, nil
})
},
uri: "http://localhost",
@ -166,6 +226,100 @@ func TestHTTPSync_Fetch(t *testing.T) {
}
},
},
"unauthorized request": {
setup: func(_ *testing.T, client *syncmock.MockClient) {
client.EXPECT().Do(gomock.Any()).Return(&http.Response{
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader("test response")),
StatusCode: http.StatusUnauthorized,
}, nil)
},
uri: "http://localhost",
handleResponse: func(t *testing.T, _ Sync, _ string, err error) {
if err == nil {
t.Fatalf("expected unauthorized request to return an error")
}
},
},
"not modified response etag matched": {
setup: func(t *testing.T, client *syncmock.MockClient) {
expectedIfNoneMatch := `"1af17a664e3fa8e419b8ba05c2a173169df76162a5a286e0c405b460d478f7ef"`
client.EXPECT().Do(gomock.Any()).DoAndReturn(func(req *http.Request) (*http.Response, error) {
actualIfNoneMatch := req.Header.Get("If-None-Match")
if actualIfNoneMatch != expectedIfNoneMatch {
t.Fatalf("expected If-None-Match header to be '%s', got %s", expectedIfNoneMatch, actualIfNoneMatch)
}
return &http.Response{
Header: map[string][]string{"ETag": {expectedIfNoneMatch}},
Body: io.NopCloser(strings.NewReader("")),
StatusCode: http.StatusNotModified,
}, nil
})
},
uri: "http://localhost",
eTagHeader: `"1af17a664e3fa8e419b8ba05c2a173169df76162a5a286e0c405b460d478f7ef"`,
handleResponse: func(t *testing.T, httpSync Sync, _ string, err error) {
if err != nil {
t.Fatalf("fetch: %v", err)
}
expectedLastBodySHA := ""
expectedETag := `"1af17a664e3fa8e419b8ba05c2a173169df76162a5a286e0c405b460d478f7ef"`
if httpSync.LastBodySHA != expectedLastBodySHA {
t.Errorf(
"expected last body sha to be: '%s', got: '%s'", expectedLastBodySHA, httpSync.LastBodySHA,
)
}
if httpSync.eTag != expectedETag {
t.Errorf(
"expected last etag to be: '%s', got: '%s'", expectedETag, httpSync.eTag,
)
}
},
},
"modified response etag mismatched": {
setup: func(t *testing.T, client *syncmock.MockClient) {
expectedIfNoneMatch := `"1af17a664e3fa8e419b8ba05c2a173169df76162a5a286e0c405b460d478f7ef"`
client.EXPECT().Do(gomock.Any()).DoAndReturn(func(req *http.Request) (*http.Response, error) {
actualIfNoneMatch := req.Header.Get("If-None-Match")
if actualIfNoneMatch != expectedIfNoneMatch {
t.Fatalf("expected If-None-Match header to be '%s', got %s", expectedIfNoneMatch, actualIfNoneMatch)
}
newContent := "\"Hey there!\""
newETag := `"c2e01ce63d90109c4c7f4f6dcea97ed1bb2b51e3647f36caf5acbe27413a24bb"`
return &http.Response{
Header: map[string][]string{
"Content-Type": {"application/json"},
"Etag": {newETag},
},
Body: io.NopCloser(strings.NewReader(newContent)),
StatusCode: http.StatusOK,
}, nil
})
},
uri: "http://localhost",
eTagHeader: `"1af17a664e3fa8e419b8ba05c2a173169df76162a5a286e0c405b460d478f7ef"`,
handleResponse: func(t *testing.T, httpSync Sync, _ string, err error) {
if err != nil {
t.Fatalf("fetch: %v", err)
}
expectedLastBodySHA := "wuAc5j2QEJxMf09tzql-0bsrUeNkfzbK9ay-J0E6JLs="
expectedETag := `"c2e01ce63d90109c4c7f4f6dcea97ed1bb2b51e3647f36caf5acbe27413a24bb"`
if httpSync.LastBodySHA != expectedLastBodySHA {
t.Errorf(
"expected last body sha to be: '%s', got: '%s'", expectedLastBodySHA, httpSync.LastBodySHA,
)
}
if httpSync.eTag != expectedETag {
t.Errorf(
"expected last etag to be: '%s', got: '%s'", expectedETag, httpSync.eTag,
)
}
},
},
}
for name, tt := range tests {
@ -181,6 +335,7 @@ func TestHTTPSync_Fetch(t *testing.T) {
AuthHeader: tt.authHeader,
LastBodySHA: tt.lastBodySHA,
Logger: logger.NewLogger(nil, false),
eTag: tt.eTagHeader,
}
fetched, err := httpSync.Fetch(context.Background())
@ -214,6 +369,8 @@ func TestSync_Init(t *testing.T) {
func TestHTTPSync_Resync(t *testing.T) {
ctrl := gomock.NewController(t)
source := "http://localhost"
emptyFlagData := "{}"
tests := map[string]struct {
setup func(t *testing.T, client *syncmock.MockClient)
@ -225,12 +382,14 @@ func TestHTTPSync_Resync(t *testing.T) {
wantNotifications []sync.DataSync
}{
"success": {
setup: func(t *testing.T, client *syncmock.MockClient) {
setup: func(_ *testing.T, client *syncmock.MockClient) {
client.EXPECT().Do(gomock.Any()).Return(&http.Response{
Body: io.NopCloser(strings.NewReader("test response")),
Header: map[string][]string{"Content-Type": {"application/json"}},
Body: io.NopCloser(strings.NewReader(emptyFlagData)),
StatusCode: http.StatusOK,
}, nil)
},
uri: "http://localhost",
uri: source,
handleResponse: func(t *testing.T, _ Sync, fetched string, err error) {
if err != nil {
t.Fatalf("fetch: %v", err)
@ -243,15 +402,14 @@ func TestHTTPSync_Resync(t *testing.T) {
wantErr: false,
wantNotifications: []sync.DataSync{
{
Type: sync.ALL,
FlagData: "",
Source: "",
FlagData: emptyFlagData,
Source: source,
},
},
},
"error response": {
setup: func(t *testing.T, client *syncmock.MockClient) {},
handleResponse: func(t *testing.T, _ Sync, fetched string, err error) {
setup: func(_ *testing.T, _ *syncmock.MockClient) {},
handleResponse: func(t *testing.T, _ Sync, _ string, err error) {
if err == nil {
t.Error("expected err, got nil")
}
@ -287,8 +445,8 @@ func TestHTTPSync_Resync(t *testing.T) {
for _, dataSync := range tt.wantNotifications {
select {
case x := <-d:
if !reflect.DeepEqual(x.String(), dataSync.String()) {
t.Error("unexpected datasync received", x, dataSync)
if x.FlagData != dataSync.FlagData || x.Source != dataSync.Source {
t.Errorf("unexpected datasync received %v vs %v", x, dataSync)
}
case <-time.After(2 * time.Second):
t.Error("expected datasync not received", dataSync)

View File

@ -53,64 +53,3 @@ func (mr *MockClientMockRecorder) Do(req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockClient)(nil).Do), req)
}
// MockCron is a mock of Cron interface.
type MockCron struct {
ctrl *gomock.Controller
recorder *MockCronMockRecorder
}
// MockCronMockRecorder is the mock recorder for MockCron.
type MockCronMockRecorder struct {
mock *MockCron
}
// NewMockCron creates a new mock instance.
func NewMockCron(ctrl *gomock.Controller) *MockCron {
mock := &MockCron{ctrl: ctrl}
mock.recorder = &MockCronMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCron) EXPECT() *MockCronMockRecorder {
return m.recorder
}
// AddFunc mocks base method.
func (m *MockCron) AddFunc(spec string, cmd func()) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddFunc", spec, cmd)
ret0, _ := ret[0].(error)
return ret0
}
// AddFunc indicates an expected call of AddFunc.
func (mr *MockCronMockRecorder) AddFunc(spec, cmd any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFunc", reflect.TypeOf((*MockCron)(nil).AddFunc), spec, cmd)
}
// Start mocks base method.
func (m *MockCron) Start() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start")
}
// Start indicates an expected call of Start.
func (mr *MockCronMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockCron)(nil).Start))
}
// Stop mocks base method.
func (m *MockCron) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockCronMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockCron)(nil).Stop))
}

View File

@ -2,37 +2,10 @@ package sync
import (
"context"
"google.golang.org/protobuf/types/known/structpb"
)
type Type int
// Type of the sync operation
const (
// ALL - All flags of sync provider. This is the default if unset due to primitive default
ALL Type = iota
// ADD - Additional flags from sync provider
ADD
// UPDATE - Update for flag(s) previously provided
UPDATE
// DELETE - Delete for flag(s) previously provided
DELETE
)
func (t Type) String() string {
switch t {
case ALL:
return "ALL"
case ADD:
return "ADD"
case UPDATE:
return "UPDATE"
case DELETE:
return "DELETE"
default:
return "UNKNOWN"
}
}
/*
ISync implementations watch for changes in the flag sources (HTTP backend, local file, K8s CRDs ...),fetch the latest
value and communicate to the Runtime with DataSync channel
@ -55,9 +28,10 @@ type ISync interface {
// DataSync is the data contract between Runtime and sync implementations
type DataSync struct {
FlagData string
Source string
Type
FlagData string
SyncContext *structpb.Struct
Source string
Selector string
}
// SourceConfig is configuration option for flagd. This maps to startup parameter sources
@ -72,4 +46,5 @@ type SourceConfig struct {
ProviderID string `json:"providerID,omitempty"`
Selector string `json:"selector,omitempty"`
Interval uint32 `json:"interval,omitempty"`
MaxMsgSize int `json:"maxMsgSize,omitempty"`
}

View File

@ -57,7 +57,7 @@ func (k *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error
if err != nil {
return fmt.Errorf("unable to fetch flag configuration: %w", err)
}
dataSync <- sync.DataSync{FlagData: fetch, Source: k.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: fetch, Source: k.URI}
return nil
}
@ -97,7 +97,7 @@ func (k *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
return err
}
dataSync <- sync.DataSync{FlagData: fetch, Source: k.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: fetch, Source: k.URI}
notifies := make(chan INotify)
@ -136,7 +136,7 @@ func (k *Sync) watcher(ctx context.Context, notifies chan INotify, dataSync chan
continue
}
dataSync <- sync.DataSync{FlagData: msg, Source: k.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: msg, Source: k.URI}
case DefaultEventTypeModify:
k.logger.Debug("Configuration modified")
msg, err := k.fetch(ctx)
@ -145,7 +145,7 @@ func (k *Sync) watcher(ctx context.Context, notifies chan INotify, dataSync chan
continue
}
dataSync <- sync.DataSync{FlagData: msg, Source: k.URI, Type: sync.ALL}
dataSync <- sync.DataSync{FlagData: msg, Source: k.URI}
case DefaultEventTypeDelete:
k.logger.Debug("configuration deleted")
case DefaultEventTypeReady:

View File

@ -370,7 +370,7 @@ func Test_updateFuncHandler(t *testing.T) {
func TestSync_fetch(t *testing.T) {
flagSpec := v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{},
Flags: v1beta1.Flags{FlagsMap: map[string]v1beta1.Flag{}},
}
validCfg := v1beta1.FeatureFlag{
@ -477,7 +477,7 @@ func TestSync_fetch(t *testing.T) {
func TestSync_watcher(t *testing.T) {
flagSpec := v1beta1.FeatureFlagSpec{
FlagSpec: v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{},
Flags: v1beta1.Flags{FlagsMap: map[string]v1beta1.Flag{}},
},
}
@ -607,6 +607,7 @@ func TestInit(t *testing.T) {
func TestSync_ReSync(t *testing.T) {
const name = "myFF"
const ns = "myNS"
const payload = "{\"flags\":null}"
s := runtime.NewScheme()
ff := &unstructured.Unstructured{}
ff.SetUnstructuredContent(getCFG(name, ns))
@ -668,8 +669,8 @@ func TestSync_ReSync(t *testing.T) {
i := tt.countMsg
for i > 0 {
d := <-dataChannel
if d.Type != sync.ALL {
t.Errorf("Expected %v, got %v", sync.ALL, d)
if d.FlagData != payload {
t.Errorf("Expected %v, got %v", payload, d.FlagData)
}
i--
}
@ -854,9 +855,11 @@ func TestMeasure(t *testing.T) {
res, err := marshallFeatureFlagSpec(&v1beta1.FeatureFlag{
Spec: v1beta1.FeatureFlagSpec{
FlagSpec: v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{
"flag": {
DefaultVariant: "kubernetes",
Flags: v1beta1.Flags{
FlagsMap: map[string]v1beta1.Flag{
"flag": {
DefaultVariant: "kubernetes",
},
},
},
},

View File

@ -0,0 +1,74 @@
package testing
import (
"reflect"
"go.uber.org/mock/gomock"
)
// MockCron is a mock of Cron interface.
type MockCron struct {
ctrl *gomock.Controller
recorder *MockCronMockRecorder
cmd func()
}
// MockCronMockRecorder is the mock recorder for MockCron.
type MockCronMockRecorder struct {
mock *MockCron
}
// NewMockCron creates a new mock instance.
func NewMockCron(ctrl *gomock.Controller) *MockCron {
mock := &MockCron{ctrl: ctrl}
mock.recorder = &MockCronMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCron) EXPECT() *MockCronMockRecorder {
return m.recorder
}
// AddFunc mocks base method.
func (m *MockCron) AddFunc(spec string, cmd func()) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddFunc", spec, cmd)
ret0, _ := ret[0].(error)
m.cmd = cmd
return ret0
}
func (m *MockCron) Tick() {
m.cmd()
}
// AddFunc indicates an expected call of AddFunc.
func (mr *MockCronMockRecorder) AddFunc(spec, cmd any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFunc", reflect.TypeOf((*MockCron)(nil).AddFunc), spec, cmd)
}
// Start mocks base method.
func (m *MockCron) Start() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start")
}
// Start indicates an expected call of Start.
func (mr *MockCronMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockCron)(nil).Start))
}
// Stop mocks base method.
func (m *MockCron) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockCronMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockCron)(nil).Stop))
}

View File

@ -2,11 +2,15 @@ package telemetry
import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"os"
"time"
"connectrpc.com/connect"
"connectrpc.com/otelconnect"
"github.com/open-feature/flagd/core/pkg/certreloader"
"github.com/open-feature/flagd/core/pkg/logger"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
@ -17,21 +21,29 @@ import (
"go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/resource"
"go.opentelemetry.io/otel/sdk/trace"
semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
"go.uber.org/zap"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
)
const (
metricsExporterOtel = "otel"
exportInterval = 2 * time.Second
)
type CollectorConfig struct {
Target string
CertPath string
KeyPath string
ReloadInterval time.Duration
CAPath string
}
// Config of the telemetry runtime. These are expected to be mapped to start-up arguments
type Config struct {
MetricsExporter string
CollectorTarget string
CollectorConfig CollectorConfig
}
func RegisterErrorHandling(log *logger.Logger) {
@ -43,7 +55,7 @@ func RegisterErrorHandling(log *logger.Logger) {
// BuildMetricsRecorder is a helper to build telemetry.MetricsRecorder based on configurations
func BuildMetricsRecorder(
ctx context.Context, svcName string, svcVersion string, config Config,
) (*MetricsRecorder, error) {
) (IMetricsRecorder, error) {
// Build metric reader based on configurations
mReader, err := buildMetricReader(ctx, config)
if err != nil {
@ -64,13 +76,13 @@ func BuildMetricsRecorder(
// provide the grpc collector target. Providing empty target results in skipping provider & propagator registration.
// This results in tracers having NoopTracerProvider and propagator having No-Op TextMapPropagator performing no action
func BuildTraceProvider(ctx context.Context, logger *logger.Logger, svc string, svcVersion string, cfg Config) error {
if cfg.CollectorTarget == "" {
if cfg.CollectorConfig.Target == "" {
logger.Debug("skipping trace provider setup as collector target is not set." +
" Traces will use NoopTracerProvider provider and propagator will use no-Op TextMapPropagator")
return nil
}
exporter, err := buildOtlpExporter(ctx, cfg.CollectorTarget)
exporter, err := buildOtlpExporter(ctx, cfg.CollectorConfig)
if err != nil {
return err
}
@ -95,7 +107,7 @@ func BuildConnectOptions(cfg Config) ([]connect.HandlerOption, error) {
options := []connect.HandlerOption{}
// add interceptor if configuration is available for collector
if cfg.CollectorTarget != "" {
if cfg.CollectorConfig.Target != "" {
interceptor, err := otelconnect.NewInterceptor(otelconnect.WithTrustRemote())
if err != nil {
return nil, fmt.Errorf("error creating interceptor, %w", err)
@ -107,6 +119,47 @@ func BuildConnectOptions(cfg Config) ([]connect.HandlerOption, error) {
return options, nil
}
func buildTransportCredentials(_ context.Context, cfg CollectorConfig) (credentials.TransportCredentials, error) {
creds := insecure.NewCredentials()
if cfg.KeyPath != "" || cfg.CertPath != "" || cfg.CAPath != "" {
capool := x509.NewCertPool()
if cfg.CAPath != "" {
ca, err := os.ReadFile(cfg.CAPath)
if err != nil {
return nil, fmt.Errorf("can't read ca file from %s", cfg.CAPath)
}
if !capool.AppendCertsFromPEM(ca) {
return nil, fmt.Errorf("can't add CA '%s' to pool", cfg.CAPath)
}
}
reloader, err := certreloader.NewCertReloader(certreloader.Config{
KeyPath: cfg.KeyPath,
CertPath: cfg.CertPath,
ReloadInterval: cfg.ReloadInterval,
})
if err != nil {
return nil, fmt.Errorf("failed to create certreloader: %w", err)
}
tlsConfig := &tls.Config{
RootCAs: capool,
MinVersion: tls.VersionTLS12,
GetCertificate: func(chi *tls.ClientHelloInfo) (*tls.Certificate, error) {
certs, err := reloader.GetCertificate()
if err != nil {
return nil, fmt.Errorf("failed to reload certs: %w", err)
}
return certs, nil
},
}
creds = credentials.NewTLS(tlsConfig)
}
return creds, nil
}
// buildMetricReader builds a metric reader based on provided configurations
func buildMetricReader(ctx context.Context, cfg Config) (metric.Reader, error) {
if cfg.MetricsExporter == "" {
@ -120,13 +173,18 @@ func buildMetricReader(ctx context.Context, cfg Config) (metric.Reader, error) {
}
// Otel override require target configuration
if cfg.CollectorTarget == "" {
if cfg.CollectorConfig.Target == "" {
return nil, fmt.Errorf("metric exporter is set(%s) without providing otel collector target."+
" collector target is required for this option", cfg.MetricsExporter)
}
transportCredentials, err := buildTransportCredentials(ctx, cfg.CollectorConfig)
if err != nil {
return nil, fmt.Errorf("metric export would not build transport credentials: %w", err)
}
// Non-blocking, insecure grpc connection
conn, err := grpc.DialContext(ctx, cfg.CollectorTarget, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(cfg.CollectorConfig.Target, grpc.WithTransportCredentials(transportCredentials))
if err != nil {
return nil, fmt.Errorf("error creating client connection: %w", err)
}
@ -137,13 +195,18 @@ func buildMetricReader(ctx context.Context, cfg Config) (metric.Reader, error) {
return nil, fmt.Errorf("error creating otel metric exporter: %w", err)
}
return metric.NewPeriodicReader(otelExporter, metric.WithInterval(exportInterval)), nil
return metric.NewPeriodicReader(otelExporter), nil
}
// buildOtlpExporter is a helper to build grpc backed otlp trace exporter
func buildOtlpExporter(ctx context.Context, collectorTarget string) (*otlptrace.Exporter, error) {
// Non-blocking, insecure grpc connection
conn, err := grpc.DialContext(ctx, collectorTarget, grpc.WithTransportCredentials(insecure.NewCredentials()))
func buildOtlpExporter(ctx context.Context, cfg CollectorConfig) (*otlptrace.Exporter, error) {
transportCredentials, err := buildTransportCredentials(ctx, cfg)
if err != nil {
return nil, fmt.Errorf("metric export would not build transport credentials: %w", err)
}
// Non-blocking, grpc connection
conn, err := grpc.NewClient(cfg.Target, grpc.WithTransportCredentials(transportCredentials))
if err != nil {
return nil, fmt.Errorf("error creating client connection: %w", err)
}

View File

@ -12,7 +12,7 @@ import (
"go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/metric/metricdata"
"go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
"go.uber.org/zap"
"go.uber.org/zap/zaptest/observer"
)
@ -21,7 +21,9 @@ func TestBuildMetricsRecorder(t *testing.T) {
// Simple happy-path test
recorder, err := BuildMetricsRecorder(context.Background(), "service", "0.0.1", Config{
MetricsExporter: "otel",
CollectorTarget: "localhost:8080",
CollectorConfig: CollectorConfig{
Target: "localhost:8080",
},
})
require.Nil(t, err, "expected no error, but got: %v", err)
@ -52,7 +54,9 @@ func TestBuildMetricReader(t *testing.T) {
name: "Metric exporter overriding require valid configuration combination",
cfg: Config{
MetricsExporter: metricsExporterOtel,
CollectorTarget: "", // collector target is unset
CollectorConfig: CollectorConfig{
Target: "", // collector target is unset
},
},
error: true,
},
@ -60,7 +64,9 @@ func TestBuildMetricReader(t *testing.T) {
name: "Metric exporter overriding with valid configurations",
cfg: Config{
MetricsExporter: metricsExporterOtel,
CollectorTarget: "localhost:8080",
CollectorConfig: CollectorConfig{
Target: "localhost:8080",
},
},
error: false,
},
@ -90,7 +96,9 @@ func TestBuildSpanProcessor(t *testing.T) {
{
name: "Valid configurations yield a valid processor",
cfg: Config{
CollectorTarget: "localhost:8080",
CollectorConfig: CollectorConfig{
Target: "localhost:8080",
},
},
error: false,
},
@ -127,7 +135,9 @@ func TestBuildConnectOptions(t *testing.T) {
{
name: "Connect option is set when telemetry target is set",
cfg: Config{
CollectorTarget: "localhost:8080",
CollectorConfig: CollectorConfig{
Target: "localhost:8080",
},
},
optionCount: 1,
},

View File

@ -10,7 +10,7 @@ import (
"go.opentelemetry.io/otel/sdk/instrumentation"
msdk "go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
)
const (
@ -19,13 +19,47 @@ const (
FeatureFlagReasonKey = attribute.Key("feature_flag.reason")
ExceptionTypeKey = attribute.Key("ExceptionTypeKeyName")
httpRequestDurationMetric = "http.server.duration"
httpResponseSizeMetric = "http.server.response.size"
httpRequestDurationMetric = "http.server.request.duration"
httpResponseSizeMetric = "http.server.response.body.size"
httpActiveRequestsMetric = "http.server.active_requests"
impressionMetric = "feature_flag." + ProviderName + ".impression"
reasonMetric = "feature_flag." + ProviderName + ".evaluation.reason"
reasonMetric = "feature_flag." + ProviderName + ".result.reason"
)
type IMetricsRecorder interface {
HTTPAttributes(svcName, url, method, code, scheme string) []attribute.KeyValue
HTTPRequestDuration(ctx context.Context, duration time.Duration, attrs []attribute.KeyValue)
HTTPResponseSize(ctx context.Context, sizeBytes int64, attrs []attribute.KeyValue)
InFlightRequestStart(ctx context.Context, attrs []attribute.KeyValue)
InFlightRequestEnd(ctx context.Context, attrs []attribute.KeyValue)
RecordEvaluation(ctx context.Context, err error, reason, variant, key string)
Impressions(ctx context.Context, reason, variant, key string)
}
type NoopMetricsRecorder struct{}
func (NoopMetricsRecorder) HTTPAttributes(_, _, _, _, _ string) []attribute.KeyValue {
return []attribute.KeyValue{}
}
func (NoopMetricsRecorder) HTTPRequestDuration(_ context.Context, _ time.Duration, _ []attribute.KeyValue) {
}
func (NoopMetricsRecorder) HTTPResponseSize(_ context.Context, _ int64, _ []attribute.KeyValue) {
}
func (NoopMetricsRecorder) InFlightRequestStart(_ context.Context, _ []attribute.KeyValue) {
}
func (NoopMetricsRecorder) InFlightRequestEnd(_ context.Context, _ []attribute.KeyValue) {
}
func (NoopMetricsRecorder) RecordEvaluation(_ context.Context, _ error, _, _, _ string) {
}
func (NoopMetricsRecorder) Impressions(_ context.Context, _, _, _ string) {
}
type MetricsRecorder struct {
httpRequestDurHistogram metric.Float64Histogram
httpResponseSizeHistogram metric.Float64Histogram
@ -34,12 +68,13 @@ type MetricsRecorder struct {
reasons metric.Int64Counter
}
func (r MetricsRecorder) HTTPAttributes(svcName, url, method, code string) []attribute.KeyValue {
func (r MetricsRecorder) HTTPAttributes(svcName, url, method, code, scheme string) []attribute.KeyValue {
return []attribute.KeyValue{
semconv.ServiceNameKey.String(svcName),
semconv.HTTPURLKey.String(url),
semconv.HTTPMethodKey.String(method),
semconv.HTTPStatusCodeKey.String(code),
semconv.HTTPRouteKey.String(url),
semconv.HTTPRequestMethodKey.String(method),
semconv.HTTPResponseStatusCodeKey.String(code),
semconv.URLSchemeKey.String(scheme),
}
}

View File

@ -10,7 +10,7 @@ import (
"go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/metric/metricdata"
"go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.13.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
)
const svcName = "mySvc"
@ -38,9 +38,10 @@ func TestHTTPAttributes(t *testing.T) {
},
want: []attribute.KeyValue{
semconv.ServiceNameKey.String(""),
semconv.HTTPURLKey.String(""),
semconv.HTTPMethodKey.String(""),
semconv.HTTPStatusCodeKey.String(""),
semconv.HTTPRouteKey.String(""),
semconv.HTTPRequestMethodKey.String(""),
semconv.HTTPResponseStatusCodeKey.String(""),
semconv.URLSchemeKey.String("http"),
},
},
{
@ -53,9 +54,10 @@ func TestHTTPAttributes(t *testing.T) {
},
want: []attribute.KeyValue{
semconv.ServiceNameKey.String("myService"),
semconv.HTTPURLKey.String("#123"),
semconv.HTTPMethodKey.String("POST"),
semconv.HTTPStatusCodeKey.String("300"),
semconv.HTTPRouteKey.String("#123"),
semconv.HTTPRequestMethodKey.String("POST"),
semconv.HTTPResponseStatusCodeKey.String("300"),
semconv.URLSchemeKey.String("http"),
},
},
{
@ -68,16 +70,17 @@ func TestHTTPAttributes(t *testing.T) {
},
want: []attribute.KeyValue{
semconv.ServiceNameKey.String("!@#$%^&*()_+|}{[];',./<>"),
semconv.HTTPURLKey.String(""),
semconv.HTTPMethodKey.String(""),
semconv.HTTPStatusCodeKey.String(""),
semconv.HTTPRouteKey.String(""),
semconv.HTTPRequestMethodKey.String(""),
semconv.HTTPResponseStatusCodeKey.String(""),
semconv.URLSchemeKey.String("http"),
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
rec := MetricsRecorder{}
res := rec.HTTPAttributes(tt.req.Service, tt.req.ID, tt.req.Method, tt.req.Code)
res := rec.HTTPAttributes(tt.req.Service, tt.req.ID, tt.req.Method, tt.req.Code, "http")
require.Equal(t, tt.want, res)
})
}
@ -204,3 +207,35 @@ func TestMetrics(t *testing.T) {
})
}
}
// some really simple tests just to make sure all methods are actually implemented and nothing panics
func TestNoopMetricsRecorder_HTTPAttributes(t *testing.T) {
no := NoopMetricsRecorder{}
got := no.HTTPAttributes("", "", "", "", "")
require.Empty(t, got)
}
func TestNoopMetricsRecorder_HTTPRequestDuration(_ *testing.T) {
no := NoopMetricsRecorder{}
no.HTTPRequestDuration(context.TODO(), 0, nil)
}
func TestNoopMetricsRecorder_InFlightRequestStart(_ *testing.T) {
no := NoopMetricsRecorder{}
no.InFlightRequestStart(context.TODO(), nil)
}
func TestNoopMetricsRecorder_InFlightRequestEnd(_ *testing.T) {
no := NoopMetricsRecorder{}
no.InFlightRequestEnd(context.TODO(), nil)
}
func TestNoopMetricsRecorder_RecordEvaluation(_ *testing.T) {
no := NoopMetricsRecorder{}
no.RecordEvaluation(context.TODO(), nil, "", "", "")
}
func TestNoopMetricsRecorder_Impressions(_ *testing.T) {
no := NoopMetricsRecorder{}
no.Impressions(context.TODO(), "", "", "")
}

View File

@ -2,7 +2,7 @@ package telemetry
import (
"go.opentelemetry.io/otel/attribute"
semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
)
// utils contain common utilities to help with telemetry
@ -14,7 +14,7 @@ const provider = "flagd"
func SemConvFeatureFlagAttributes(ffKey string, ffVariant string) []attribute.KeyValue {
return []attribute.KeyValue{
semconv.FeatureFlagKey(ffKey),
semconv.FeatureFlagVariant(ffVariant),
semconv.FeatureFlagResultVariant(ffVariant),
semconv.FeatureFlagProviderName(provider),
}
}

View File

@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
)
func TestSemConvFeatureFlagAttributes(t *testing.T) {
@ -35,7 +35,7 @@ func TestSemConvFeatureFlagAttributes(t *testing.T) {
case semconv.FeatureFlagKeyKey:
require.Equal(t, test.key, attribute.Value.AsString(),
"expected flag key: %s, but received: %s", test.key, attribute.Value.AsString())
case semconv.FeatureFlagVariantKey:
case semconv.FeatureFlagResultVariantKey:
require.Equal(t, test.variant, attribute.Value.AsString(),
"expected flag variant: %s, but received %s", test.variant, attribute.Value.AsString())
case semconv.FeatureFlagProviderNameKey:

View File

@ -0,0 +1,42 @@
package utils
import (
"fmt"
"mime"
"regexp"
"strings"
)
var alphanumericRegex = regexp.MustCompile("[^a-zA-Z0-9]+")
// ConvertToJSON attempts to convert the content of a file to JSON based on the file extension.
// The media type is used as a fallback in case the file extension is not recognized.
func ConvertToJSON(data []byte, fileExtension string, mediaType string) (string, error) {
var detectedType string
if fileExtension != "" {
// file extension only contains alphanumeric characters
detectedType = alphanumericRegex.ReplaceAllString(fileExtension, "")
} else {
parsedMediaType, _, err := mime.ParseMediaType(mediaType)
if err != nil {
return "", fmt.Errorf("unable to determine file format: %w", err)
}
detectedType = parsedMediaType
}
// Normalize the detected type
detectedType = strings.ToLower(detectedType)
switch detectedType {
case "yaml", "yml", "application/yaml", "application/x-yaml":
str, err := YAMLToJSON(data)
if err != nil {
return "", fmt.Errorf("error converting blob from yaml to json: %w", err)
}
return str, nil
case "json", "application/json":
return string(data), nil
default:
return "", fmt.Errorf("unsupported file format: '%s'", detectedType)
}
}

View File

@ -0,0 +1,107 @@
package utils
import (
"strings"
"testing"
)
func TestConvertToJSON(t *testing.T) {
tests := map[string]struct {
data []byte
fileExtension string
mediaType string
want string
wantErr bool
errContains string
}{
"json file type": {
data: []byte(`{"flags": {"foo": "bar"}}`),
fileExtension: "json",
mediaType: "application/json",
want: `{"flags": {"foo": "bar"}}`,
wantErr: false,
},
"json file type using in http path": {
data: []byte(`{"flags": {"foo": "bar"}}`),
fileExtension: ".json/",
mediaType: "",
want: `{"flags": {"foo": "bar"}}`,
wantErr: false,
},
"json file type with encoding": {
data: []byte(`{"flags": {"foo": "bar"}}`),
fileExtension: "json",
mediaType: "application/json; charset=utf-8",
want: `{"flags": {"foo": "bar"}}`,
wantErr: false,
},
"yaml file type": {
data: []byte("flags:\n foo: bar"),
fileExtension: "yaml",
mediaType: "application/yaml",
want: `{"flags":{"foo":"bar"}}`,
wantErr: false,
},
"yaml file type with encoding": {
data: []byte("flags:\n foo: bar"),
fileExtension: "yaml",
mediaType: "application/yaml; charset=utf-8",
want: `{"flags":{"foo":"bar"}}`,
wantErr: false,
},
"yml file type": {
data: []byte("flags:\n foo: bar"),
fileExtension: "yml",
mediaType: "application/x-yaml",
want: `{"flags":{"foo":"bar"}}`,
wantErr: false,
},
"invalid yaml": {
data: []byte("invalid: [yaml: content"),
fileExtension: "yaml",
mediaType: "application/yaml",
wantErr: true,
errContains: "error converting blob from yaml to json",
},
"unsupported file type": {
data: []byte("some content"),
fileExtension: "txt",
mediaType: "text/plain",
wantErr: true,
errContains: "unsupported file format",
},
"empty file type with valid media type": {
data: []byte(`{"flags": {"foo": "bar"}}`),
fileExtension: "",
mediaType: "application/json",
want: `{"flags": {"foo": "bar"}}`,
wantErr: false,
},
"invalid media type": {
data: []byte("some content"),
fileExtension: "",
mediaType: "invalid/\\type",
wantErr: true,
errContains: "unable to determine file format",
},
}
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
got, err := ConvertToJSON(tt.data, tt.fileExtension, tt.mediaType)
if (err != nil) != tt.wantErr {
t.Errorf("ConvertToJSON() error = %v, wantErr %v", err, tt.wantErr)
return
}
if tt.wantErr {
if err == nil || !strings.Contains(err.Error(), tt.errContains) {
t.Errorf("ConvertToJSON() expected error containing %q, got %v", tt.errContains, err)
}
return
}
if got != tt.want {
t.Errorf("ConvertToJSON() = %v, want %v", got, tt.want)
}
})
}
}

27
core/pkg/utils/yaml.go Normal file
View File

@ -0,0 +1,27 @@
package utils
import (
"encoding/json"
"fmt"
"gopkg.in/yaml.v3"
)
// converts YAML byte array to JSON string
func YAMLToJSON(rawFile []byte) (string, error) {
if len(rawFile) == 0 {
return "", nil
}
var ms map[string]interface{}
if err := yaml.Unmarshal(rawFile, &ms); err != nil {
return "", fmt.Errorf("error unmarshaling yaml: %w", err)
}
r, err := json.Marshal(ms)
if err != nil {
return "", fmt.Errorf("error marshaling json: %w", err)
}
return string(r), err
}

View File

@ -0,0 +1,57 @@
package utils
import "testing"
func TestYAMLToJSON(t *testing.T) {
tests := map[string]struct {
input []byte
expected string
expectedError bool
}{
"empty": {
input: []byte(""),
expected: "",
expectedError: false,
},
"simple yaml": {
input: []byte("key: value"),
expected: `{"key":"value"}`,
expectedError: false,
},
"nested yaml": {
input: []byte("parent:\n child: value"),
expected: `{"parent":{"child":"value"}}`,
expectedError: false,
},
"invalid yaml": {
input: []byte("invalid: yaml: : :"),
expectedError: true,
},
"array yaml": {
input: []byte("items:\n - item1\n - item2"),
expected: `{"items":["item1","item2"]}`,
expectedError: false,
},
"complex yaml": {
input: []byte("bool: true\nnum: 123\nstr: hello\nobj:\n nested: value\narr:\n - 1\n - 2"),
expected: `{"arr":[1,2],"bool":true,"num":123,"obj":{"nested":"value"},"str":"hello"}`,
expectedError: false,
},
}
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
output, err := YAMLToJSON(tt.input)
if tt.expectedError && err == nil {
t.Error("expected error but got none")
}
if !tt.expectedError && err != nil {
t.Errorf("unexpected error: %v", err)
}
if output != tt.expected {
t.Errorf("expected output '%v', got '%v'", tt.expected, output)
}
})
}
}

View File

@ -0,0 +1,98 @@
---
# Valid statuses: draft | proposed | rejected | accepted | superseded
status: draft
author: Your Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
# Title
<!--
This section should be one or two paragraphs that just explains what the goal of this decision is going to be, but without diving too deeply into the "why", "why now", "how", etc.
Ensure anyone opening the document will form a clear understanding of the intent from reading this paragraph(s).
-->
## Background
<!--
The next section is the "Background" section. This section should be at least two paragraphs and can take up to a whole page in some cases.
The guiding goal of the background section is: as a newcomer to this project (new employee, team transfer), can I read the background section and follow any links to get the full context of why this change is necessary?
If you can't show a random engineer the background section and have them acquire nearly full context on the necessity for the RFC, then the background section is not full enough. To help achieve this, link to prior RFCs, discussions, and more here as necessary to provide context so you don't have to simply repeat yourself.
-->
## Requirements
<!--
This section outlines the requirements that the proposal must meet.
These requirements should be derived from the background section and should be clear, concise, and actionable.
This is where you can specify the goals and constraints that the proposal must satisfy.
This could include performance metrics, security considerations, user experience goals, and any other relevant criteria.
-->
* {Requirement 1}
* {Requirement 2}
* {Requirement 3}
* … <!-- numbers of requirements can vary -->
## Considered Options
<!--
This section lists all the options that were considered for addressing the need outlined in the background section.
Each option should be clearly defined with a descriptive title.
This provides a comprehensive overview of the solution space that was explored before making a decision.
The options will be evaluated in the proposal section, where the chosen approach is justified.
-->
* {title of option 1}
* {title of option 2}
* {title of option 3}
* … <!-- numbers of options can vary -->
## Proposal
<!--
The next required section is "Proposal" or "Goal".
Given the background above, this section proposes a solution.
This should be an overview of the "how" for the solution.
Include content like diagrams, prototypes, and high-level requirements.
-->
<!-- This is an optional element. Feel free to remove. -->
### API changes
<!--
This section should describe any API changes that are part of the proposal.
This includes any new endpoints, changes to existing endpoints, or modifications to the data model.
It should provide enough detail for developers to understand how the API will evolve and what impact it will have on existing clients.
-->
<!-- This is an optional element. Feel free to remove. -->
### Consequences
* Good, because {positive consequence, e.g., improvement of one or more desired qualities, …}
* Bad, because {negative consequence, e.g., compromising one or more desired qualities, …}
* … <!-- numbers of consequences can vary -->
### Timeline
<!--
This section outlines a high level timeline for implementing the proposal.
It should include key milestones, deadlines, and any dependencies that need to be addressed.
This helps to set expectations for the size of the change and the expected timeline for completion.
-->
<!-- This is an optional element. Feel free to remove. -->
### Open questions
* {Question 1}
* … <!-- numbers of question can vary -->
<!-- This is an optional element. Feel free to remove. -->
## More Information
<!--
This section provides additional context, evidence, or documentation to support the decision.
Use this space to provide any supplementary information that would be helpful for future readers
to fully understand the decision and its implications.
-->

View File

@ -0,0 +1,81 @@
---
status: accepted
author: @toddbaert
created: 2025-05-16
updated: --
---
# Adoption of Cucumber/Gherkin for `flagd` Testing Suite
This decision document outlines the rationale behind adopting the Cucumber/Gherkin testing framework for the `flagd` projects testing suite. The goal is to establish a clear, maintainable, and language-agnostic approach for writing integration and behavior-driven tests.
By leveraging Gherkins natural language syntax and Cucumbers mature ecosystem, we aim to improve test clarity and accessibility across teams, enabling both developers and non-developers to contribute to test case development and validation.
## Background
`flagd` is an open-source feature flagging engine that forms a core part of the OpenFeature ecosystem. As such, it includes many clients (providers) written in multiple languages and it needs robust, readable, and accessible testing frameworks that allow for scalable behavior-driven testing.
Previously, test cases for `flagd` providers were written in language-specific test frameworks, which created fragmentation and limited contributions from engineers who werent familiar with the language in question. Furthermore, the ability to validate consistent feature flag behavior across multiple SDKs and environments became increasingly important as adoption grew, and in-process evaluation was implemented.
To address this, the engineering team investigated frameworks that would enable:
- Behavior-driven development (BDD) to validate consistent flag evaluation behavior, configuration, and provider life-cycle (connection, etc).
- High cross-language support to integrate with multiple SDKs and tools.
- Ease of use for writing, understanding, enhancing and maintaining tests.
After evaluating our options and experimenting with prototypes, we adopted Cucumber with Gherkin syntax for our testing strategy.
## Requirements
- Must be supported across a wide variety of programming languages.
- Must offer mature tooling and documentation.
- Must enable the writing of easily understandable, high-level test cases.
- Must be open source.
- Should support automated integration in CI pipelines.
- Should support parameterized and reusable test definitions.
## Considered Options
- Adoption of Cucumber/Gherkin e2e testing framework
- No cross-implementation e2e testing framework (rely on unit tests)
- Custom e2e testing framework, perhaps based on csv or other tabular input/output assertions
## Proposal
We adopted the Cucumber testing framework, using Gherkin syntax to define feature specifications and test behaviors. Gherkin offers a structured and readable DSL (domain-specific language) that enables concise expression of feature behaviors in plain English, making test scenarios accessible to both technical and non-technical contributors.
We use Cucumbers tooling in combination with language bindings (e.g., Go, JavaScript, Python) to execute these scenarios across different environments and SDKs. Step definitions are implemented using the idiomatic tools of each language, while test scenarios remain shared and version-controlled.
### API changes
N/A this decision does not introduce API-level changes but applies to test infrastructure and development workflow.
### Consequences
#### Pros
- Test scenarios are readable and accessible to a broad range of contributors.
- Cucumber and Gherkin are supported in most major programming languages.
- Tests are partially decoupled from the underlying implementation language.
- Parameterized and reuseable test definitions mean new validations and assertions can often be added in providers without writing any code.
#### Cons
- Adding a new framework introduces some complexity and a learning curve.
- In some cases/runtimes, debugging failed tests in Gherkin can be more difficult than traditional unit tests.
### Timeline
N/A - this is a retrospective document, timeline was not recorded.
### Open questions
- Should we enforce Gherkin for all providers?
## More Information
- [flagd Testbed Repository](https://github.com/open-feature/flagd-testbed)
- [Cucumber Documentation](https://cucumber.io/docs/)
- [Gherkin Syntax Guide](https://cucumber.io/docs/gherkin/)
- [flagd GitHub Repository](https://github.com/open-feature/flagd)
- [OpenFeature Project Overview](https://openfeature.dev/)

View File

@ -0,0 +1,77 @@
---
status: accepted
author: @tangenti
created: 2025-06-16
updated: 2025-06-16
---
# Decouple flag sync sources and flag sets
The goal is to support dynamic flag sets for flagd providers and decouple sources and flag sets.
## Background
Flagd daemon syncs flag configurations from multiple sources. A single source provides a single config, which has an optional flag set ID that may or may not change in the following syncs of the same source.
The in-process provider uses `selector` to specify the desired source. In order to get a desired flag set, a provider has to stick to a source that provides that flag set. In this case, the flagd daemon cannot remove a source without breaking the dependant flagd providers.
Assumptions of the current model
- `flagSetId`s must be unique across different sources or the configuration is considered invalid.
- In-process providers request at most one flag set.
## Requirements
- Flagd daemon can remove a source without breaking in-process providers that depend on the flag set the source provides.
- In-process providers can select based on flag sets.
- No breaking changes for the current usage of `selector`
## Proposal
### API change
#### Flag Configuration Schema
Add an optional field `flagsetID` under `flag` or `flag.metadata`. The flag set ID cannot be specified if a flag set ID is specified for the config.
### Flagd Sync Selector
Selector will be extended for generic flags selection, starting with checking the equivalence of `source` and `flagsetID` of flags.
Example
```yaml
# Flags from the source `override`
selector: override
# Flags from the source `override`
selector: source=override
# Flags from the flag set `project-42`
selector: flagsetID=project-42
```
The semantic can later be extended with a more complex design, such as AIP-160 filter or Kubernetes selections. This is out of the scope of this ADR.
### Flagd Daemon Storage
1. Flagd will have separate stores for `flags` and `sources`
2. `selector` will be removed from the store
3. `flagSetID` will be added as part of `model.Flag` or under `model.Flag.Metadata` for better consistency with the API.
### Flags Sync
Sync server would count the extended syntax of `selector` and filter the list of flags on-the-fly answering the requests from the providers.
The existing conflict resolving based on sources remains the same. Resyncs on removing flags remains unchanged as well.
## Consequences
### The good
- One source can have multiple flag sets.
- `selector` works on a more grandular level.
- No breaking change
- Sync servers and clients now hold the same understanding of the `selector` semantic.

View File

@ -0,0 +1,144 @@
---
status: accepted
author: @tangenti
created: 2025-06-27
updated: 2025-06-27
---
# Support for Duplicate Flag Keys
This ADR proposes allowing a single sync source to provide multiple flags that share the same key. This enables greater flexibility for modularizing flag configurations.
## Background
Currently, the `flagd` [flag configuration](https://flagd.dev/schema/v0/flags.json) stores flags in a JSON object (a map), where each key must be unique. While the JSON specification technically allows duplicate keys, it's not recommended and not well-supported in the implementations.
This limitation prevents use cases for flag modularization and multi-tenancy, such as:
- **Component-based Flags:** Two different services, each with its own in-process provider, cannot independently define a flag with the same key when communicating with the same `flagd` daemon.
- **Multi-Tenant Targeting:** A single flagd daemon cannot use the same flag key with different targeting rules for different tenants
## Requirements
- Allow a single sync source to define multiple flags that have the same key.
- Flags from a sync source with the same keys can have different types and targeting rules.
- No breaking changes for the current flagd flag configuration schema or flagd sync services.
## Proposal
We will update the `flagd` flag configuration schema to support receiving flags as an **array of flag objects**. The existing schema will remain fully supported.
### API Change
#### Flag Configuration Schema
We'll add a new schema as a [subschema](https://json-schema.org/learn/glossary#subschema) to the existing flagd flag configuration schema. It will be a composite of the original schema except `flags` (`#/definitions/base`), with a new schema for `flags` that allows flags array in addition to the currently supported flags object. The existing main schema will be the composite of `#/definitions/base` and the subschema for the flags object.
```json
...
"flagsArray": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/definitions/flag"
},
{
"type": "object",
"properties": {
"key": {
"description": "Key of the flag",
"type": "string",
"minLength": 1
}
},
"required": [
"key"
]
}
]
}
},
"flagsArraySchema": {
"$id": "https://flagd.dev/schema/v0/flags.json#flagsarray",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/base"
},
{
"properties": {
"flags": {
"oneOf": [
{
"$ref": "#/definitions/flagsArray"
},
{
"$ref": "#/definitions/flagsMap"
}
]
}
},
"required": [
"flags"
]
}
]
}
...
```
If the config level flag set ID is not specified, `metadata.flagSetId` of each flag will be interpreted as its flag set ID.
A flag will be uniquely identified by the composite key `(flagKey, flagSetId)`. The following three flags will be considered as three different flags.
1. `{"flagKey": "enable-feature", "flagSetId": ""}`
2. `{"flagKey": "enable-feature", "flagSetId": "default"}`
3. `{"flagKey": "enable-feature", "flagSetId": "beta"}`
### Flagd daemon
Flagd daemon will perform the JSON schema checks with the reference to `https://flagd.dev/schema/v0/flags.json#flagsarray`, allowing both flags as an object and as an array.
If the flag array contains two or more flags with the same composite key, the config will be considered as invalid.
If the request from in-process flagd providers result in a config that has duplicate flag keys, the flagd daemon will only keep one of them in the response.
### Flagd Daemon Storage
1. Flagd will have separate stores for `flags` and `sources`.
1. The `flags` store will use the composite key for flags.
1. `selector` will be removed from the store
1. `flagSetId` will be moved from `source` metadata to `flag` metadata.
### Flags Lifecycle
Currently, the flags configurations from the latest update of a source will trigger a `sync.ALL` sync. If a flag was presented in the previous configuration but not in the current configuration, it will be removed. In another word, the latest source that provides the config for a flag will take the ownership of a flag, and any subsequent configs are considered as the full states of the flags that are owned by the source.
We'll keep the same behaviors with this proposal:
1. If two sources provide the flags with the same composite key, the latest one will be stored.
2. If a flag from a source no longer presents in the latest configuration of the same source, it will be removed.
This behavior is less ideal as the ownership management depends on the ordre of the sync. This should be addressed in a separate ADR.
### Consequences
#### The good
- One source can provide flags with the same keys.
- Flag set ID no longer bound to a source, so one source can have multiple flag sets.
- No breaking change of the API definition and the API behaviors.
- No significant change on the flagd stores and how selections work.
#### The bad
- The proposal still leverages the concept of flag set in the flagd storage.
- The schema does not guarantee that flags of the same flag set from the same source will not have the same keys. This is guaranteed in the proposal of #1634.
- Compared to #1634, this proposal does not allow to define flag set wide metadata.

View File

@ -0,0 +1,155 @@
---
status: accepted
author: Todd Baert
created: 2025-06-05
updated: 2025-06-05
---
# Flag and Targeting Configuration
## Background
Feature flag systems require a flexible, safe, and portable way to express targeting rules that can evaluate contextual data to determine which variant of a feature to serve.
flagd's targeting system was designed with several key requirements:
## Requirements
- **Language agnostic**: Rules must be portable across different programming languages, ideally relying on existing expression language(s)
- **Safe evaluation**: No arbitrary code execution or system access
- **Deterministic**: Same inputs must always produce same outputs
- **Extensible**: Support for the addition of domain-specific operations relevant to feature flags
- **Developer and machine friendly**: Human-readable, easily validated, and easily serialized
## Proposal
### JSON Logic as the Foundation
flagd chose **JSON Logic** as its core evaluation engine, implementing a modified version with custom extensions.
This provides a secure, portable foundation where rules are expressed as JSON objects with operators as keys and parameters as values.
#### Benefits realized
- Rules can be stored in databases, transmitted over networks, shared between frontend/backend, and embedded in Kubernetes custom resources
- No eval() or code injection risks - computations are deterministic and sand-boxed
- Implementations exist in most languages
#### Overview
The system provides two tiers of operators:
##### Primitive JSON Logic Operators (inherited from the JSONLogic)
- Logical: `and`, `or`, `!`, `!!`
- Comparison: `==`, `!=`, `>`, `<`, etc
- Arithmetic: `+`, `-`, `*`, `/`, `%`
- Array operations: `in`, `map`, `filter`, etc
- String operations: `cat`, `substr`, etc
- Control flow: `if`
- Assignment and extraction: `var`
##### Custom flagd Extensions
- `fractional`: Deterministic percentage-based distribution using murmur3 hashing
- `starts_with`/`ends_with`: String prefix/suffix matching for common patterns
- `sem_ver`: Semantic version comparisons with standard (npm-style) operators
- `$ref`: Reference to shared evaluators for DRY principle
##### Evaluation Context and Automatic Enrichment
flagd automatically injects critical context values:
##### System-provided context
- `$flagd.flagKey`: The flag being evaluated (available v0.6.4+)
- `$flagd.timestamp`: Unix timestamp of evaluation (available v0.6.7+)
This enables sophisticated targeting rules that can reference the flag itself or time-based conditions without requiring client-side context.
##### Reason Code System for Transparency
flagd returns specific reason codes with every evaluation to indicate how the decision was made:
1. **STATIC**: Flag has no targeting rules, and can be safely cached
2. **TARGETING_MATCH**: Targeting rules matched and returned a variant
3. **DEFAULT**: Targeting rules evaluated to null, fell back to default
4. **CACHED**: Value retrieved from provider cache (RPC mode only)
5. **ERROR**: Evaluation failed due to invalid configuration
This transparency enables:
- Appropriate caching strategies (only STATIC flags are cached)
- Improved debugging, telemetry, and monitoring of flag behavior
##### Shared Evaluators for Reusability
The `$evaluators` top-level property enables shared targeting logic:
```json
{
"$evaluators": {
"isEmployee": {
"ends_with": [{"var": "email"}, "@company.com"]
}
},
"flags": {
"feature-x": {
"state": "ENABLED",
"defaultVariant": "enabled",
"variants": {
"enabled": true,
"disabled": false
},
"targeting": {
"if": [{"$ref": "isEmployee"}, "enabled", "disabled"]
}
}
}
}
```
##### Intelligent Caching Strategy
Only flags with reason **STATIC** are cached, as they have deterministic outputs. This ensures:
- Maximum cache efficiency for simple toggles
- Fresh evaluation for complex targeting rules
- Cache invalidation on configuration changes
##### Schema-Driven Configuration
Two schemas validate flag configurations:
- `https://flagd.dev/schema/v0/flags.json`: Overall flag structure
- `https://flagd.dev/schema/v0/targeting.json`: Targeting rule validation
These enable:
- IDE support with autocomplete
- Run-time and build-time validation
- Separate validation of rules and overall configuration if desired
## Considered Options
- **Custom DSL**: Would require parsers in every language
- **JavaScript/Lua evaluation**: Security risks and language lock-in
- **CEL**: limited number of implementations at time of decision, can't be directly parsed/validated when embedded in Kubernetes resources
## Consequences
### Positive
- Good, because implementations exist across languages
- Good, because, no code injection or system access possible
- Good, because combined with JSON schemas, we have rich IDE support
- Good, because JSON is easily serialized and also can be represented/embedded in YAML
### Negative
- Bad, JSONLogic syntax can be cumbersome when rules are complex
- Bad, hard to debug
## Conclusion
flagd's targeting configuration system represents a thoughtful balance between safety, portability, and capability.
By building on JSON Logic and extending it with feature-flag-specific operators, flagd achieves remarkable flexibility while maintaining security and performance.

View File

@ -0,0 +1,121 @@
---
status: draft
author: @toddbaert
created: 2025-06-06
updated: 2025-06-06
---
# Fractional Operator
The fractional operator enables deterministic, fractional feature flag distribution.
## Background
Nearly all feature flag systems require pseudorandom assignment support to facilitate key use cases, including experimentation and fractional progressive rollouts.
Since flagd seeks to implement a full feature flag evaluation engine, such a feature is required.
## Requirements
- **Deterministic**: must be consistent given the same input (so users aren't re-assigned with each page view, for example)
- **Performant**: must be quick; we want "predictable randomness", but with a relatively low performance cost
- **Ease of use**: must be easy to use and understand for basic use-cases
- **Customization**: must support customization, such as specifying a particular context attribute to "bucket" on
- **Stability**: adding new variants should result in new assignments for as small a section of the audience as possible
- **Strong avalanche effect**: slight input changes should result in relatively high chance of differential bucket assignment
## Considered Options
- We considered various "more common" hash algos, such as `sha1` and `md5`, but they were frequently slower than `Murmur3`, and didn't offer better performance for our purposes
- Initially we required weights to sum to 100, but we've since revoked that requirement
## Proposal
### MurmurHash3 + numeric weights + optional targeting-key-based bucketing value
#### The fractional operator mechanism
The fractional operator facilitates **deterministic A/B testing and gradual rollouts** through a custom JSONLogic extension introduced in flagd version 0.6.4+.
This operator splits feature flag variants into "buckets", based the `targetingKey` (or another optionally specified key), ensuring users consistently receive the same variant across sessions through sticky evaluation.
The core algorithm involves four steps: extracting a bucketing property from the evaluation context, hashing this value using MurmurHash3, mapping the hash to a [0, 100] range, and selecting variants based on cumulative weight thresholds.
This approach guarantees that identical inputs always produce identical outputs (excepting the case of rules involving the `$flag.timestamp`), which is crucial for maintaining a consistent user experience.
#### MurmurHash3: The chosen algorithm
flagd specifically employs **MurmurHash3 (32-bit variant)** for its fractional operator, prioritizing performance and distribution quality over cryptographic security.
This non-cryptographic hash function provides excellent performance and good avalanche properties (small input changes produce dramatically different outputs) while maintaining deterministic behavior essential for sticky evaluations.
Its wide language implementation ensures identical results across different flagd providers, no matter the language in question.
#### Bucketing value
The bucking value is an optional first value to the operator (it may be a JSONLogic expression, other than an array).
This allows enables targeting based on arbitrary attributes (individual users, companies/tenants, etc).
If not specified, the bucketing value is a JSONLogic expression concatenating the `$flagd.flagKey` and the extracted [targeting key](https://openfeature.dev/specification/glossary/#targeting-key) (`targetingKey`) from the context (the inclusion of the flag key prevents users from landing in the same "bucket index" for all flags with the same number of buckets).
If the bucking value does not resolve to a string, or the `targeting key` is undefined, the evaluation is considered erroneous.
```json
// Default bucketing value
{
"cat": [
{"var": "$flagd.flagKey"},
{"var": "targetingKey"}
]
}
```
#### Bucketing strategy implementation
After retrieving the bucketing value, and hashing it to a [0, 99] range, the algorithm iterates through variants, accumulating their relative weights until finding the bucket containing the hash value.
```go
// Simplified implementation structure
hashValue := murmur3Hash(bucketingValue) % 100
currentWeight := 0
for _, distribution := range variants {
currentWeight += (distribution.weight * 100) / sumOfWeights
if hashValue < currentWeight {
return distribution.variant
}
}
```
This approach supports flexible weight ratios; weights of [25, 50, 25] translate to 25%, 50%, and 25% distribution respectively as do [1, 2, 1].
It's worth noting that the maximum bucket resolution is 1/100, meaning that the maximum ratio between variant distributions is 1:99 (ie: a weight distribution of [1, 100000] behaves the same as [1, 100]).
#### Format flexibility: Shorthand vs longhand
flagd provides two syntactic options for defining fractional distributions, balancing simplicity with precision. **Shorthand format** enables equal distribution by specifying variants as single-element arrays (in this case, an equal weight of 1 is automatically assumed):
```json
{
"fractional": [
["red"],
["blue"],
["green"]
]
}
```
**Longhand format** allows precise weight control through two-element arrays:
Note that in this example, we've also specified a custom bucketing value.
```json
{
"fractional": [
{ "var": "email" },
["red", 50],
["blue", 20],
["green", 30]
]
}
```
### Consequences
- Good, because Murmur3 is fast, has good avalanche properties, and we don't need "cryptographic" randomness
- Good, because we have flexibility but also simple shorthand
- Good, because our bucketing algorithm is relatively stable when new variants are added
- Bad, because we only support string bucketing values
- Bad, because we don't have bucket resolution finer than 1:99
- Bad, because we don't support JSONLogic expressions within bucket definitions

View File

@ -0,0 +1,157 @@
---
status: rejected
author: @alexandraoberaigner
created: 2025-05-28
updated: -
---
# Add support for dynamic usage of Flag Sets to `flagd`
⚠️ REJECTED IN FAVOR OF <https://github.com/open-feature/flagd/blob/main/docs/architecture-decisions/duplicate-flag-keys.md> ⚠️
The goal of this decision document is to establish flag sets as a first class concept in `flagd`, and support the dynamic addition/update/removal of flag sets at runtime.
## Background
`flagd` is a language-agnostic feature flagging engine that forms a core part of the OpenFeature ecosystem.
Flag configurations can be stored in different locations so called `sources`. These are specified at startup, e.g.:
````shell
flagd start \
--port 8013 \
--uri file:etc/flagd/my-flags-1.json \
--uri https://my-flags-2.com/flags
````
The primary object here is to remove the coupling between sources and "logical" groups of flags, so that provider's aren't required to know their set of flags are sources from a file/http resource, etc, but could instead just supply a logical identifier for their flag set.
## Requirements
* Should enable the dynamic usage of flag sets as logical identifiers.
* Should support configurations without flag sets.
* Should adhere to existing OpenFeature and flagd terminology and concepts
## Considered Options
1. Addition of flag set support in the [flags schema](https://flagd.dev/reference/schema/#targeting) and associated enhancements to `flagd` storage layer
2. Support for dynamically adding/removing flag sources through some kind of runtime configuration API
3. Support for dynamically adding/removing flag sources through some kind of "discovery" protocol or endpoint (ie: point flagd at a resource that would enumerate a mutable collection of secondary resources which represent flag sets)
## Proposal
To support the dynamic usage of flag sets we propose to adapt the flag schema & storage layer in `flagd`.
The changes will decouple flag sets from flag sources by supporting multiple flag sets within single flag sources.
Dynamic updates to flag sources is already a feature of `flagd`.
### New Schema Structure
The proposed changes to the current flagd schema would allow the following json structure for **sources**:
````json
{
"$schema": "https://flagd.dev/schema/v1/flagsets.json",
"flagSets": {
"my-project-1": {
"metadata": {
...
},
"flags": {
"my-flag-1": {
"metadata": {
...
},
...
},
...
},
"$evaluators": {
...
}
},
"my-project-2": {
...
}
}
}
````
We propose to introduce a 3rd json schema `flagSets.json`, which references to `flags.json`:
1. flagSets.json (new)
2. flags.json
3. targeting.json
We don't want to support merging of flag sets, due to implementation efforts & potential confusing behaviour of the
merge strategy.
Therefore, we propose for the initial implementation, `flagSetId`s must be unique across different sources or the configuration is considered invalid.
In the future, it might be useful to support and implement multiple "strategies" for merging flagSets from different sources, but that's beyond the scope of this proposal.
### New Data Structure
The storage layer in `flagd` requires refactoring to better support multiple flag sets within one source.
````go
package store
type State struct {
FlagSets map[string]FlagSet `json:"flagSets"` // key = flagSetId
}
type FlagSet struct {
Flags map[string]model.Flag `json:"flags"` // key = flagKey
Metadata Metadata `json:"metadata,omitempty"`
}
type Flag struct {
State string `json:"state"`
DefaultVariant string `json:"defaultVariant"`
Variants map[string]any `json:"variants"`
Targeting json.RawMessage `json:"targeting,omitempty"`
Metadata Metadata `json:"metadata,omitempty"`
}
type Metadata = map[string]interface{}
````
### OpenFeature Provider Implications
Currently, creating a new flagd provider can look like follows:
````java
final FlagdProvider flagdProvider =
new FlagdProvider(FlagdOptions.builder()
.resolverType(Config.Evaluator.IN_PROCESS)
.host("localhost")
.port(8015)
.selector("myFlags.json")
.build());
````
* With the proposed solution the `flagSetId` should be passed to the builder as selector argument instead of the source.
* `null` is now a valid selector value, referencing flags which do not belong to a flag set. The default/fallback `flagSetId` should be `null`.
### Consequences
* Good, because it decouples flag sets from the sources
* Good, because we will refactor the flagd storage layer (which is currently storing duplicate data & difficult to
understand)
* Good, because we can support backwards compatibility with the v0 schema
* Good, because the "null" flag set is logically treated as any other flag set, reducing overall implementation complexity.
* Bad, because there's additional complexity to support this new config schema as well as the current.
* Bad, because this is a breaking change in the behavior of the `selector` member.
### Other Options
We evaluated the [mentioned options](#considered-options) as follows: _options 2 + 3: support for dynamically adding/removing flag sources_ and decided against this option because it requires much more implementation effort than _option 1_. Required changes include:
* flagd/core/sync: dynamic mode, which allows specifying the sync type that should be added/removed at runtime
* flagd/flagd: startup dynamic sync configuration
* make sure to still support static syncs
## More Information
* Current flagd schema: [flags.json](https://flagd.dev/schema/v0/flags.json)
* flagd storage layer
implementation: [store/flags.go](https://github.com/open-feature/flagd/blob/main/core/pkg/store/flags.go)
* [flagd GitHub Repository](https://github.com/open-feature/flagd)
* [OpenFeature Project Overview](https://openfeature.dev/)

View File

@ -0,0 +1,77 @@
---
status: accepted
author: Dave Josephsen
created: 2025-05-21
updated: 2025-05-21
---
# ADR: Multiple Sync Sources
It is the Intent of this document to articulate our rationale for supporting multiple flag syncronization sources (grpc, http, blob, local file, etc..) as a core design property of flagd. This document also includes a short discussion of how flagd is engineered to enable the community to extend it to support new sources in the future, to "future proof" the runtime against sources that don't yet exist, or those we may have omitted is a requisite byproduct of this architectural decision.
The goal of first-class multi-sync support generally is to broaden flagd's potential to suit the needs of many different types of users or architecture. By decoupling flag persistence from the runtime, flagd can focus on evaluation and sync, while enabling its user-base to choose a persistence layer that best suits their individual requirements.
## Background
The flagd daemon is a feature flag evaluation engine that forms a core part of the OpenFeature ecosystem as a production-grade reference implementation. Unlike OpenFeature SDK components, which are, by design, agnostic to the specifics of flag structure, evaluation, and persistence, flagd must take an opinionated stance about how feature-flags look, feel, and act.
What schema best describes a flag? How should they be evaluated? And in what sort of persistence layer should they be stored?
This latter-most question -- _how should they be stored_ -- is the most opaque design detail of every commercial flagging product from the perspective its end-users.
As a front-line engineer using a commercial flagging product, I may, for example, be exposed to flag schema by the product's SDK, and become familiar with its evaluation intricacies over time as my needs grow to require advanced features, or as I encounter surprising behavior. Rarely, however, is an end-user exposed to the details of a commercial product's storage backend.
The SaaS vendor is expected to engineer a safe, fast, multi-tenant storage back-end, optimized for its flag schema and operational parameters, and insulate the customer from these details via its SDK.
This presents Flagd, an open-source evaluation engine, with an interesting conundrum: what sort of flag storage best suits the needs of its potential user-base (which is everyone)?
## Requirements
* Support the storage technology that's most likely to meet the needs of current Flagd user-base (Don't be weird. Don't be surprising.)
* Make it "easy" to extend the flagd runtime to support "new" storage systems
* Horizontally scalable persistence layer
* Minimize end-user exposure to persistence "quirks" (replication schemes, leader election, back-end scaling, consistency minutia, etc.. )
* Reliable, Fast, Transparent
* Full CRUD, read-optimized.
## Considered Options
* Be super-opinionated and prescribe a built-in raftesque key-value setup, analogous to the designs of k8s and kafka, which prescribe etcd and zookeeper respectively.
* Roll a single "standard interface" for flag sync (published grpc spec or similar) (??)
* Decouple storage from flagd entirely, by exposing a Golang interface type that "providers" can implement to provide support for any data store.
## Proposal
<!--
Unsure whether we want a diagram in this section or not. Happy to add one if we want one.
-->
The solution to the conundrum posited in the background section of this document is to decouple flag storage entirely from the rest of the runtime, including instead support for myriad commonly used data syncronization interfaces.
This allows Flagd to be agnostic to flag storage, while enabling users to use whichever storage back-end best suits their environment.
To extend Flagd to support a new storage back-end, _sync providers_ implement the _ISync_ interface, detailed below:
```go
type ISync interface {
// Init is used by the sync provider to initialize its data structures and external dependencies.
Init(ctx context.Context) error
// Sync is the contract between Runtime and sync implementation.
// Note that, it is expected to return the first data sync as soon as possible to fill the store.
Sync(ctx context.Context, dataSync chan<- DataSync) error
// ReSync is used to fetch the full flag configuration from the sync
// This method should trigger an ALL sync operation then exit
ReSync(ctx context.Context, dataSync chan<- DataSync) error
// IsReady shall return true if the provider is ready to communicate with the Runtime
IsReady() bool
}
```
syncronization events "fan-in" from all configured sync providers to flagd's in-memory state-store via a channel carrying [`sync.DataSync`](https://github.com/open-feature/flagd/blob/main/core/pkg/store/flags.go#L19) events.
These events detail the source and type of the change, along with the flag data in question and are merged into the currently held state by the [store](https://github.com/open-feature/flagd/blob/main/core/pkg/store/flags.go#L19).
### Consequences
Because syncronization providers may vary wildly with respect to their implementation details, supporting multiple sync providers means supporting custom configuration parameters for each provider.
As a consequence, Flagd's configuration is itself made more complex, and its bootstrap process, whose goal is to create a [`runtime.Runtime`](https://github.com/open-feature/flagd/blob/main/flagd/pkg/runtime/runtime.go#L21) object from user-provided configuration, spends the preponderance of its time and effort interpreting, configuring, and initializing sync providers.
There is, in fact, a custom bootstrap type, called the `syncbuilder` whose job is to bootstrap sync providers and arrange them into a map, for the runtime to use.
Further, Because sync providers may vary wildly with respect to implementation, the end-user's choice of sync sources can change Flagd's operational parameters. For example, end-users who choose the GRPC provider can expect flag-sync operations to be nearly immediate, because GRPC updates can be pushed to flagd as they occur, compared with end-users who chose the HTTP provider, who must wait for a timer to expire in order to notice updates, because HTTP is a polling-based implementation.
Finally, sync Providers also contribute a great deal of girth to flagd's documentation, because again, their setup, syntax, and runtime idiosyncrasies may differ wildly.

View File

@ -0,0 +1,211 @@
---
status: accepted
author: @beeme1mr
created: 2025-06-06
updated: 2025-06-20
---
# Support Explicit Code Default Values in flagd Configuration
This ADR proposes adding support for explicitly configuring flagd to use code-defined default values by allowing `null` as a valid default variant. This change addresses the current limitation where users cannot differentiate between "use the code's default" and "use this configured default" without resorting to workarounds like misconfigured rulesets.
## Background
Currently, flagd requires a default variant to be specified in flag configurations. This creates a fundamental mismatch with the OpenFeature specification and common feature flag usage patterns where code-defined defaults serve as the ultimate fallback.
The current behavior leads to confusion and operational challenges:
1. **Two Sources of Truth**: Applications have default values defined in code (as per OpenFeature best practices), while flagd configurations require their own default variants. This dual-default pattern violates the principle of single source of truth.
2. **State Transition Issues**: When transitioning a flag from DISABLED to ENABLED state, the behavior changes unexpectedly:
- DISABLED state: Flag evaluation falls through to code defaults
- ENABLED state: Flag evaluation uses the configured default variant
3. **Workarounds**: Users resort to misconfiguring rulesets (e.g., returning invalid variants) to force fallback to code defaults, which generates confusing error states and complicates debugging.
4. **OpenFeature Alignment**: The OpenFeature specification emphasizes that code defaults should be the ultimate fallback, but flagd's current design doesn't provide a clean way to express this intent.
Related discussions and context can be found in the [OpenFeature specification](https://openfeature.dev/specification/types) and [flagd flag definitions reference](https://flagd.dev/reference/flag-definitions/).
## Requirements
- **Explicit Code Default Support**: Users must be able to explicitly configure a flag to use the code-defined default value as its resolution
- **Backward Compatibility**: Existing flag configurations must continue to work without modification
- **Clear Semantics**: The configuration must clearly indicate when code defaults are being used versus configured defaults
- **Appropriate Reason Codes**: Resolution details must include appropriate reason codes when code defaults are used (e.g., `DEFAULT` or a new specific reason)
- **Schema Validation**: JSON schema must support and validate the new configuration options
- **Provider Compatibility**: All OpenFeature providers must handle the new behavior correctly
- **Testbed Coverage**: flagd testbed must include test cases for the new functionality
## Considered Options
- **Option 1: Allow `null` as Default Variant** - Modify the schema to accept `null` as a valid value for defaultVariant, signaling "use code default"
- **Option 2: Make Default Variant Optional** - Remove the requirement for defaultVariant entirely, with absence meaning "use code default"
- **Option 3: Special Variant Value** - Define a reserved variant name (e.g., `"__CODE_DEFAULT__"`) that signals code default usage
- **Option 4: New Configuration Property** - Add a new property like `useCodeDefault: true` alongside or instead of defaultVariant
- **Option 5: Status Quo with Documentation** - Keep current behavior but improve documentation about workarounds
## Proposal
We propose implementing **Option 1: Allow `null` as Default Variant**, potentially combined with **Option 2: Make Default Variant Optional** for maximum flexibility.
The implementation leverages field presence in evaluation responses across all protocols (in-process, RPC, and OFREP). When a flag configuration has `defaultVariant: null`, the evaluation response omits the value field entirely, which serves as a programmatic signal to the client to use its code-defined default value.
This approach offers several key advantages:
1. **No Protocol Changes**: RPC and OFREP protocols remain unchanged
2. **Clear Semantics**: Omitted value field = "use your code default"
3. **Backward Compatible**: Existing clients and servers continue to work
4. **Universal Pattern**: Works consistently across all evaluation modes
The absence of a value field provides an unambiguous signal that distinguishes between "the server evaluated to null/false/empty" (value field present) and "the server delegates to your code default" (value field absent).
### Implementation Details
1. **Schema Changes**:
```json
{
"defaultVariant": {
"oneOf": [
{ "type": "string" },
{ "type": "null" }
],
"description": "Default variant to use. Set to null to use code-defined default."
}
}
```
2. **Evaluation Behavior**:
- When flag has `defaultVariant: null` and targeting returns no match
- Server responds with reason set to reason "ERROR" and error code "FLAG_NOT_FOUND"
- Client detects this reason value field and uses its code-defined default
- This same pattern works across all evaluation modes
3. **Provider Implementation**:
- No changes to existing providers
### Design Rationale
**Using "ERROR" reason**: We intentionally reuse the existing "ERROR" reason code rather than introducing a new one (like "CODE_DEFAULT"). This retains the current behavior of an disabled flag and allows for progressive enablement of a flag without unexpected variations in flag evaluation behavior.
Advantages of this approach:
- The "ERROR" reason is already used for cases where the flag is not found or misconfigured, so it aligns with the intent of using code defaults.
- This approach avoids introducing new reason codes that would require additional handling in providers and clients.
### API changes
**Flag Configuration**:
```yaml
flags:
my-feature:
state: ENABLED
defaultVariant: null # Explicitly use code default
variants:
on: true
off: false
targeting:
if:
- "===":
- var: user-type
- "beta"
- on
```
**OFREP Response** when code default is indicated:
#### Single flag evaluation response
A single flag evaluation returns a `404` status code.
```json
{
"key": "my-feature",
"errorCode": "FLAG_NOT_FOUND",
// Optional error details
"errorDetails": "Targeting not matched, using code default",
"metadata": {}
}
```
#### Bulk flag evaluation response
```json
{
"flags": [
// Flag is omitted from bulk response
]
}
```
**flagd RPC Response** (ResolveBooleanResponse):
```protobuf
{
"reason": "ERROR",
"errorCode": "FLAG_NOT_FOUND",
"metadata": {}
}
```
### Consequences
- Good, because it eliminates the confusion between code and configuration defaults
- Good, because it provides explicit control over default behavior without workarounds
- Good, because it aligns flagd more closely with OpenFeature specification principles
- Good, because it supports gradual flag rollout patterns more naturally
- Good, because it provides the ability to delegate to whatever is defined in code
- Good, because it requires no changes to existing RPC or protocol signatures
- Good, because it uses established patterns (field presence) for clear semantics
- Good, because it maintains full backward compatibility
- Bad, because it requires updates across multiple components (flagd, providers, testbed)
- Bad, because it introduces a new concept that users need to understand
- Neutral, because existing configurations continue to work unchange
### Implementation Plan
1. Update flagd-schemas with new JSON schema supporting null default variants
2. Update flagd-testbed with comprehensive test cases for all evaluation modes
3. Implement core logic in flagd to handle null defaults and omit value/variant fields
4. Update OpenFeature providers with the latest schema and test harness to ensure they handle the new behavior correctly
5. Documentation updates, migration guides, and playground examples to demonstrate the new configuration options
### Testing Considerations
To ensure correct implementation across all components:
1. **Provider Tests**: Each component (flagd, providers) must have unit tests verifying the handling of `null` as a default variant
2. **Integration Tests**: End-to-end tests across different language combinations (e.g., Go flagd with Java provider)
3. **OFREP Tests**: Verify JSON responses correctly omits flags with a `null` default variant
4. **Backward Compatibility Tests**: Ensure old providers handle new responses gracefully
5. **Consistency Tests**: Verify identical behavior across in-process, RPC, and OFREP modes
### Open questions
- How should providers handle responses with missing value fields in strongly-typed languages?
- We'll handle the same way as with optional fields, using language-specific patterns (e.g., pointers in Go, `hasValue()` in Java).
- Should we support both `null` and absent `defaultVariant` fields, or choose one approach?
- Yes, we'll support both `null` and absent fields to maximize flexibility. An absent `defaultVariant` will be the equivalent of `null`.
- What migration path should we recommend for users currently using workarounds?
- Update the flag configurations to use `defaultVariant: null` and remove any misconfigured rulesets that force code defaults.
- Should this feature be gated behind a configuration flag during initial rollout?
- We'll avoid public facing documentation until the feature is fully implemented and tested.
- How do we ensure consistent behavior across all provider implementations?
- Gherkin tests will be added to the flagd testbed to ensure all providers handle the new behavior consistently.
- Should providers validate that the reason is "DEFAULT" when value is omitted, or accept any omitted value as delegation?
- Providers should accept any omitted value as delegation.
- How do we handle edge cases where network protocols might strip empty fields?
- It would behaving as expected, as the absence of fields is the intended signal.
- When the client uses its code default after receiving a delegation response, what variant should be reported in telemetry/analytics?
- The variant will be omitted, indicating that the code default was used.
- Should we add explicit proto comments documenting the field omission behavior?
- Leave this to the implementers, but it would be beneficial to add comments in the proto files to clarify this behavior for future maintainers.
## More Information
- [OpenFeature Specification - Flag Evaluation](https://openfeature.dev/specification/types#flag-evaluation)
- [flagd Flag Definitions Reference](https://flagd.dev/reference/flag-definitions/)
- [flagd JSON Schema Repository](https://github.com/open-feature/flagd-schemas)
- [flagd Testbed](https://github.com/open-feature/flagd-testbed)

View File

@ -33,7 +33,7 @@ erDiagram
### In-Process evaluation
In-process deployments embed the flagd evaluation engine directly into the client application through the use of an [in-process provider](./installation.md#in-process).
In-process deployments embed the flagd evaluation engine directly into the client application through the use of an [in-process provider](./providers/index.md).
The in-process provider is connected via the sync protocol to an implementing [gRPC service](./concepts/syncs.md#grpc-sync) that provides the flag definitions.
You can use flagd as a [gRPC sync service](./reference/grpc-sync-service.md).
In this mode, the flag sync stream will expose aggregated flag configurations currently configured through [syncs](./concepts/syncs.md).

View File

@ -22,3 +22,4 @@ Below is a non-exhaustive table of common feature flag use-cases, and how flagd
| dynamic (context-sensitive) evaluation | flagd evaluations are context sensitive. Rules can use arbitrary context attributes as inputs for flag evaluation logic. |
| fractional evaluation / random assignment | flagd's [fractional](../reference/custom-operations/fractional-operation.md) custom operation supports pseudorandom assignment of flag values. |
| progressive roll-outs | Progressive roll-outs of new features can be accomplished by leveraging the [fractional](../reference/custom-operations/fractional-operation.md) custom operation as well as automation in your build pipeline, SCM, or infrastructure which updates the distribution over time. |
| feature flag telemetry | flagd supports the OpenTelemetry conventions for feature flags, by returning compliant [resolution details](https://openfeature.dev/specification/types#resolution-details) and [metadata](../reference/monitoring.md#metadata), in addition to flag values. |

View File

@ -10,7 +10,7 @@ flagd can connect to one or more sync sources.
The file path sync provider reads and watch the source file for updates(ex: changes and deletions).
It's important to note that most file operations result in multiple file system events.
For production use-cases, a symbolic link is recommended for the watched file, which enables atomic modification.
See the [relevant troubleshooting entry](../../troubleshooting/#extra-duplicate-events-in-file-syncs).
See the [relevant troubleshooting entry](../troubleshooting.md#extra-duplicate-events-in-file-syncs).
```shell
flagd start --uri file:etc/featureflags.json
@ -26,14 +26,19 @@ See [sync source](../reference/sync-configuration.md#source-configuration) confi
The HTTP sync provider fetch flags from a remote source and periodically poll the source for flag definition updates.
```shell
flagd start --uri https://my-flag-source.json
flagd start --uri https://my-flag-source/flags.json
```
In this example, `https://my-flag-source.json` is a remote endpoint responding valid feature flag definition when
In this example, `https://my-flag-source/flags.json` is a remote endpoint responding valid feature flag definition when
invoked with **HTTP GET** request.
The polling interval, port, TLS settings, and authentication information can be configured.
See [sync source](../reference/sync-configuration.md#source-configuration) configuration for details.
To optimize network usage, it honors the HTTP ETag protocol: if the server includes an `ETag` header in its response,
flagd will store this value and send it in the `If-None-Match` header on subsequent requests. If the flag data has
not changed, the server responds with 304 Not Modified, and flagd will skip updating its state. If the data has
changed, the server returns the new content and a new ETag, prompting flagd to update its flags.
---
### gRPC sync
@ -68,6 +73,53 @@ In this example, `default/my_example` expected to be a valid FeatureFlag resourc
namespace and `my_example` being the resource name.
See [sync source](../reference/sync-configuration.md#source-configuration) configuration for details.
---
### GCS sync
The GCS sync provider fetches flags from a GCS blob and periodically polls the GCS for the flag definition updates.
It uses [application default credentials](https://cloud.google.com/docs/authentication/application-default-credentials) if they
are [configured](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authorize the calls to GCS.
```shell
flagd start --uri gs://my-bucket/my-flags.json
```
In this example, `gs://my-bucket/my-flags.json` is expected to be a valid GCS URI accessible by the flagd
(either by being public or together with application default credentials).
The polling interval can be configured.
See [sync source](../reference/sync-configuration.md#source-configuration) configuration for details.
### Azure Blob sync
The Azure Blob sync provider fetches flags from an Azure Blob Storage blob and periodically polls the blob for the flag definition updates.
It uses [environment variables](https://pkg.go.dev/gocloud.dev/blob/azureblob#hdr-URLs) to set the Storage Account name and to
authorize the calls to Azure Blob Storage.
```shell
flagd start --uri azblob://my-container/my-flags.json
```
In this example, assuming the environment variable AZURE_STORAGE_ACCOUNT is set to `myaccount`, and other options are not set, the service URL will be:
`https://myaccount.blob.core.windows.net/my-container/my-flags.json`.
This is expected to be a valid service URL accessible by flagd (either by being public or together with environment variable credentials).
The polling interval can be configured.
See [sync source](../reference/sync-configuration.md#source-configuration) configuration for details.
### S3 sync
The S3 sync provider fetches flags from an S3 bucket and periodically polls for flag definition updates.
It uses [AWS standardized credentials chain](https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html) to authorize the calls to AWS.
```shell
flagd start --uri s3://my-bucket/my-flags.json
```
In this example, `s3://my-bucket/my-flags.json` is expected to be a valid URI accessible by flagd
(either by being public or together with the appropriate credentials read from a file or via the environment as described in the AWS docs linked above).
The polling interval is configurable.
See [sync source](../reference/sync-configuration.md#source-configuration) for details.
## Merging
Flagd can be configured to read from multiple sources at once, when this is the case flagd will merge all flag definition into a single

View File

@ -33,6 +33,27 @@ Please see [architecture](./architecture.md) and [installation](./installation.m
---
> How can I access the SBOM for flagd?
SBOMs for the flagd binary are available as assets on the [GitHub release page](https://github.com/open-feature/flagd/releases).
Container SBOMs can be inspected using the Docker CLI.
An example of inspecting the SBOM for the latest flagd `linux/amd64` container image:
```shell
docker buildx imagetools inspect ghcr.io/open-feature/flagd:latest \
--format '{{ json (index .SBOM "linux/amd64").SPDX }}'
```
An example of inspecting the SBOM for the latest flagd `linux/arm64` container image:
```shell
docker buildx imagetools inspect ghcr.io/open-feature/flagd:latest \
--format '{{ json (index .SBOM "linux/arm64").SPDX }}'
```
---
> Why doesn't flagd support {_my desired feature_}?
Because you haven't opened a PR or created an issue!

View File

@ -5,11 +5,11 @@
_flagd_ is a _feature flag evaluation engine_.
Think of it as a ready-made, open source, OpenFeature-compliant feature flag backend system.
With flagd you can:
With flagd, you can:
* modify flags in real time
* modify flags in real-time
* define flags of various types (boolean, string, number, JSON)
* use context-sensitive rules to target specific users or user-traits
* use context-sensitive rules to target specific users or user traits
* perform pseudorandom assignments for experimentation
* perform progressive roll-outs of new features
* aggregate flag definitions from multiple sources
@ -18,12 +18,12 @@ With flagd you can:
It doesn't include a UI, management console or a persistence layer.
It's configurable entirely via a [POSIX-style CLI](./reference/flagd-cli/flagd.md).
Thanks to it's minimalism, it's _extremely flexible_; you can leverage flagd as a sidecar alongside your application, an engine running in your application process, or as a central service evaluating thousands of flags per second.
Thanks to its minimalism, it's _extremely flexible_; you can leverage flagd as a sidecar alongside your application, an engine running in your application process, or as a central service evaluating thousands of flags per second.
## How do I deploy flagd?
flagd is designed to fit well into a variety of infrastructures, and can run on various architectures.
It run as a separate process or directly in your application (see [architecture](./architecture.md)).
flagd is designed to fit well into a variety of infrastructures and can run on various architectures.
It runs as a separate process or directly in your application (see [architecture](./architecture.md)).
It's distributed as a binary, container image, and various libraries (see [installation](./installation.md)).
If you're already leveraging containers in your infrastructure, you can extend the docker image with your required configuration.
You can also run flagd as a service on a VM or a "bare-metal" host.

File diff suppressed because one or more lines are too long

View File

@ -13,13 +13,15 @@ Providers for flagd come in two flavors: those that are built to communicate wit
The following table lists all the available flagd providers.
| Technology | RPC | in-process |
| ------------------------------------------------------------- | ---------------- | ---------------- |
| Technology | RPC | in-process |
| --------------------------------------------------- | ---------------- | ---------------- |
| :fontawesome-brands-golang: [Go](./go.md) | :material-check: | :material-check: |
| :fontawesome-brands-java: [Java](./java.md) | :material-check: | :material-check: |
| :fontawesome-brands-node-js: [Node.JS](./nodejs.md) | :material-check: | :material-check: |
| :simple-php: [PHP](./php.md) | :material-check: | :material-close: |
| :simple-dotnet: [.NET](./dotnet.md) | :material-check: | :material-close: |
| :simple-dotnet: [.NET](./dotnet.md) | :material-check: | :material-check: |
| :simple-python: [Python](./python.md) | :material-check: | :material-check: |
| :fontawesome-brands-rust: [Rust](./rust.md) | :material-check: | :material-check: |
| :material-web: [Web](./web.md) | :material-check: | :material-close: |
For information on implementing a flagd provider, see the specifications for [RPC](../reference/specifications/rpc-providers.md) and [in-process](../reference/specifications/in-process-providers.md) providers.
For information on implementing a flagd provider, see the [specification](../reference/specifications/providers.md).

9
docs/providers/python.md Normal file
View File

@ -0,0 +1,9 @@
# Python provider
## Installation
{%
include "https://raw.githubusercontent.com/open-feature/python-sdk-contrib/main/providers/openfeature-provider-flagd/README.md"
start="## Installation"
end="## License"
%}

9
docs/providers/rust.md Normal file
View File

@ -0,0 +1,9 @@
# Rust provider
## Installation
{%
include "https://raw.githubusercontent.com/open-feature/rust-sdk-contrib/refs/heads/main/crates/flagd/README.md"
start="### Installation"
end="### License"
%}

View File

@ -25,23 +25,58 @@ These types of feature flags are commonly used to gate access to a new feature u
The second flag has the key `background-color` and is a multi-variant string.
These are commonly used for A/B/(n) testing and experimentation.
### Start flagd
### Running Flagd
Run the following command to start flagd using docker. This will expose flagd on port `8013` and read from the `demo.flagd.json` file we downloaded in the previous step.
=== "Docker"
```shell
docker run \
--rm -it \
--name flagd \
-p 8013:8013 \
-v $(pwd):/etc/flagd \
ghcr.io/open-feature/flagd:latest start \
--uri file:./etc/flagd/demo.flagd.json
```
Run the following command to start flagd using docker. This will expose flagd on port `8013` and read from the `demo.flagd.json` file we downloaded in the previous step.
??? "Tips for Windows users"
In Windows, use WSL system for both the file location and Docker runtime.
Mixed file systems does not work and this is a [limitation of Docker](https://github.com/docker/for-win/issues/8479).
```shell
docker run \
--rm -it \
--name flagd \
-p 8013:8013 \
-v $(pwd):/etc/flagd \
ghcr.io/open-feature/flagd:latest start \
--uri file:./etc/flagd/demo.flagd.json
```
??? "Tips for Windows users"
In Windows, use WSL system for both the file location and Docker runtime.
Mixed file systems does not work and this is a [limitation of Docker](https://github.com/docker/for-win/issues/8479).
=== "Docker Compose"
Create a docker-compose.yaml file with the following contents:
```yaml
services:
flagd:
image: ghcr.io/open-feature/flagd:latest
volumes:
- ./flags:/flags
command: [
'start',
'--uri',
'file:./flags/demo.flagd.json',
]
ports:
- '8013:8013'
```
Create a folder called `flags` where the JSON flag files can reside. [Download the flag definition](#download-the-flag-definition) and move this JSON file to the flags folder.
```text
├── flags
│ ├── demo.flagd.json
├── docker-compose.yaml
```
Open up a terminal and run the following:
```shell
docker compose up
```
### Evaluating a feature flag

View File

@ -17,8 +17,7 @@ OpenFeature allows clients to pass contextual information which can then be used
{ "var": "email" }
]
},
// Split definitions contain an array with a variant and percentage
// Percentages must add up to 100
// Split definitions contain an array with a variant and relative weights
[
// Must match a variant defined in the flag definition
"red",
@ -34,17 +33,44 @@ OpenFeature allows clients to pass contextual information which can then be used
]
```
If not specified, the default weight for a variant is set to `1`, so an alternative to the example above would be the following:
```js
// Factional evaluation property name used in a targeting rule
"fractional": [
// Evaluation context property used to determine the split
// Note using `cat` and `$flagd.flagKey` is the suggested default to seed your hash value and prevent bucketing collisions
{
"cat": [
{ "var": "$flagd.flagKey" },
{ "var": "email" }
]
},
// Split definitions contain an array with a variant and relative weights
[
// Must match a variant defined in the flag definition
"red"
],
[
// Must match a variant defined in the flag definition
"green"
]
]
```
See the [headerColor](https://github.com/open-feature/flagd/blob/main/samples/example_flags.flagd.json#L88-#L133) flag.
The `defaultVariant` is `red`, but it contains a [targeting rule](../flag-definitions.md#targeting-rules), meaning a fractional evaluation occurs for flag evaluation with a `context` object containing `email` and where that `email` value contains `@faas.com`.
In this case, `25%` of the evaluations will receive `red`, `25%` will receive `blue`, and so on.
Assignment is deterministic (sticky) based on the expression supplied as the first parameter (`{ "cat": [{ "var": "$flagd.flagKey" }, { "var": "email" }]}`, in this case).
The value retrieved by this expression is referred to as the "bucketing value".
The value retrieved by this expression is referred to as the "bucketing value" and must be a string.
Other primitive types can be used by casting the value using `"cat"` operator.
For example, a less deterministic distribution can be achieved using `{ "cat": [{ "var": "$flagd.timestamp" }]}`.
The bucketing value expression can be omitted, in which case a concatenation of the `targetingKey` and the `flagKey` will be used.
The `fractional` operation is a custom JsonLogic operation which deterministically selects a variant based on
the defined distribution of each variant (as a percentage).
the defined distribution of each variant (as a relative weight).
This works by hashing ([murmur3](https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp))
the given data point, converting it into an int in the range [0, 99].
Whichever range this int falls in decides which variant
@ -56,8 +82,11 @@ The value is an array and the first element is a nested JsonLogic rule which res
This rule should typically consist of a seed concatenated with a session variable to use from the evaluation context.
This value should typically be something that remains consistent for the duration of a users session (e.g. email or session ID).
The seed is typically the flagKey so that experiments running across different flags are statistically independent, however, you can also specify another seed to either align or further decouple your allocations across different feature flags or use-cases.
The other elements in the array are nested arrays with the first element representing a variant and the second being the percentage that this option is selected.
There is no limit to the number of elements but the configured percentages must add up to 100.
The other elements in the array are nested arrays with the first element representing a variant and the second being the relative weight for this option.
There is no limit to the number of elements.
> [!NOTE]
> Older versions of the `fractional` operation were percentage based, and required all variants weights to sum to 100.
## Example

View File

@ -56,8 +56,15 @@ A fully configured flag may look like this.
"on",
"off"
]
},
"metadata": {
"version": "17"
}
}
},
"metadata": {
"team": "user-experience",
"flagSetId": "ecommerce"
}
}
```
@ -156,7 +163,7 @@ Example of an invalid configuration:
`targeting` is an **optional** property.
A targeting rule **must** be valid JSON.
Flagd uses a modified version of [JsonLogic](https://jsonlogic.com/), as well as some custom pre-processing, to evaluate these rules.
If no targeting rules are defined, the response reason will always be `STATIC`, this allows for the flag values to be cached, this behavior is described [here](specifications/rpc-providers.md#caching).
If no targeting rules are defined, the response reason will always be `STATIC`, this allows for the flag values to be cached, this behavior is described [here](specifications/providers.md#flag-evaluation-caching).
#### Variants Returned From Targeting Rules
@ -184,6 +191,9 @@ For example, when accessing flagd via HTTP, the POST body may look like this:
The evaluation context can be accessed in targeting rules using the `var` operation followed by the evaluation context property name.
The evaluation context can be appended by arbitrary key value pairs
via the `-X` command line flag.
| Description | Example |
| -------------------------------------------------------------- | ---------------------------------------------------- |
| Retrieve property from the evaluation context | `#!json { "var": "email" }` |
@ -336,6 +346,13 @@ Example:
}
```
## Metadata
Metadata can be defined at both the flag set (as a sibling of [flags](#flags)) and within each flag.
Flag metadata conveys arbitrary information about the flag or flag set, such as a version number, or the business unit that is responsible for the flag.
When flagd resolves flags, the returned [flag metadata](https://openfeature.dev/specification/types/#flag-metadata) is a merged representation of the metadata defined in the flag set, and the metadata defined in the flag, with the metadata defined in the flag taking priority.
See the [playground](/playground/?scenario-name=Flag+metadata) for an interactive example.
## Boolean Variant Shorthand
Since rules that return `true` or `false` map to the variant indexed by the equivalent string (`"true"`, `"false"`), you can use shorthand for these cases.

View File

@ -11,20 +11,29 @@ flagd start [flags]
### Options
```
-C, --cors-origin strings CORS allowed origins, * will allow all origins
-h, --help help for start
-z, --log-format string Set the logging format, e.g. console or json (default "console")
-m, --management-port int32 Port for management operations (default 8014)
-t, --metrics-exporter string Set the metrics exporter. Default(if unset) is Prometheus. Can be override to otel - OpenTelemetry metric exporter. Overriding to otel require otelCollectorURI to be present
-r, --ofrep-port int32 ofrep service port (default 8016)
-o, --otel-collector-uri string Set the grpc URI of the OpenTelemetry collector for flagd runtime. If unset, the collector setup will be ignored and traces will not be exported.
-p, --port int32 Port to listen on (default 8013)
-c, --server-cert-path string Server side tls certificate path
-k, --server-key-path string Server side tls key path
-d, --socket-path string Flagd socket path. With grpc the service will become available on this address. With http(s) the grpc-gateway proxy will use this address internally.
-s, --sources string JSON representation of an array of SourceConfig objects. This object contains 2 required fields, uri (string) and provider (string). Documentation for this object: https://flagd.dev/reference/sync-configuration/#source-configuration
-g, --sync-port int32 gRPC Sync port (default 8015)
-f, --uri .yaml/.yml/.json Set a sync provider uri to read data from, this can be a filepath, URL (HTTP and gRPC) or FeatureFlag custom resource. When flag keys are duplicated across multiple providers the merge priority follows the index of the flag arguments, as such flags from the uri at index 0 take the lowest precedence, with duplicated keys being overwritten by those from the uri at index 1. Please note that if you are using filepath, flagd only supports files with .yaml/.yml/.json extension.
-H, --context-from-header stringToString add key-value pairs to map header values to context values, where key is Header name, value is context key (default [])
-X, --context-value stringToString add arbitrary key value pairs to the flag evaluation context (default [])
-C, --cors-origin strings CORS allowed origins, * will allow all origins
--disable-sync-metadata Disables the getMetadata endpoint of the sync service. Defaults to false, but will default to true in later versions.
-h, --help help for start
-z, --log-format string Set the logging format, e.g. console or json (default "console")
-m, --management-port int32 Port for management operations (default 8014)
-t, --metrics-exporter string Set the metrics exporter. Default(if unset) is Prometheus. Can be override to otel - OpenTelemetry metric exporter. Overriding to otel require otelCollectorURI to be present
-r, --ofrep-port int32 ofrep service port (default 8016)
-A, --otel-ca-path string tls certificate authority path to use with OpenTelemetry collector
-D, --otel-cert-path string tls certificate path to use with OpenTelemetry collector
-o, --otel-collector-uri string Set the grpc URI of the OpenTelemetry collector for flagd runtime. If unset, the collector setup will be ignored and traces will not be exported.
-K, --otel-key-path string tls key path to use with OpenTelemetry collector
-I, --otel-reload-interval duration how long between reloading the otel tls certificate from disk (default 1h0m0s)
-p, --port int32 Port to listen on (default 8013)
-c, --server-cert-path string Server side tls certificate path
-k, --server-key-path string Server side tls key path
-d, --socket-path string Flagd unix socket path. With grpc the evaluations service will become available on this address. With http(s) the grpc-gateway proxy will use this address internally.
-s, --sources string JSON representation of an array of SourceConfig objects. This object contains 2 required fields, uri (string) and provider (string). Documentation for this object: https://flagd.dev/reference/sync-configuration/#source-configuration
--stream-deadline duration Set a server-side deadline for flagd sync and event streams (default 0, means no deadline).
-g, --sync-port int32 gRPC Sync port (default 8015)
-e, --sync-socket-path string Flagd sync service socket path. With grpc the sync service will be available on this address.
-f, --uri .yaml/.yml/.json Set a sync provider uri to read data from, this can be a filepath, URL (HTTP and gRPC), FeatureFlag custom resource, or GCS or Azure Blob. When flag keys are duplicated across multiple providers the merge priority follows the index of the flag arguments, as such flags from the uri at index 0 take the lowest precedence, with duplicated keys being overwritten by those from the uri at index 1. Please note that if you are using filepath, flagd only supports files with .yaml/.yml/.json extension.
```
### Options inherited from parent commands

Some files were not shown because too many files have changed in this diff Show More