1502 Commits

Author SHA1 Message Date
6503cdf2fe Fix HTTP instrumentation not being suppressed (#1116) 2022-06-20 13:16:51 -07:00
62e0a31ff9 Pyramid: only categorize 500 exceptions as errors (#1137) 2022-06-17 03:37:34 +05:30
f03bef2579 Add support to instrument multiple sqlalchemy engines (#1132)
* Override __new__ to instrument multiple engines

* add possibility to instrument mutiple engines

* update changelog

* update return type in doc

* fix CHANGELOG

* format

* fix test

* Check if engines isinstance Sequence

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-06-16 13:44:55 +02:00
4ba62140ad pyramid: Only categorize 400s and 500s exceptions as errors (#1136)
* pyramid: Only categorize 400s and 500s exceptions as errors

* Added changelog entry for the fix

* Added a test for 204
2022-06-16 12:29:15 +02:00
904f2f1332 system-metrics: fix typo in default configuration (#1135) 2022-06-15 09:42:20 -07:00
99a028360e Check keys in config before creating instruments (#1129)
* Check keys in config before creating instruments

Fixes #1125

* Fix lint
2022-06-14 15:59:32 +01:00
51ba801bfd Set OTLP grpc as the default metrics exporter for auto-instrumentation (#1127) 2022-06-10 03:05:44 +05:30
ad15f7bc82 Logging instr hook (#1117) 2022-06-09 14:12:54 +05:30
0bd8e4c7fd Add psutil dependency (#1121)
* Add psutil dependency

Fixes #1120

* Update instrumentation/opentelemetry-instrumentation-system-metrics/setup.cfg

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

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-06-08 18:12:15 +01:00
f275e24925 Pass a list of metric readers (#1124)
Fixes #1123
2022-06-08 17:41:27 +01:00
6876ad857f Refactor TracedConnectionProxy (#1097)
* Refactor TracedConnectionProxy

Fixes #1077

* Remove unecessary methods
2022-06-07 18:20:59 +01:00
8afbce7533 Fixing inescapable character bug for Windows path string (#1100) 2022-06-04 02:54:50 +05:30
a8b9829f76 Support confluent kafka (#1111)
* add kafka instrumentation

* add confluent kafka instrumentation

* fix tests

* change documentation

* lint fix

* fix lint

Co-authored-by: Nikolay Sokolik <81902191+oxeye-nikolay@users.noreply.github.com>
2022-06-03 14:26:40 +01:00
5f7c293e0f Add instrumentation for remoulade (#1082) 2022-05-31 14:05:41 -07:00
c6f9dcd359 sphinx (#1115) 2022-05-31 12:24:44 -07:00
100ecfeb08 updated type hints for getters and setters (#1106) 2022-05-29 06:02:14 +05:30
f7409b8b98 Typo fix: caputre => capture (#1108) 2022-05-27 11:27:40 +05:30
9d57a4c3ec Narrow protobuf dependency to exclude protobuf >= 4 (#1109) 2022-05-27 01:18:24 +05:30
8a7a3f1993 Feature/add boto3 sqs instrumentation (#1081)
* Add Boto3SQS Instrumentation

* Add basic tests

* Add context setting list

* Fix linting

* CR and lint fixes

* Add newline

* Run tox generate

* Change the dependency version

* Fix linting

* PR fixes. Remove walrus operator and use the `start_as_current_span`

* Run lint and generate

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-05-25 12:01:31 +02:00
a5ec3f7f55 Use a shorter timeout for AWS EC2 metadata requests (#1089)
* Use a shorter timeout for AWS EC2 metadata requests

Fix #1088 

According to the docs, the value for `timeout` is in seconds: https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen. 1000 seconds seems slow and in some cases can block the startup of the program being instrumented (see #1088 as an example), because the request will hang indefinitely in non-AWS environments. Using a much shorter 1 second timeout seems like a reasonable workaround for this.

* add changelog entry for timeout change

* use 5s timeout for ECS and EKS, update changelog

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-05-24 14:48:43 +02:00
10659f8970 Release 1.12.0rc1-0.31b0 (#1094) v0.31b0 2022-05-17 13:18:55 -06:00
9cb853e522 Use public metrics (#1093) 2022-05-17 09:36:08 +05:30
80969a06da use sqlalchemy module name not engine. fixes #922 (#1086) 2022-05-11 15:08:19 +05:30
3e67893cba Update system metrics callbacks to accept CallbackOptions (#1084) 2022-05-10 21:52:58 +05:30
fa56c6c09f Instrument redis.asyncio clients (#1076) 2022-05-05 06:39:29 +05:30
2671ff53c8 Update system metrics to work with new metrics imports (#1075) 2022-04-29 10:05:15 +05:30
a8edcf6a52 Make span attributes available to sampler in aiohttp_client (#1072) 2022-04-29 02:17:30 +05:30
9e539391b2 [opentelemetry-instrumentation] add version flag (#1065) 2022-04-27 22:30:14 +05:30
6f620ee142 Refactoring custom header collection API for consistency (#1064) 2022-04-27 11:05:03 +05:30
fedf9448c0 Fixes issue with headers not being a dict in AWS lambda instr (#1055) 2022-04-25 18:59:20 +05:30
b6964ccf3a Release 1.11.1-0.30b1 (#1067) v0.30b1 2022-04-22 02:29:17 +05:30
328e16f3f1 Remove datadog exporter from tox (#1069) 2022-04-22 01:38:13 +05:30
9e0c2ce662 Rename Measurement to Observation (#1061) 2022-04-21 23:45:49 +05:30
c90935395f Prune autoinstrumentation sitecustomize module directory from PYTHONPATH immediately (#1066) 2022-04-21 16:22:26 +05:30
2f7a666560 Add Ashutosh Goel and Sanket Mehta to approvers (#1062)
* Add Ashutosh Goel and Sanket Mehta to approvers

Fixes #1053
Fixes #1054

* Adding company name for ashu658

* adding company name for sanketmehta28

Co-authored-by: Ashutosh Goel <39601429+ashu658@users.noreply.github.com>
Co-authored-by: sanket Mehta <sankmeht@cisco.com>
2022-04-20 10:11:18 -06:00
9ad41552b1 script (#1059) 2022-04-19 13:28:30 -06:00
26a8aa184f Starlette: capture custom request response headers in span attributes (#1046) 2022-04-18 23:42:38 +05:30
3ca7e7a5a3 Release 1.11.0-0.30b0 (#1056) v0.30b0 2022-04-18 10:04:18 -07:00
3690006954 Fix callbacks in system metrics instrumentation (#1057) 2022-04-15 20:55:52 +00:00
abdd25f644 Add falcon version 1.4.1 support to opentelemetry-instrumentation-falcon (#1000) 2022-04-16 01:54:22 +05:30
4ad7592256 pyramid: Fix which package is the correct caller in _traced_init. (#830) 2022-04-15 03:18:09 +05:30
9d14265911 Fix Tornado errors mapping to 500 (#1048) 2022-04-13 10:08:42 -07:00
e9f83e1292 make span attribute available to urllib (#1014) 2022-04-12 20:37:46 +05:30
7deea055dd Add docs to capture HTTP request/response headers (#1038) 2022-04-12 00:10:59 +05:30
45448f8bb2 FastAPI: capture custom request response headers in span attributes (#1032) 2022-04-11 11:10:26 -07:00
0fdc3c1656 [docs] update maintainers (#1045) 2022-04-09 01:16:44 +05:30
229dc4561f Pyramid: Capture custom request/response headers (#1022) 2022-04-08 22:00:03 +05:30
d76066893b Pin bleach to 4.1.0 (#1044) 2022-04-08 08:56:09 -07:00
40c1805b11 opentelemetry-instrumentation-system-metrics restore package (#1012) 2022-04-06 10:54:22 -07:00
b8cad79113 Update pymemcache instrumentation to support pymemcache version >= 1.3.5 (#935) 2022-04-06 08:55:51 -07:00