Skip to content

Commit 6338d1c

Browse files
committed
Update for 2.0.0 (final) release; add compat/testing for Python 3.9-3.12; add DeprecationWarning on import
1 parent 8716e02 commit 6338d1c

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

README.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Flask-OpenTracing
33
#################
44

5+
**Note:** *This package is no longer maintained or supported. Migrate your application
6+
to use* `opentelemetry-api`_.
7+
8+
59
This package enables distributed tracing in Flask applications via `The OpenTracing Project`_. Once a production system contends with real concurrency or splits into many services, crucial (and formerly easy) tasks become difficult: user-facing latency optimization, root-cause analysis of backend errors, communication about distinct pieces of a now-distributed system, etc. Distributed tracing follows a request on its journey from inception to completion from mobile/browser all the way to the microservices.
610

711
As core services and libraries adopt OpenTracing, the application builder is no longer burdened with the task of adding basic tracing instrumentation to their own code. In this way, developers can build their applications with the tools they prefer and benefit from built-in tracing instrumentation. OpenTracing implementations exist for major distributed tracing systems and can be bound or swapped with a one-line configuration change.
@@ -13,6 +17,7 @@ If you are migrating from the 0.x series, you may want to read the list of `brea
1317
.. _The OpenTracing Project: http://opentracing.io/
1418
.. _source code: https://github.com/opentracing/opentracing-python
1519
.. _breaking changes: #breaking-changes-from-0-x
20+
.. _opentelemetry-api: https://pypi.org/project/opentelemetry-api/
1621

1722
Installation
1823
============

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
2.0.0

flask_opentracing/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
import warnings
2+
13
from .tracing import FlaskTracing # noqa
24
from .tracing import FlaskTracing as FlaskTracer # noqa, deprecated
5+
6+
warnings.warn(
7+
'This package is no longer supported.'
8+
' Migrate to using opentelemetry-api.',
9+
DeprecationWarning,
10+
stacklevel=2
11+
)

setup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
'License :: OSI Approved :: BSD License',
4343
'Operating System :: OS Independent',
4444
'Programming Language :: Python',
45-
'Programming Language :: Python :: 2',
46-
'Programming Language :: Python :: 2.7',
4745
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.5',
49-
'Programming Language :: Python :: 3.6',
50-
'Programming Language :: Python :: 3.7',
5146
'Programming Language :: Python :: 3.8',
47+
'Programming Language :: Python :: 3.9',
48+
'Programming Language :: Python :: 3.10',
49+
'Programming Language :: Python :: 3.11',
50+
'Programming Language :: Python :: 3.12',
5251
'Programming Language :: Python :: Implementation :: CPython',
5352
'Programming Language :: Python :: Implementation :: PyPy',
53+
'Development Status :: 7 - Inactive',
5454
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
5555
'Topic :: Software Development :: Libraries :: Python Modules'
5656
]

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[tox]
2-
envlist = py27,py3{5,6,7,8,9,10,11,12},pypy{,3},flake8
2+
envlist = py3{8,9,10,11,12},pypy{,3},flake8
33
skip_missing_interpreters = true
44

55
[travis]
66
python =
7-
3.7: py37,flake8
7+
3.9: py39,flake8
88

99
[travis:env]
1010
TRAVIS_BUILD_STAGE_NAME =
1111
Lint: flake8
12-
Test: py27,py3{5,6,7,8},pypy{,3}
12+
Test: py3{8,9,10,11,12},pypy{,3}
1313

1414
[testenv:flake8]
15-
basepython = python3.7
15+
basepython = python3.9
1616
deps =
1717
flake8
1818
flake8-quotes

0 commit comments

Comments
 (0)