Commit Graph

1901 Commits

Author SHA1 Message Date
Leighton Chen 4bf3577fb7
Requests instrumentation http semantic convention migration (#2002) 2023-11-29 14:22:16 -08:00
Sean Kenny 4336dc7330
Fix arity of context.abort for AIO RPCs (#2066) 2023-11-28 10:38:59 -08:00
Bulygin Evgeny b29682b561
aio-pika instrumentation: Removed check for non-sampled span when inject message header. (#1969)
* aio-pika instrumentation: Removed check for non-sampled span when inject message headers. Reason to change is that sampled flag can be propagate https://www.w3.org/TR/trace-context/#sampled-flag and be useful when trace is not sampled.

* black formting

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-27 14:22:34 +00:00
samypr100 1b1c38d7cd
[opentelemetry-instrumentation-httpx] fix mixing of sync and non async hooks (#1920)
* fix: sync response hooks being used on httpx.AsyncClient

* docs: add changelog

* docs: improved docs a bit more

* docs: fix variable name

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-21 15:45:15 +02:00
Srikanth Chekuri 773e431bf5
Add a note about system dependencies for instrumentation pkgs (#2068)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-21 09:01:04 +00:00
Srikanth Chekuri 5888d4ef95
Enable lint on CI and update deps (#2067)
* Fix black an isort

* change bootstrap_gen to use a list instead of dict

* Bunch of updates

* Fix build

* fix lint

* Fix docs

* Fix lint

* More fixes

* Fix lint

* fix stupid mistake

---------

Co-authored-by: Christian Hartung <christian.hartung@olist.com>
2023-11-21 10:25:11 +02:00
Pierre Tessier 9afaf26b3a
urllib/urllib3 - set metric descriptions per semantic conventions (#1959)
* Set metric descriptions per semantic conventions

* Set metric descriptions per semantic conventions

* fix spelling

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-19 08:20:41 +02:00
Adrian Garcia Badaracco f34771618c
Don't collect system.network.connections due to limitation in psutil causing exceptions (#2008)
* Don't collect system.network.connections due to limitation in psutil causing exceptions

* add changelog

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-17 08:54:56 +00:00
Rahul Kumar 6f6c28da45
Added support for pypy3 system metrics (#2062)
* Added support for pypy3 system metrics

Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>

* Change in if condition to log warn message for pypy
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>

Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>

* Added logger to else block if pypy
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>

Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>

* Reverting the changes
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>

Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>

* Changes requested by external reviewer
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>

Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>

---------

Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
2023-11-16 13:18:51 -06:00
Leighton Chen b6d77f1146
Implement Otel semantic convention stability opt-in (#1987) 2023-11-10 09:48:32 -08:00
OpenTelemetry Bot 7166de673f
Copy change log updates from release/v1.21.x-0.42bx (#2049) 2023-11-09 16:05:21 -08:00
Leighton Chen 1e1162c250
Fix error in build for README in Cassandra instrumentation (#2045) 2023-11-09 22:42:26 +00:00
Leighton Chen c2f3894002
Fix contrib build (#2054) 2023-11-09 14:07:24 -08:00
siminn-arnorgj 46fc3ce638
Exclude background task execution from root server span in ASGI middleware (#1952) 2023-11-08 18:46:01 +00:00
OpenTelemetry Bot 3b9d6264e2
Update version to 1.22.0.dev/0.43b0.dev (#2031)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-11-07 11:06:08 -06:00
Liudmila Molkova 4f6618324d
Set schema_url on all tracers and meters (#1977) 2023-11-06 11:39:51 -08:00
Diego Hurtado eb6024ca31
Fix failing test cases (#2033) 2023-11-03 05:40:46 +00:00
Diego Hurtado 98923dc5b3
Add -ra option to pytest runs (#2035) 2023-11-02 20:50:41 -06:00
Margaret Yu 657d502419
Specify the topic arn as the span attribute messaging.destination.name in the botocore sns instrumentation (#1995) 2023-11-01 15:54:26 -06:00
André "decko" de Brito 1305436671
Aiohttp-server Instrumentation (#1800)
Co-authored-by: Kenny Trytek <kenny.trytek@workiva.com>
Co-authored-by: Daniel Manchon <dmanchon@gmail.com>
2023-10-30 15:10:16 -06:00
Jeremy Voss 3478831838
Using new cloud resource id attribute (#1976) 2023-10-09 19:02:52 +00:00
Allen Kim bb42e0417b
Feature/add new process metrics (#1948) 2023-10-09 10:34:02 -07:00
Diego Hurtado 7ac674430d
Fix version of Flask dependency werkzeug (#1980) 2023-10-04 20:20:39 +00:00
Leighton Chen e318c947a2
Update pyproject.toml (#1950) 2023-09-12 14:47:30 -07:00
Leighton Chen 4abb0e3216
Modify eachdist and build script for container packages (#1949) 2023-09-12 13:33:39 -07:00
OpenTelemetry Bot 54be1603dc
Update version to 1.21.0.dev/0.42b0.dev (#1930)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-09-04 17:56:57 +00:00
João Thallis fb9eb32fac
doc: fix `commenter_options` type (#1926)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-09-03 11:23:21 +00:00
Noemi 6f3aead436
Unwrap Celery's `ExceptionInfo` (#1863)
* Unwrap `ExceptionInfo` and `ExceptionWithTraceback`

Instead of reporting the `ExceptionInfo` and `ExceptionWithTraceback`
wrappers raised by Celery, report the exceptions that they wrap.

This ensures that the exception in the OpenTelemetry span has a type
and traceback that are meaningful and relevant to the developer.

* Fix typo

The exception is expected, not excepted. Well, I guess it is also
excepted, because it's an exception, but you get what I mean.

* Reformat file with `black`

Reformat the `__init__.py` file in the Celery instrumentation using
`black`, fixing a CI linter error.

* Address review feedback

Use the VERSION attribute exposed by Billiard to decide whether to
import ExceptionWithTraceback.

Add a test for a failing task and check that the exceptions' type
and message are preserved.

* Amend ExceptionWithTraceback import
2023-09-03 13:56:33 +03:00
mattcontinisio a02d98cb38
Add Cassandra instrumentation (#1902) 2023-08-30 15:40:14 +00:00
Javier Fernández Rodríguez d854c52d23
feat(confluent-kafka): Add instrumentation to consume method (#1786)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-08-30 15:03:05 +00:00
Raphael Philipe Mendes da Silva 0871dd455c
Revert "update awslambda to use _X_AMZN_TRACE_ID as a Span Link" (#1911)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-08-21 18:42:12 +02:00
Jeremy Voss 9627f74a73
Azure resource detectors (#1901) 2023-08-17 13:21:59 -07:00
Leighton Chen 9cd9de7f01
Fix errors introduced in regression (#1913) 2023-08-16 13:25:50 -07:00
Jakub Warczarek 6007e0c013
Merge pull request from GHSA-5rv5-6h4r-h22v
* Fix unbound cardinality for label http_method in wsgi based middlewares

* cr: rename file

* cr: change label UNKNOWN to NONSTANDARD

* Update instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-08-15 13:17:14 -07:00
Thomas LÉVEIL 1beab8238b
Fix UnboundLocalError local variable 'start' referenced before assignment (#1889)
Co-authored-by: Pablo Collins <pablo.collins@gmail.com>
2023-08-07 15:17:20 +02:00
Tristan Sloughter 7603a1fc69
update awslambda to use _X_AMZN_TRACE_ID as a Span Link (#1657)
Co-authored-by: Ron Yishai <ronyish@cisco.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-18 22:03:59 +02:00
Diego Hurtado 74fcbf4a6e
Fix pyyaml version (#1892) 2023-07-18 18:49:51 +00:00
OpenTelemetry Bot cfdd4ae77f
Update version to 1.20.0.dev/0.41b0.dev (#1885)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-13 16:42:32 +02:00
Alexandre Papin 09efe708c3
Instrument mysqlclient library (#1744)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-12 21:09:26 +02:00
Marc Dougherty acfe932f7d
fix(django): avoid empty span name on empty path (#1788)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-12 18:38:59 +00:00
Jeremy Voss db90ce38a2
Distro selection (#1823) 2023-07-11 20:26:14 +00:00
Mario Jonke dadcd01524
urllib3: Add instrumentation support for version 2 (#1879)
* urllib3: Add instrumentation support for version 2

* changelog
2023-07-04 00:49:20 +03:00
Diego Hurtado a1f6044672
Add statement of maintainership (#1859)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-28 12:29:01 +02:00
Tammy Baylis 79d62b3bcd
sqlalchemy wrap_create_engine now accepts sqlcommenter options (#1873)
* sqlalchemy wrap_create_engine accepts sqlcommenter options

* Changelog

* Lint

* Fix default val

* Add sqlalchemy tests

* Change a default in _instrument get

* Lint

* More lint

* Update default

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>

* Update args doc

* lintttt

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-27 13:43:35 +03:00
Rytis Bagdziunas 2e49ba1af8
Use a weak reference to sqlalchemy Engine to avoid memory leak (#1771)
* Use a weak reference to sqlalchemy Engine to avoid memory leak

Closes #1761

By using a weak reference to the `Engine` object, we can avoid the memory leak as disposed `Engines` get properly deallocated. Whenever `SQLAlchemy` is uninstrumented, we only trigger a removal for those event listeners which are listening for objects that haven't been garbage-collected yet.

* Made a mistake in resolving the weak reference

* Fixed formatting issues

* Updated changelog

* Added unit test to check that engine was garbage collected

* Do not save engine in EngineTracer to avoid memory leak

* Add an empty line to satisfy black formatter

* Fix isort complaints

* Fixed the issue when pool name is not set and =None

* Fix formatting issue

* Rebased after changes in a recent commit

* Updated PR number in changelog

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-27 11:37:27 +03:00
Shalev Roda a45c9c3792
Update maintainers list (#1874) 2023-06-26 08:41:27 +02:00
Vivanov98 cd6b024327
Fix async redis clients tracing (#1830)
* Fix async redis clients tracing

* Update changelog

* Add functional integration tests and fix linting issues

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-25 15:03:54 +03:00
Tammy Baylis e70437a36e
Add conditional elastic_transport import (#1810)
* Add conditional elastic_transport import

* Update changelog

* Add future es8 tests

* Update CHANGELOG.md

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>

* Add license, rm pylint disable

* Consistent elastic version check

* lint import

* Update CHANGELOG.md

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-25 08:25:09 +03:00
Nimrod Shlagman c9004bd375
Fix elastic-search sanitization for bulk queries (#1870)
* support sanitization for str body response

* add CHANGELOG entry

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-25 07:44:57 +03:00
Iman Shafiei 256d8ce12d
Add http.server.request.size for ASGI metric implementation (#1867)
* Update changelog file.

* Update changelog file.

* Add new request.size metric for ASGI middleware.

* Clean-up.

* Refactor try except section.

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-21 23:56:38 +03:00