Commit Graph

1814 Commits

Author SHA1 Message Date
Miguel Alexandre 25a6535f26
Instrument newer versions (#1468) 2022-12-06 15:58:03 +00:00
avzis cfd017e5ec
fix enable_commenter functionality (#1440) 2022-12-06 20:22:38 +05:30
Shalev Roda 99e0b42635
Add uninstrument test for sqlalchemy (#1471) 2022-12-05 22:28:10 +05:30
Sebastian Kreft bc57cc029d
fix(asgi-instrumentation): extract target after running the framework (#1461) 2022-12-05 02:00:09 +00:00
Artem Rys 155fc46596
Minor refactoring (#1169)
* Minor refactoring across multiple instrumentation libraries

* Reformat using black

* Put span_kind back in aws_lambda

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-12-03 13:11:06 +00:00
avzis 538c655830
Add a test for mysql instrumentation using NoOpTracerProvider (#1423) 2022-12-03 17:58:32 +05:30
Diego Hurtado b6f9b62de7
Refactor comments in .flake8 (#1470)
Fixes #1469
2022-11-29 14:04:48 +01:00
Mario Jonke 2179fb976f
botocore: Add support for SNS publish and publish_batch (#1409) 2022-11-24 16:44:12 +05:30
Alex Boten 8dbd1428c2
`opentelemetry-instrumentation-aws-lambda`: Adding option to disable context propagation (#1466)
* `opentelemetry-instrumentation-aws-lambda`: Adding option to disable context propagation

Adding the following option to disable context propagation `disable_aws_context_propagation`. This is similar to the disableAwsContextPropagation option in the nodejs instrumentation.

* update changelog

* lint

* more lint
2022-11-23 22:30:06 +01:00
Sean Kenny 80d0b89b8b
Add grpc.aio instrumentation to be auto-instrumented (#1442) 2022-11-22 03:24:21 +00:00
Anthony Shaw b6b269064c
Tortoise ORM instrumentation (#685) 2022-11-22 02:33:59 +00:00
Lance Erickson 9a155df802
Fix 1455: Protect from raw next() calls (#1456) 2022-11-21 17:39:23 -08:00
Diego Hurtado 6347ce0899
Fix httpx version (#1460)
Fixes #1459
2022-11-21 19:58:35 +01:00
Dan Rogers be4ceec08c
Strip leading comments from SQL queries when generating the span name. (#1434)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-11-18 14:01:07 +01:00
Diego Hurtado c613484390
Remove mention to eachdist (#1445) 2022-11-17 10:45:34 -08:00
Israël Hallé 725944d368
Urllib3 instrumentation can now retrieve urlopen body parameter when used as positional (#1398) 2022-11-16 01:30:22 +00:00
Robert Ayrapetyan ffb995d28b
opentelemetry-instrumentation-kafka-python: wait for metadata (#1260)
* fix kafka: wait for metadata

Kafka's instance metadata could be unavailable (because it's being filled asynchronously). extract_send_partition() is based on a metadata, so it may return `None` for partition and later cause all type of warning messages (e.g. `Invalid type NoneType for attribute value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types`).
The proposed fix makes sure metadata is pre-populated (based on 4d598055da/kafka/producer/kafka.py (L579)).
I'm just not sure if we should wrap `_wait_on_metadata` into try\except, maybe just passing Exception to the caller would be a better idea...

* upd: changelog

* fix: changelog

* fix: import KafkaErrors

* fix: tox -e lint errors

* fix: refact and added unit test

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-11-15 12:42:56 +00:00
Dan Rogers 868049ecd9
Add support for regular expression matching and sanitizing of headers in Starlette. (#1404) 2022-11-15 01:35:24 +00:00
Srikanth Chekuri 47512c84b9
fix: No module named httpx (#1441) 2022-11-15 06:17:14 +05:30
saartochner e0f72095c5
feat: collecting messaging.* span attributes in botocore instrumentation (#1350) 2022-11-13 17:32:57 +00:00
luke6Lh43 5f85a5bd74
Remove db.name attribute from Redis instrumentation (#1427) 2022-11-10 19:21:44 +00:00
Nils Borrmann 7acc336cca
aiohttp-client: Allow overriding of span status (#1394) 2022-11-07 17:34:20 +00:00
Dan Rogers 496d6581cc
Add support for regular expression matching and sanitizing of headers in FastAPI. (#1403) 2022-11-07 22:23:08 +05:30
Dan Rogers 40e4e2e598
Fix dbapi connection instrument wrapper has no _sock member (#1424)
Fixes https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1353

Also:

Fix the check for the connection already being instrumented in instrument_connection()
Add tests for commit() and rollback()
Add a couple missing docstring items.
Add basepython to docker-tests to fix running the tests on macOS.
2022-11-07 16:00:28 +00:00
Shalev Roda f994e14636
Fix Urllib instrumentation - Add status code to span if not None (#1430) 2022-11-05 19:59:47 +05:30
Leighton Chen af972a07a9
Create RELEASING.md, Update version to 1.15.0.dev/0.36b0.dev (#1429) 2022-11-03 13:26:58 -07:00
Leighton Chen 05e23cd280
[release/v1.14.x-0.35bx] Prepare release 1.14.0/0.35b0 (#1428) 2022-11-03 10:30:35 -07:00
Leighton Chen 5c67dee23d
Change to use local dev versions (#1425) 2022-11-02 10:19:40 -07:00
Finlay 36264e97c3
Capture common HTTP attributes from API Gateway proxy events in Lambda instrumentor (#1233) 2022-11-02 04:27:09 +00:00
Dan Rogers a8cf644960
Add support for regular expression matching and sanitizing of headers in Django. (#1411) 2022-11-02 09:24:33 +05:30
Sean Kenny f58d16b47f
Add grpc.aio support (#1245) 2022-10-31 21:56:09 +00:00
Srikanth Chekuri 38d384a2ae
Add support for py3.11 (#1415) 2022-10-31 21:19:50 +00:00
Dan Rogers 339e0f3c7e
Add support for regular expression matching and sanitizing of headers in Falcon. (#1412) 2022-10-31 20:36:06 +00:00
Youssef Gamal 0dc16a4118
Update prom rw exporter (#1359) 2022-11-01 01:30:32 +05:30
Dan Rogers 26d3343428
Add support for regular expression matching and sanitizing of headers in Flask. (#1413)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-10-29 08:12:06 +00:00
Dan Rogers ff88520249
Add support for regular expression matching and sanitizing of headers in Pyramid. (#1414) 2022-10-29 13:08:19 +05:30
João Vieira 4383551135
Fix usage docs for confluent_kafka (#1400) 2022-10-27 12:48:55 +00:00
Ron Yishai 83f37eddf2
Deprecate otlp_proto_grpc and otlp_proto_http in auto-instrumentation (#1250) 2022-10-27 17:45:49 +05:30
Dan Rogers 542494146d
Add support for regular expression matching and sanitizing of headers in WSGI. (#1402) 2022-10-27 09:45:22 +05:30
Dan Rogers 9d6ba63e06
Add support for regular expression matching and sanitizing of headers in ASGI. (#1333) 2022-10-24 21:39:11 +05:30
Sebastian Kreft d5369a4431
feat(instrumentation/asgi): add target to metrics (#1323) 2022-10-22 13:29:53 +00:00
Adrian Garcia Badaracco 99f29b4b08
fix NonRecordSpan.attributes access (#1377) 2022-10-21 15:58:00 +00:00
Leighton Chen 75953f3b25
Use metric semantic conventions (#1380) 2022-10-19 12:31:01 -07:00
Kausik 9beb6b29b0
Requesting codeowner permission for sdk-extension/opentelemetry-sdk-extension-aws (#1379) 2022-10-14 10:11:39 -07:00
Shalev Roda 744851b3cf
metric instrumentation Tornado (#1252) 2022-10-12 21:52:12 +05:30
avzis c615fa74da
Add test for asgi using NoOpTracerProvider (#1367) 2022-10-11 08:11:53 +05:30
rbizos e15ee2b255
Fixing RichConsoleExporter to allow for multiple traces at once (#1336) 2022-10-10 16:57:02 +00:00
Vasi Vasireddy 9b8243cc94
Use compatible runtime for the dependency in opentelemetry-distro (#1373) 2022-10-09 00:29:42 +05:30
Jeremy Voss a47c45e61b
Adding try catch to fix ImproperlyConfigured exception while allowing (#1369) 2022-10-06 13:23:50 +00:00
Srikanth Chekuri 0adb306a8e
Remove DataDog exporter from main (#1366) 2022-10-06 10:46:31 +00:00