Skip to content

Commit fd37b12

Browse files
authored
release: v0.7.0 (#121)
2 parents 33903ba + fcf789f commit fd37b12

14 files changed

Lines changed: 29 additions & 15 deletions

File tree

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.0
4+
5+
### [0.7.0](https://github.com/openfga/python-sdk/compare/v0.6.1...v0.7.0) (2024-08-30)
6+
7+
- feat: enhancements to OpenTelemetry support (#120)
8+
9+
Note this introduces some breaking changes to our metrics:
10+
1. `fga-client.request.method` is now in TitleCase to match the naming conventions in the Protos, e.g. `Check`, `ListObjects`, etc..
11+
2. Due to possible high costs for attributes with high cardinality, we are no longer including the following attributes by default:
12+
* `fga-client.user`
13+
* `http.client.request.duration`
14+
* `http.server.request.duration`
15+
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
16+
317
## v0.6.1
418

519
### [0.6.1](https://github.com/openfga/python-sdk/compare/v0.6.0...v0.6.1) (2024-07-31)

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.6.1
7+
openfga-sdk >= 0.7.0
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.6.1"]
17+
REQUIRES = ["openfga-sdk >= 0.7.0"]
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.6.1"
13+
__version__ = "0.7.0"
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.6.1"
39+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.0"
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.6.1".format(env=sys.platform, pyversion=sys.version)
481+
"SDK Package Version: 0.7.0".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.6.1",
86+
"User-Agent": "openfga-sdk (python) 0.7.0",
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.6.1"
38+
DEFAULT_USER_AGENT = "openfga-sdk python/0.7.0"
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.6.1",
86+
"User-Agent": "openfga-sdk (python) 0.7.0",
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.6.1"
19+
VERSION = "0.7.0"
2020
REQUIRES = []
2121

2222

0 commit comments

Comments
 (0)