Commit Graph

2063 Commits

Author SHA1 Message Date
Diego Hurtado f2c536ed82
Fix tox factor matching (#2129)
* Fix tox factor matching

Fixes #2128

* Add missing fixes for several test envs

* Fix django
2024-01-17 17:14:43 -06:00
Allen Kim c9d709a5c4
Feature/support for flask 3.0.0 (#2013)
* support flask 3.0.0

* support flask 3.0.0

* support flask 3.0.0

* modify tox.ini

* modify Werkzeug version

* modify Werkzeug version

* modify flask test version

* modify flask version

* modify flask version

* modify CHANGELOG.md

* include feedback

* include feedback

* Fix lint and generate

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-01-16 15:45:12 -06:00
Diego Hurtado 42faa1a34a
Separate jobs per instrumentation (#2121)
* Separate jobs per instrumentation

Fixes #2036

* Separate in 2 workflows

* Added explanation for separation
2024-01-11 13:03:28 -06:00
Leighton Chen c2691e049b
Update version.py for release (#2120) 2024-01-10 12:41:44 -08:00
Jeremy Voss 588d5d7003
Add 10 second timeout to VM Resource Detector (#2119) 2024-01-09 15:02:09 -08:00
Kenny Guo 14d7779366
Update README.rst (#2060) 2024-01-05 20:05:58 +00:00
Jeremy Voss 7c12ad9844
Fix dependency for azure resource detector (#2072) 2023-12-22 23:40:32 +00:00
Adrian Garcia Badaracco 9563ee73ac
Clean up use of suppress_instrumentation in context and fix httpx bug (#2061)
* Clean up use of suppress_instrumentation in context and fix httpx bug

* Clean up use of suppress_instrumentation in context and fix httpx bug

* changelog

* fix tests

* fix import

* fmt

* update dep

* lint

* remove unused imports

* apply lint

* Fix version for pika

* Fix lint

---------
2023-12-22 22:43:12 +00:00
Denis Otkidach e5aa74ff7f
Remove URL credentials (httpx integration) (#2020)
* Remove URL credentials (httpx)

* Add CHANGELOG
2023-12-22 22:03:51 +00:00
Jean Jordaan d7cc194609
`FlaskInstrumentation` doesn't exist (#2070)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-12-22 21:23:38 +00:00
OpenTelemetry Bot 772063ca8a
Update version to 1.23.0.dev/0.44b0.dev (#2091)
* Update version to 1.23.0.dev/0.44b0.dev

* Update core SHA

* Update generate

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-12-15 16:54:11 -06:00
Diego Hurtado b6c11054b9
Fix Falcon dependency (#2090)
Fixes #2089
2023-12-13 20:58:54 -06:00
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