From 0b9c1adc082a874b3fa8d43d531441675fca4417 Mon Sep 17 00:00:00 2001 From: Emmanuel Ojeah Date: Thu, 4 Jul 2024 10:26:29 +0100 Subject: [PATCH] version v2.2.1 --- CHANGELOG.rst | 20 ++++++++++++++++++++ README.md | 5 ++--- pyramid_zipkin/version.py | 2 +- setup.py | 2 +- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 65297b4..c81bbe2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,23 @@ +2.2.1 (2024-07-04) +------------------- +- Requires Python >= 3.8 +- Adds OTels semantic conventions for http server span attributes + - `http.request.method` + - `network.protocol.version` + - `url.path` + - `server.address` + - `server.port` + - `url.scheme` + - `user_agent.original` + - `url.query` + - `client.address` + - `http.response.status_code` + - `otel.status_code` + - `otel.library.name` + - `otel.library.version` +- Adds the Zipkin Annotation (OTel Event) when an exception occures as the type of exception +- Adds `exception.stacktrace` as an attribute if an exception occurs + 2.1.3 (2023-10-09) ------------------- - Handle exceptions during request processing to set response_status_code=500 and error.type diff --git a/README.md b/README.md index 94dbe63..6debf84 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Travis](https://img.shields.io/travis/Yelp/pyramid_zipkin.svg)](https://travis-ci.org/Yelp/pyramid_zipkin?branch=master) [![Coverage Status](https://img.shields.io/coveralls/Yelp/pyramid_zipkin.svg)](https://coveralls.io/r/Yelp/pyramid_zipkin) [![PyPi version](https://img.shields.io/pypi/v/pyramid_zipkin.svg)](https://pypi.python.org/pypi/pyramid_zipkin/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/pyramid_zipkin.svg)](https://pypi.python.org/pypi/pyramid_zipkin/) @@ -40,8 +39,8 @@ In your service's webapp, you need to include: To bump and deploy a new version after changes have been merged into master, follow these steps: - `$ git checkout master && git pull` - update `CHANGELOG.rst` to document the changes -- update `__version__` in `setup.py` -- `$ git add CHANGELOG.rst setup.py && git commit -m 'version '` +- update `__version__` in `pyramid_zipkin/version.py` +- `$ git add CHANGELOG.rst pyramid_zipkin/version.py && git commit -m 'version '` - `$ git tag v` - `$ git push origin master --tags` diff --git a/pyramid_zipkin/version.py b/pyramid_zipkin/version.py index 04188a1..36a511e 100644 --- a/pyramid_zipkin/version.py +++ b/pyramid_zipkin/version.py @@ -1 +1 @@ -__version__ = '2.2.0' +__version__ = '2.2.1' diff --git a/setup.py b/setup.py index a621f82..1e6f3d2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages from setuptools import setup -version = exec(open('pyramid_zipkin/version.py').read()) +from pyramid_zipkin.version import __version__ as version setup( name='pyramid_zipkin',