Skip to content

Commit 9e36918

Browse files
authored
release: v0.7.1 (#125)
2 parents ce12fcf + 7ceec30 commit 9e36918

File tree

14 files changed

+29
-15
lines changed

14 files changed

+29
-15
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## v0.7.1
4+
5+
### [0.7.1](https://github.com/openfga/python-sdk/compare/v0.7.0...v0.7.1) (2024-09-16)
6+
7+
This release includes fixes for several bugs identified in the previous release related to OpenTelemetry metrics reporting: (#124)
8+
9+
- fix: attribute values are now correctly exported as their intended types (previously, these were all sent as string values)
10+
- fix: `http_client_request_duration` being reported in seconds rather than the intended milliseconds
11+
- fix: sync client mistakenly passing the entire configuration (rather than just the OpenTelemetry configuration as intended) to `queryDuration()` and `requestDuration()`
12+
- fix: some attributes may not have been exported as expected under some conditions
13+
- fix: `queryDuration()` and `requestDuration()` may not have updated their histograms reliably when `attr_http_client_request_duration` or `attr_http_server_request_duration` (respectively) were not enabled (which is the default)
14+
15+
Please note that if you use third-party OpenTelemetry tooling to visualize the attributes mentioned above, you may need to update your queries to account for these changes.
16+
317
## v0.7.0
418

519
### [0.7.0](https://github.com/openfga/python-sdk/compare/v0.6.1...v0.7.0) (2024-08-30)

example/example1/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ attrs >= 23.1.0
44
frozenlist >= 1.4.1
55
idna >= 3.6
66
multidict >= 6.0.4
7-
openfga-sdk >= 0.7.0
7+
openfga-sdk >= 0.7.1
88
python-dateutil >= 2.8.2
99
urllib3 >= 2.1.0
1010
yarl >= 1.9.4

example/example1/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
NAME = "example1"
1616
VERSION = "0.0.1"
17-
REQUIRES = ["openfga-sdk >= 0.7.0"]
17+
REQUIRES = ["openfga-sdk >= 0.7.1"]
1818

1919
setup(
2020
name=NAME,

openfga_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1111
"""
1212

13-
__version__ = "0.7.0"
13+
__version__ = "0.7.1"
1414

1515
from openfga_sdk.api.open_fga_api import OpenFgaApi
1616
from openfga_sdk.api_client import ApiClient

openfga_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from openfga_sdk.telemetry import Telemetry
3737
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
3838

39-
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.0"
39+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.1"
4040

4141

4242
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def to_debug_report(self):
478478
"OS: {env}\n"
479479
"Python Version: {pyversion}\n"
480480
"Version of the API: 1.x\n"
481-
"SDK Package Version: 0.7.0".format(env=sys.platform, pyversion=sys.version)
481+
"SDK Package Version: 0.7.1".format(env=sys.platform, pyversion=sys.version)
482482
)
483483

484484
def get_host_settings(self):

openfga_sdk/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.7.0",
86+
"User-Agent": "openfga-sdk (python) 0.7.1",
8787
}
8888
)
8989

openfga_sdk/sync/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from openfga_sdk.telemetry import Telemetry
3636
from openfga_sdk.telemetry.attributes import TelemetryAttribute, TelemetryAttributes
3737

38-
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.0"
38+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.1"
3939

4040

4141
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/sync/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _obtain_token(self, client):
8383
{
8484
"Accept": "application/json",
8585
"Content-Type": "application/x-www-form-urlencoded",
86-
"User-Agent": "openfga-sdk (python) 0.7.0",
86+
"User-Agent": "openfga-sdk (python) 0.7.1",
8787
}
8888
)
8989

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from setuptools import find_packages, setup
1717

1818
NAME = "openfga-sdk"
19-
VERSION = "0.7.0"
19+
VERSION = "0.7.1"
2020
REQUIRES = []
2121

2222

0 commit comments

Comments
 (0)