Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
9eced47
feat(OTel): Initial commit to migrate to OpenTelemetry.
pvital Mar 14, 2024
3f8f5e2
test(OTel): Remove opentracing tests and disable tests.
pvital Mar 21, 2024
095c664
ci(OTel): Adapt CircleCI to OTel and set to run only on master branch.
pvital Mar 21, 2024
ce2e798
refactor(span): Span and SpanContext migration to use OTel.
GSVarsha Mar 25, 2024
7a166c3
feat(OTel): Remove dependency of basictracer.
pvital Mar 17, 2024
3f9674c
style: Format recorder.py and test_host_collector.py, and fix lint vi…
pvital Mar 17, 2024
cedb2bd
feat(OTel): Add Sampler abstract class and adapt InstanaSampler class.
pvital Mar 28, 2024
54f615d
refactor(tracer): Tracer migration to use OTel.
pvital Mar 28, 2024
55fcef5
style: format singletons.py, tracer.py and tests/helpers.py
pvital Mar 28, 2024
655c63c
fix: handle circular imports caused by singletons.env_is_test
GSVarsha Apr 2, 2024
ff5e183
feat(OTel): Enhance SpanContext and tracing utilities.
GSVarsha Apr 4, 2024
8bef9b2
feat(OTel): Enhance Tracer classes.
pvital Apr 8, 2024
b5a79b0
refactor: Tracer and Span ID generation.
pvital Apr 10, 2024
415f2aa
test(OTel): Disable auto instrumentation.
pvital Apr 10, 2024
c60c645
fix(test): Skip test_stan_recorder.py on macOS.
pvital Apr 10, 2024
f996903
style: format conftest.py
pvital Apr 10, 2024
3b1e5d6
refactor: test_id_management.py to handle int IDs.
pvital Apr 10, 2024
593cc54
test(OTel): Add TracerProvider and Tracer tests.
pvital Apr 10, 2024
0276b99
style: collector files
pvital Apr 11, 2024
4f4dcb9
test(OTel): Add tests for SpanContext and Event classes.
pvital Apr 18, 2024
bb51c3d
tests(OTel): Add tests for InstanaSpan, BaseSpan, SDKSpan and Registe…
pvital Apr 29, 2024
ba68a41
adapt get_current_span(), get_active_tracer() & get_tracer_tuple() to…
GSVarsha Jul 4, 2024
143c6ff
adapt inject and extract to OTel
GSVarsha Jul 4, 2024
efa779b
adapt traceparent, tracestate to OTel
GSVarsha Jul 4, 2024
6e1a436
feat: Add CarrierT type to BasePropagator.
pvital Jul 4, 2024
9378c1a
fix: Import of gc in collector/helpers/runtime.py
pvital Jul 4, 2024
a021b7f
fix(tests): Add pytest-mock as test requirement.
pvital Jul 4, 2024
f5a9cfb
ci(OTel): Remove Cassandra, Couchbase and Gevent tests
pvital Jul 4, 2024
e91e68a
fix: Record Spans during closing.
pvital Jul 9, 2024
6a3b174
refactor: Instana's Span structure.
pvital Jul 9, 2024
e90d9de
fix(tests): Adapt unit tests after Span structure refactor.
pvital Jul 14, 2024
3c5d172
fix: add stack to readable_span
GSVarsha Jul 19, 2024
9d0fb85
fix: calculate and add duration to readable_span
GSVarsha Jul 19, 2024
841364b
fix(tests): Adapt unit tests to span.duration changes
GSVarsha Jul 19, 2024
9762240
fix: span_context changes
GSVarsha Jul 19, 2024
e2c7d46
fix(tests): Adapt unittests to span context changes
GSVarsha Jul 19, 2024
250e10b
style: Update type hints.
pvital Jul 21, 2024
2e657fe
fix(tests): Add Span duration unit tests.
pvital Jul 21, 2024
a67ad20
fix: use the ENUM class for intermediate span as well
GSVarsha Jul 22, 2024
eeec4e0
fix(tests): Adapt registered_span unit tests after span.k refactor
GSVarsha Jul 22, 2024
a735f5d
fix: Report data to Agent
GSVarsha Jul 22, 2024
e834a73
minor fixes
GSVarsha Jul 22, 2024
ce57858
instrumentation(logging): Adapt to OTel spec
GSVarsha Jul 15, 2024
03f691d
test(logging): Adapt unit tests after logging instrumentation refactor
GSVarsha Jul 15, 2024
c1aa0d2
fix(logging): refactor instrumantation after span context changes
GSVarsha Jul 23, 2024
3ec4ebc
fix(tests): Adapt unit tests to span.kind changes
GSVarsha Jul 23, 2024
4bda35b
tests(logging): Add tests to increase coverage
GSVarsha Jul 24, 2024
4f31e06
tests(logging): use py std assert statements
GSVarsha Jul 24, 2024
2605d3b
fix(style): Add type hints
GSVarsha Jul 24, 2024
bd3661b
fix: TracerProvider.get_tracer() after API update.
pvital Jul 25, 2024
7afc100
fix: log message
GSVarsha Jul 29, 2024
fa60f26
fix: different traces' trace id within a session
GSVarsha Jul 30, 2024
7f7fd75
fix(tests): Remove tracer_id from tests
GSVarsha Jul 30, 2024
635d9bc
fix: Add tests for root span context
GSVarsha Jul 30, 2024
46c58f3
instrumentation(flask): add logic to set the implicit current context…
GSVarsha Jul 4, 2024
a46b933
instrumentation(flask): Adapt common to OTel spec
GSVarsha Jul 9, 2024
082b9a1
instrumentation(flask): Adapt with_blinker to OTel spec
GSVarsha Jul 9, 2024
b3e74b4
instrumentation(flask): end the span only if it is recording
GSVarsha Jul 10, 2024
636a2f0
instrumentation(flask): vanilla
GSVarsha Jul 10, 2024
041e35e
fix: receive span_context as arg in start_span(), start_as_current_sp…
GSVarsha Jul 25, 2024
d38c997
fix(flask_app): Adapt to OTel spec
GSVarsha Jul 25, 2024
d2ea251
tests(flask): Adapt unit tests to OTel spec
GSVarsha Jul 25, 2024
87a5c1a
fix(vanilla): receive span_context as arg in start_span()
GSVarsha Jul 26, 2024
f4db04f
style(with_blinker): Add type hints
GSVarsha Jul 26, 2024
c959e78
tests(flask): Add tests to increase coverage
GSVarsha Jul 26, 2024
15706a7
tests(flask): use py std assert statements
GSVarsha Jul 26, 2024
ec711ae
style: fix import statements
GSVarsha Jul 26, 2024
66987db
fix(tests): add tests to handle `got_request_exception` signal
GSVarsha Jul 26, 2024
a212eba
fix: fix deprecation warning
GSVarsha Jul 26, 2024
fc13504
style: Add typehints
GSVarsha Jul 29, 2024
111250a
fix(tests): fetch log msg from data["log"]
GSVarsha Jul 29, 2024
a0b23a3
fix: Add sem-conv to requirements file
GSVarsha Jul 31, 2024
e72dfdd
fix: modify stmts with `is not None`
GSVarsha Jul 31, 2024
efd9faa
style: TypeHint fixes
GSVarsha Jul 31, 2024
ea6a500
added unittest for readable span
CagriYonca Jul 31, 2024
53b6020
changed test folder structure
CagriYonca Jul 31, 2024
e423aa5
fix(tests): Add pytest-mock as test requirement.
pvital Jul 4, 2024
2fd6080
fix: Remove not necessary async_tracer and tornado_tracer.
pvital Mar 21, 2024
b254066
style: add type hints in the traceutils.py file.
pvital May 27, 2024
b743e9c
refactor: urllib3 instrumentation.
pvital May 27, 2024
ecd90ae
fix(urllib3): pass the parent span context to start_as_current_span()
GSVarsha Jul 22, 2024
ce876b0
style: format instrumentation/urllib3.py
pvital Jul 9, 2024
04976a6
tests(urllib3): adapt tests to OTel usage.
pvital Aug 1, 2024
16a531c
chore: Advanced exclusion from coverage.py
pvital Aug 5, 2024
f6b20cd
test(OTel): enable instrumentation tests.
pvital Aug 1, 2024
1e057cb
fix: context propagation in nested spans
GSVarsha Aug 19, 2024
d7090d7
refactor(instrumentation): wsgi
GSVarsha Aug 12, 2024
61c0622
wsgi: Add Bottle app
GSVarsha Aug 12, 2024
93d16ac
wsgi: Adapt tests to middleware and bottle
GSVarsha Aug 12, 2024
d4382cc
refactor(tests): use python standard assert stmts
GSVarsha Aug 12, 2024
d74911c
style: Add TypeHints, fix imports
GSVarsha Aug 16, 2024
f49b03f
wsgi: enable tests after refactor
GSVarsha Aug 16, 2024
5cd15d0
refactor(tests): modify port names for flask and wsgi tests
GSVarsha Aug 16, 2024
b638d70
tests: Add legacy-cgi as requirement for bottle_wsgi in py 3.13
GSVarsha Aug 16, 2024
e01a436
wsgi: minor fixes
GSVarsha Aug 19, 2024
bd35899
refactor: ASGI instrumentation
pvital Aug 12, 2024
329fcec
refactor: Starlette instrumentation.
pvital Aug 12, 2024
ed892ac
tests(asgi+starlette): adapt tests to OTel usage.
pvital Aug 12, 2024
e0a24ab
implementation: added opentelemetry support and related unittests
CagriYonca Aug 7, 2024
135ed42
fix: removed procedure if exists
CagriYonca Aug 7, 2024
3970a60
fix: updated postgres version used in circle ci
CagriYonca Aug 7, 2024
8b87a72
fix: fixed pytest errors for python 3.10-11-12
CagriYonca Aug 8, 2024
31bd0d8
fix: updated conftest.py to ignore pep0249 in python3.13
CagriYonca Aug 8, 2024
956477b
fix: changed parameter from str to int
CagriYonca Aug 8, 2024
6cf1e32
fix: renamed setup function, added span context parameter to tracer
CagriYonca Aug 12, 2024
58f311f
fix: changed span kind
CagriYonca Aug 13, 2024
85fa447
fix: changed span.kind unittest
CagriYonca Aug 13, 2024
9eaa56d
fix: added type hints and return types
CagriYonca Aug 15, 2024
64564f4
update: updated type annotations
CagriYonca Aug 19, 2024
d929068
update: updated setup function
CagriYonca Aug 19, 2024
9d7ae69
fix: type annotations has been fixed
CagriYonca Aug 19, 2024
b489eb1
update: added reset_table and reset_procedure functions
CagriYonca Aug 20, 2024
8e9b462
update: updated connection params
CagriYonca Aug 20, 2024
f67470d
fix: removed unnecessary patch block
CagriYonca Aug 22, 2024
dcfdda1
django: refactor instrumentation
GSVarsha Aug 20, 2024
1831e84
django: Adapt tests after refactor
GSVarsha Aug 20, 2024
b0f7316
tests(django): increase coverage
GSVarsha Aug 22, 2024
9851274
sdk_span: Add OTel SpanKind to entry and exit kind
GSVarsha Aug 23, 2024
296d291
style(django): Add style changes
GSVarsha Aug 23, 2024
6a39d49
fix: Update SpanAttributes in ASGI instrumentation
pvital Aug 21, 2024
00188da
refactor: FastAPI instrumentation.
pvital Aug 20, 2024
4f30e58
tests(fastapi): adapt tests to OTel usage.
pvital Aug 20, 2024
c0d92ae
fix: handle suppression
GSVarsha Aug 26, 2024
e1c345d
fix: test_non_async_simple
GSVarsha Aug 26, 2024
92c46ac
fix: starlette import error
GSVarsha Aug 28, 2024
dc6a121
fix(circleci): exclude google cloud jobs till the instrumentation is …
GSVarsha Aug 28, 2024
1a6224d
fix: Flaky test in urllib3
GSVarsha Aug 28, 2024
bd8b408
boto3: refactor instrumentation
GSVarsha Aug 21, 2024
07901c9
boto3: refactor tests
GSVarsha Aug 22, 2024
16a19e5
boto3: Add typehints to method signature
GSVarsha Aug 30, 2024
28b9a2f
boto3: Add style changes
GSVarsha Aug 30, 2024
38127f3
style: format conftest.py
pvital Apr 10, 2024
d751337
fix(tests): Adapt unit tests after Span structure refactor.
pvital Jul 14, 2024
adf842d
feature: added psycopg2 implementation
CagriYonca Aug 21, 2024
0a5fa43
update: added typing annotations
CagriYonca Aug 26, 2024
ba04ae5
fix: fixed assertions
CagriYonca Aug 28, 2024
5c5e470
imported pep0249 to instrumentation
CagriYonca Aug 28, 2024
924f8f4
update: updated typing annotations
CagriYonca Aug 30, 2024
b6d250e
fix: Adapt logging tests to OTel after rebase.
pvital Sep 2, 2024
51d30f0
tests(logging): Refactor to pure pytest UT.
pvital Sep 2, 2024
35b8a50
fix: refactor of unittests
CagriYonca Sep 4, 2024
6553e30
refactor(pymysql): added instrumentation of pymysql
CagriYonca Sep 3, 2024
3e79248
unittests(pymysql): added refactor of unittests
CagriYonca Sep 3, 2024
242cc1f
refactor(mysqlclient): added instrumentation of mysqlclient
CagriYonca Sep 3, 2024
6604c27
unittest(mysqlclient): added unittests and typing annotations
CagriYonca Sep 3, 2024
f7c738c
refactor(pymongo): added otel instrumentation of pymongo
CagriYonca Sep 3, 2024
afaae0b
unittests(pymongo): added unittests for instrumentation
CagriYonca Sep 3, 2024
e77c437
refactor: Asyncio instrumentation
pvital Aug 28, 2024
00f081d
refactor: AIOHTTP server and client instrumentation
pvital Aug 23, 2024
c06b862
tests(asyncio): adapt tests to OTel usage.
pvital Aug 28, 2024
eb567b2
tests(aiohttp): adapt tests to OTel usage.
pvital Aug 23, 2024
250a5de
feat: enable auto-instrumentation with middleware for sanic
GSVarsha Sep 9, 2024
6c977c8
sanic: refactor tests
GSVarsha Sep 11, 2024
4158094
sanic: use the lightweight sanic_testing module
GSVarsha Sep 16, 2024
66f361a
refactor(couchbase): added otel instrumentation of couchbase
CagriYonca Sep 13, 2024
667bc3b
unittests(couchbase): added unittests of couchbase instrumentation
CagriYonca Sep 13, 2024
1c5fb1a
refactor(cassandra): added cassandra otel instrumentation
CagriYonca Sep 12, 2024
a2f4d29
unittest(cassandra): added unittests of cassandra otel instrumentation
CagriYonca Sep 12, 2024
cf60809
refactor(redis): added instrumentation of redis
CagriYonca Sep 18, 2024
4391de0
unittest(redis): added unittests for redis
CagriYonca Sep 18, 2024
ea6b8f5
refactor: Pika instrumentation.
pvital Sep 10, 2024
56441a1
tests(pika): adapt tests to OTel usage.
pvital Sep 10, 2024
cc1384c
refactor: Remove TestAgent from the production code.
pvital Sep 19, 2024
7fc6c82
refactor(sqlalchemy): added sqlalchemy otel instrumentation
CagriYonca Sep 18, 2024
4ec8dfb
unittest(sqlalchemy): added unittests of sqlalchemy otel instrumentation
CagriYonca Sep 18, 2024
e79d740
added cassandra instrumentation
CagriYonca Sep 20, 2024
fe7cf06
refactor: pyramid tween instrumentation
GSVarsha Sep 12, 2024
1b58bf4
pyramid: adapt tests after refactor
GSVarsha Sep 17, 2024
c321991
pyramid: enable auto-instrumentation
GSVarsha Sep 20, 2024
d7dcb1e
pyramid: change from sdk span (http) to registered entry span (wsgi)
GSVarsha Sep 21, 2024
52f8aeb
style: format autoprofile files.
pvital Sep 23, 2024
91bd061
tests(autoprofile): adapt tests to OTel usage.
pvital Sep 23, 2024
34ef490
fix: propagators and traceparent to OTel spec.
pvital Sep 24, 2024
fd82b29
tests(propagators): adapt tests to OTel usage.
pvital Sep 24, 2024
3bbecc8
fix: Remove an unsupported Span attribute.
GSVarsha Sep 25, 2024
8967bb4
tornado: refactor client instrumentation
GSVarsha Sep 22, 2024
9203a4c
tornado: refactor server instrumentation
GSVarsha Sep 22, 2024
708d2e8
tornado: adapt tests after refactor
GSVarsha Sep 24, 2024
6ba6677
ci(tornado): run on the latest version
GSVarsha Sep 25, 2024
2363650
grpcio: refactor instrumentation
GSVarsha Sep 25, 2024
fd1c343
grpcio: adapt tests after refactor
GSVarsha Sep 25, 2024
e834cb8
grpcio: increase coverage
GSVarsha Sep 25, 2024
89cc820
tornado: skip flaky tests
GSVarsha Sep 26, 2024
8a02cca
fix(sanic): capture headers only if `agent.options.extra_http_headers…
GSVarsha Sep 30, 2024
9d52085
fix(couchbase): fix skipping instrumentation for unsupported versions
GSVarsha Sep 30, 2024
91a5666
fix: capture custom tags on sdk spans
GSVarsha Sep 30, 2024
57716ac
unittest(span): added logger name and logging level
CagriYonca Sep 29, 2024
e722354
refactor(celery): added celery otel instrumentation
CagriYonca Sep 29, 2024
b064ec6
unittests(celery): added unittests of celery otel instrumentation
CagriYonca Sep 29, 2024
cfecc25
refactor(pubsub): added pubsub otel instrumentation
CagriYonca Sep 27, 2024
af9e40b
unittests(pubsub): added unittests of pubsub otel instrumentation
CagriYonca Sep 27, 2024
33743f6
refactor(cloudstorage): added cloud storage otel instrumentation
CagriYonca Sep 27, 2024
5cd344c
unittests(cloudstorage): added unittests of cloud storage otel instru…
CagriYonca Sep 27, 2024
2573c12
refactor: AWS Lambda instrumentation.
pvital Sep 12, 2024
cdc2ada
tests(aws_lambda): adapt tests to OTel usage.
pvital Sep 12, 2024
8eea8d9
tests(aws_fargate): adapt tests to OTel usage.
pvital Sep 28, 2024
b31ddf3
tests(aws_eks): adapt tests to OTel usage.
pvital Sep 28, 2024
169079c
ci: Adapt to handle the new AWS test structure.
pvital Sep 29, 2024
c3089f4
fix(tests): Skipping MySQL Client on MacOS.
pvital Sep 30, 2024
de7bf85
tests: reverting changes on conftest.py
pvital Sep 30, 2024
28488c6
fix(tests): Running Host platform tests only.
pvital Sep 30, 2024
33bee09
fix(tests): W3C compatibility.
pvital Sep 30, 2024
ebf2915
updated assert condition
CagriYonca Sep 30, 2024
17d1214
chore(version): Bump version to 3.0.0
pvital Sep 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 31 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ commands:
- run:
name: Run Tests With Coverage Report
environment:
INSTANA_TEST: "true"
CASSANDRA_TEST: "<<parameters.cassandra>>"
COUCHBASE_TEST: "<<parameters.couchbase>>"
GEVENT_STARLETTE_TEST: "<<parameters.gevent>>"
Expand All @@ -78,6 +77,7 @@ commands:
steps:
- store_test_results:
path: test-results

run_sonarqube:
steps:
- attach_workspace:
Expand Down Expand Up @@ -118,8 +118,8 @@ commands:
jobs:
python38:
docker:
- image: cimg/python:3.8.20
- image: cimg/postgres:9.6.24
- image: cimg/python:3.8
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand All @@ -142,8 +142,8 @@ jobs:

python39:
docker:
- image: cimg/python:3.9.20
- image: cimg/postgres:9.6.24
- image: cimg/python:3.9
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand All @@ -166,8 +166,8 @@ jobs:

python310:
docker:
- image: cimg/python:3.10.15
- image: cimg/postgres:9.6.24
- image: cimg/python:3.10
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand All @@ -191,8 +191,8 @@ jobs:

python311:
docker:
- image: cimg/python:3.11.10
- image: cimg/postgres:9.6.24
- image: cimg/python:3.11
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand Down Expand Up @@ -231,8 +231,8 @@ jobs:

python312:
docker:
- image: cimg/python:3.12.6
- image: cimg/postgres:9.6.24
- image: cimg/python:3.12
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand Down Expand Up @@ -269,10 +269,23 @@ jobs:
- store-pytest-results
- store-coverage-report

py312aws:
docker:
- image: cimg/python:3.12
working_directory: ~/repo
steps:
- checkout
- pip-install-deps:
requirements: "tests/requirements-312.txt"
- run-tests-with-coverage-report:
tests: "tests_aws"
- store-pytest-results
- store-coverage-report

python313:
docker:
- image: python:3.13.0rc2-bookworm
- image: cimg/postgres:9.6.24
- image: cimg/postgres:14.12
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: passw0rd
Expand All @@ -296,7 +309,7 @@ jobs:

py39couchbase:
docker:
- image: cimg/python:3.9.20
- image: cimg/python:3.9
- image: couchbase/server-sandbox:5.5.0
working_directory: ~/repo
steps:
Expand All @@ -312,7 +325,7 @@ jobs:

py39cassandra:
docker:
- image: cimg/python:3.9.20
- image: cimg/python:3.9
- image: cassandra:3.11
environment:
MAX_HEAP_SIZE: 2048m
Expand Down Expand Up @@ -365,9 +378,10 @@ workflows:
- python313
- py39cassandra
- py39couchbase
- py39gevent_starlette
# - py39gevent_starlette
- py311googlecloud
- py312googlecloud
- py312aws
- final_job:
requires:
- python38
Expand All @@ -378,6 +392,7 @@ workflows:
- python313
- py39cassandra
- py39couchbase
- py39gevent_starlette
# - py39gevent_starlette
- py311googlecloud
- py312googlecloud
- py312aws
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
except ImportError:
except Exception:
except Exception as exc:
14 changes: 14 additions & 0 deletions .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,17 @@ spec:
workspaces:
- name: task-pvc
workspace: python-tracer-ci-pipeline-pvc
- name: unittest-aws
runAfter:
- clone
matrix:
params:
- name: imageDigest
value:
# 3.12.6-bookworm
- "sha256:af6fa5c329d6bd6dec52855ccb8bb37c30fb8f00819953a035d49499e43b2c9b"
taskRef:
name: python-tracer-unittest-googlecloud-task
workspaces:
- name: task-pvc
workspace: python-tracer-ci-pipeline-pvc
4 changes: 3 additions & 1 deletion .tekton/run_unittests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ googlecloud)
export REQUIREMENTS='requirements-googlecloud.txt'
export TESTS=('tests/clients/test_google-cloud-storage.py' 'tests/clients/test_google-cloud-pubsub.py')
export GOOGLE_CLOUD_TEST='true' ;;
aws)
export REQUIREMENTS='requirements-312.txt'
export TESTS=('tests_aws')
*)
echo "ERROR \$TEST_CONFIGURATION='${TEST_CONFIGURATION}' is unsupported " \
"not in (default|cassandra|couchbase|gevent_starlette|googlecloud)" >&2
Expand All @@ -52,7 +55,6 @@ esac

echo -n "Configuration is '${TEST_CONFIGURATION}' on ${PYTHON_VERSION} "
echo "with dependencies in '${REQUIREMENTS}'"
export INSTANA_TEST='true'
ls -lah .
if [[ -n "${COUCHBASE_TEST}" ]]; then
echo "Install Couchbase Dependencies"
Expand Down
21 changes: 21 additions & 0 deletions .tekton/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,24 @@ spec:
workingDir: /workspace/python-sensor/
command:
- /workspace/python-sensor/.tekton/run_unittests.sh
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: python-tracer-unittest-aws-task
spec:
params:
- name: imageDigest
type: string
workspaces:
- name: task-pvc
mountPath: /workspace
steps:
- name: unittest
image: python@$(params.imageDigest)
env:
- name: TEST_CONFIGURATION
value: aws
workingDir: /workspace/python-sensor/
command:
- /workspace/python-sensor/.tekton/run_unittests.sh
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

The `instana` Python package collects key metrics and distributed traces for [Instana].

This package supports Python 3.8 or greater.

Any feedback is welcome. Happy Python visibility.

[![CircleCI](https://circleci.com/gh/instana/python-sensor/tree/master.svg?style=svg)](https://circleci.com/gh/instana/python-sensor/tree/master)
[![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-enabled-blue.svg)](http://opentracing.io)
[![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-disabled-red.svg)](http://opentracing.io)
[![OpenTelemetry Badge](https://img.shields.io/badge/OpenTelemetry-enabled-blue.svg)](http://opentelemetry.io)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Finstana%2Fpython-sensor%2Frefs%2Fheads%2Fmaster%2Fpyproject.toml)
![GitHub Release](https://img.shields.io/github/v/release/instana/python-sensor)

> [!NOTE]
> Support for OpenTracing is deprecated starting on version 3.0.0. If you still want to use it, rely on any version up to 2.5.3 or use the `legacy_2.x` branch.

## Installation

Expand Down Expand Up @@ -53,7 +57,7 @@ Want to instrument other languages? See our [Node.js], [Go], [Ruby] instrumenta

<!-- Reference links -->
[Instana]: https://www.instana.com/ "IBM Instana Observability"
[Instana AutoTrace™️]: https://www.instana.com/supported-technologies/instana-autotrace/ "Instana AutoTrace"
[Instana AutoTrace™️]: https://www.ibm.com/docs/en/instana-observability/current?topic=kubernetes-instana-autotrace-webhook "Instana AutoTrace"
[configuration page]: https://www.ibm.com/docs/en/instana-observability/current?topic=package-python-configuration-configuring-instana#general "Instana Python package configuration"
[PyPI]: https://pypi.python.org/pypi/instana "Instana package at PyPI"
[installation document]: https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-python-instana-python-package#installing "Instana Python package installation"
Expand Down
18 changes: 15 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requires-python = ">=3.8"
license = "MIT"
keywords = [
"performance",
"opentracing",
"opentelemetry",
"metrics",
"monitoring",
"tracing",
Expand Down Expand Up @@ -44,13 +44,14 @@ classifiers = [
]
dependencies = [
"autowrapt>=1.0",
"basictracer>=3.1.0",
"fysom>=2.1.2",
"opentracing>=2.3.0",
"protobuf<5.0.0",
"requests>=2.6.0",
"six>=1.12.0",
"urllib3>=1.26.5",
"opentelemetry-api>=1.27.0",
"opentelemetry-semantic-conventions>=0.48b0",
"typing_extensions>=4.12.2",
]

[project.entry-points."instana"]
Expand All @@ -59,6 +60,8 @@ string = "instana:load"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-mock",
]

[project.urls]
Expand All @@ -77,3 +80,12 @@ include = [

[tool.hatch.build.targets.wheel]
packages = ["src/instana"]

[tool.coverage.report]
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING:",
"except ImportError:",
"except Exception:",
"except Exception as exc:",
]
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ log_cli = 1
log_cli_level = WARN
log_cli_format = %(asctime)s %(levelname)s %(message)s
log_cli_date_format = %H:%M:%S
pythonpath = src
testpaths =
tests
tests_aws
Loading