1674 Commits

Author SHA1 Message Date
e106dbcd5a [docs] fix broken link (#1513) 2022-12-22 22:30:21 +05:30
33bb7be903 Add urllib readthedocs documentation (#1510) 2022-12-20 15:03:12 +00:00
5af3519f36 fix aiopg version (#1473) 2022-12-20 20:00:11 +05:30
7f8fe690a0 Adds an option to configure disable_aws_context_propagation by environment variable (#1507)
* Adds an option to configure `disable_aws_context_propagation` by environment variable

The variable `OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION` can be used to disable aws context propagation. This is similar to the proposed changes in the JS implementation: https://github.com/open-telemetry/opentelemetry-js-contrib/pull/1227

Signed-off-by: Alex Boten <aboten@lightstep.com>

* update changelog

* Apply suggestions from code review

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>

Signed-off-by: Alex Boten <aboten@lightstep.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-12-19 16:50:36 -06:00
a9f34136d2 Add uninstrument test for aws lambda (#1505) 2022-12-20 03:15:43 +05:30
23f63a5328 add uninstrument test for Celery (#1490) 2022-12-18 14:46:26 +00:00
41592015a3 Add uninstrument test for boto (#1488) 2022-12-18 15:22:55 +05:30
0f2451be26 Update version to 1.16.0.dev/0.37b0.dev (#1485) 2022-12-10 04:03:22 +05:30
71781d3964 updating changelogs and version to 1.15.0-0.36b0 (#1482) v0.36b0 2022-12-10 02:33:51 +05:30
fc738c04a6 Pin tox version (#1480) 2022-12-08 16:39:48 -06:00
25a6535f26 Instrument newer versions (#1468) 2022-12-06 15:58:03 +00:00
cfd017e5ec fix enable_commenter functionality (#1440) 2022-12-06 20:22:38 +05:30
99e0b42635 Add uninstrument test for sqlalchemy (#1471) 2022-12-05 22:28:10 +05:30
bc57cc029d fix(asgi-instrumentation): extract target after running the framework (#1461) 2022-12-05 02:00:09 +00:00
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
538c655830 Add a test for mysql instrumentation using NoOpTracerProvider (#1423) 2022-12-03 17:58:32 +05:30
b6f9b62de7 Refactor comments in .flake8 (#1470)
Fixes #1469
2022-11-29 14:04:48 +01:00
2179fb976f botocore: Add support for SNS publish and publish_batch (#1409) 2022-11-24 16:44:12 +05:30
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
80d0b89b8b Add grpc.aio instrumentation to be auto-instrumented (#1442) 2022-11-22 03:24:21 +00:00
b6b269064c Tortoise ORM instrumentation (#685) 2022-11-22 02:33:59 +00:00
9a155df802 Fix 1455: Protect from raw next() calls (#1456) 2022-11-21 17:39:23 -08:00
6347ce0899 Fix httpx version (#1460)
Fixes #1459
2022-11-21 19:58:35 +01:00
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
c613484390 Remove mention to eachdist (#1445) 2022-11-17 10:45:34 -08:00
725944d368 Urllib3 instrumentation can now retrieve urlopen body parameter when used as positional (#1398) 2022-11-16 01:30:22 +00:00
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
868049ecd9 Add support for regular expression matching and sanitizing of headers in Starlette. (#1404) 2022-11-15 01:35:24 +00:00
47512c84b9 fix: No module named httpx (#1441) 2022-11-15 06:17:14 +05:30
e0f72095c5 feat: collecting messaging.* span attributes in botocore instrumentation (#1350) 2022-11-13 17:32:57 +00:00
5f85a5bd74 Remove db.name attribute from Redis instrumentation (#1427) 2022-11-10 19:21:44 +00:00
7acc336cca aiohttp-client: Allow overriding of span status (#1394) 2022-11-07 17:34:20 +00:00
496d6581cc Add support for regular expression matching and sanitizing of headers in FastAPI. (#1403) 2022-11-07 22:23:08 +05:30
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
f994e14636 Fix Urllib instrumentation - Add status code to span if not None (#1430) 2022-11-05 19:59:47 +05:30
af972a07a9 Create RELEASING.md, Update version to 1.15.0.dev/0.36b0.dev (#1429) 2022-11-03 13:26:58 -07:00
05e23cd280 [release/v1.14.x-0.35bx] Prepare release 1.14.0/0.35b0 (#1428) v0.35b0 2022-11-03 10:30:35 -07:00
5c67dee23d Change to use local dev versions (#1425) 2022-11-02 10:19:40 -07:00
36264e97c3 Capture common HTTP attributes from API Gateway proxy events in Lambda instrumentor (#1233) 2022-11-02 04:27:09 +00:00
a8cf644960 Add support for regular expression matching and sanitizing of headers in Django. (#1411) 2022-11-02 09:24:33 +05:30
f58d16b47f Add grpc.aio support (#1245) 2022-10-31 21:56:09 +00:00
38d384a2ae Add support for py3.11 (#1415) 2022-10-31 21:19:50 +00:00
339e0f3c7e Add support for regular expression matching and sanitizing of headers in Falcon. (#1412) 2022-10-31 20:36:06 +00:00
0dc16a4118 Update prom rw exporter (#1359) 2022-11-01 01:30:32 +05:30
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
ff88520249 Add support for regular expression matching and sanitizing of headers in Pyramid. (#1414) 2022-10-29 13:08:19 +05:30
4383551135 Fix usage docs for confluent_kafka (#1400) 2022-10-27 12:48:55 +00:00
83f37eddf2 Deprecate otlp_proto_grpc and otlp_proto_http in auto-instrumentation (#1250) 2022-10-27 17:45:49 +05:30
542494146d Add support for regular expression matching and sanitizing of headers in WSGI. (#1402) 2022-10-27 09:45:22 +05:30
9d6ba63e06 Add support for regular expression matching and sanitizing of headers in ASGI. (#1333) 2022-10-24 21:39:11 +05:30