You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(telemetry): fixes for telemetry attributes and metrics tracking
- Improved client request duration handling.
- Fixed attribute filtering issue in some configurations.
- Updated `ClientConfiguration` to include telemetry configuration (like `Configuration`.)
- Enhanced tests to validate new telemetry attributes and ensure correct duration calculations.
@@ -78,16 +80,19 @@ Please note that if you use third-party OpenTelemetry tooling to visualize the a
78
80
- feat: enhancements to OpenTelemetry support (#120)
79
81
80
82
Note this introduces some breaking changes to our metrics:
83
+
81
84
1.`fga-client.request.method` is now in TitleCase to match the naming conventions in the Protos, e.g. `Check`, `ListObjects`, etc..
82
85
2. Due to possible high costs for attributes with high cardinality, we are no longer including the following attributes by default:
83
-
*`fga-client.user`
84
-
*`http.client.request.duration`
85
-
*`http.server.request.duration`
86
+
87
+
-`fga-client.user`
88
+
-`http.client.request.duration`
89
+
-`http.server.request.duration`
86
90
We added configuration options to allow you to set which specific metrics and attributes you care about in case the defaults don't work for your use-case
- feat: add support for specifying consistency when evaluating or reading (#129)
92
97
Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag
93
98
`enable-consistency-params` enabled. See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details.
@@ -155,21 +160,22 @@ You will have to modify some parts of your code, but we hope this will be to the
155
160
and so the Pointer-to-String conversion is no longer needed.
156
161
157
162
Some of the changes to expect:
163
+
158
164
- The following request interfaces changed:
159
-
-`CheckRequest`: the `TupleKey` field is now of interface `CheckRequestTupleKey`, you can also now pass in `Context`
160
-
-`ExpandRequest`: the `TupleKey` field is now of interface `ExpandRequestTupleKey`
161
-
-`ReadRequest`: the `TupleKey` field is now of interface `ReadRequestTupleKey`
162
-
-`WriteRequest`: now takes `WriteRequestWrites` and `WriteRequestDeletes`, the latter of which accepts `TupleKeyWithoutCondition`
163
-
- And more
165
+
-`CheckRequest`: the `TupleKey` field is now of interface `CheckRequestTupleKey`, you can also now pass in `Context`
166
+
-`ExpandRequest`: the `TupleKey` field is now of interface `ExpandRequestTupleKey`
167
+
-`ReadRequest`: the `TupleKey` field is now of interface `ReadRequestTupleKey`
168
+
-`WriteRequest`: now takes `WriteRequestWrites` and `WriteRequestDeletes`, the latter of which accepts `TupleKeyWithoutCondition`
169
+
- And more
164
170
- The following interfaces had fields that were optional are are now required:
165
-
-`CreateStoreResponse`
166
-
-`GetStoreResponse`
167
-
-`ListStoresResponse`
168
-
-`ListObjectsResponse`
169
-
-`ReadChangesResponse`
170
-
-`ReadResponse`
171
-
-`AuthorizationModel`
172
-
- And more
171
+
-`CreateStoreResponse`
172
+
-`GetStoreResponse`
173
+
-`ListStoresResponse`
174
+
-`ListObjectsResponse`
175
+
-`ReadChangesResponse`
176
+
-`ReadResponse`
177
+
-`AuthorizationModel`
178
+
- And more
173
179
174
180
Take a look at the changes in models in https://github.com/openfga/python-sdk/commit/9ed1f70d64db71451de2eb26e330bbd511625c5c and https://github.com/openfga/python-sdk/pull/59/files for more.
175
181
@@ -182,31 +188,36 @@ Note: `v0.3.4` has been re-released as `v0.4.0` due to breaking changes
- fix(client): fix a crash when calling check with contextual tuples (https://github.com/openfga/python-sdk/commit/dded83f9a75dc1f01c1cfbd8385a25654129f78f)
211
222
- chore(docs): update README and fix a few typos (https://github.com/openfga/python-sdk/pull/21, https://github.com/openfga/python-sdk/pull/31, https://github.com/openfga/python-sdk/pull/32, https://github.com/openfga/python-sdk/pull/33, https://github.com/openfga/python-sdk/pull/34, https://github.com/openfga/python-sdk/pull/37)
212
223
@@ -215,6 +226,7 @@ Note: `v0.3.4` has been re-released as `v0.4.0` due to breaking changes
-[BREAKING] feat!: `schema_version` is now required when calling `write_authorization_model`
219
231
-[BREAKING] chore!: drop support for python < 3.10
220
232
- feat(client): add OpenFgaClient wrapper see [docs](https://github.com/openfga/python-sdk/tree/main#readme), see the `v0.1.1` docs for [the OpenFgaApi docs](https://github.com/openfga/python-sdk/tree/v0.1.1#readme)
@@ -238,18 +250,20 @@ Changes:
238
250
Updated to include support for [OpenFGA 0.3.0](https://github.com/openfga/openfga/releases/tag/v0.3.0)
239
251
240
252
Changes:
253
+
241
254
-[BREAKING] feat(list-objects)!: response has been changed to include the object type
242
-
e.g. response that was `{"object_ids":["roadmap"]}`, will now be `{"objects":["document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"]}`
255
+
e.g. response that was `{"object_ids":["roadmap"]}`, will now be `{"objects":["document:0192ab2a-d83f-756d-9397-c5ed9f3cb69a"]}`
243
256
244
257
Fixes:
245
-
- fix(models): update interfaces that had incorrectly optional fields to make them required
246
258
259
+
- fix(models): update interfaces that had incorrectly optional fields to make them required
0 commit comments