rads-1996
b69ebb7224
Redact specific url query string values and url credentials in instrumentations ( #3508 )
...
* Updated the instrumentation with aiohttp-server tests for url redaction
* Updated the aiohttp-server implementation and the query redaction logic
* Updated changelog and moved change to unreleased. Updated test files with license header
* Improved formatting
* Fixed failing tests
* Fixed ruff
* Update util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-07-01 12:26:47 +00:00
Riccardo Magliocchetti
ef2b5468d5
Fix ruff ( #3515 )
2025-05-19 09:59:28 -03:00
Prajna Paramita Biswal
f21182890a
requests: migrate from SpanAttributes ( #3493 )
...
* ref: migrate from SpanAttributes
* B
reverted to SpanAttributes for the SCHEMA_URL
* replace SpanAttributes.SCHEMA_URL
* sort imports
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-05-19 08:26:42 +00:00
Emídio Neto
9bc7764139
requests: support explicit_bucket_boundaries_advisory in duration metrics ( #3464 )
...
* requests: add explicit_bucket_boundaries_advisory support for duration metrics
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* requests duration histogram stable semconv
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix examples
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* add changelog
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* rename buckets variable
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-05-09 13:41:37 +00:00
Emídio Neto
23cadea66a
requests: always record span status code in duration metrics ( #3323 )
...
* show test fail at main
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* implement fix -- ci should pass now
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* remove uneeded comment
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* Update instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py
* use get_sorted_metrics
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2025-03-06 08:56:41 +00:00
Tammy Baylis
5c5fc732fb
Replace assertEqualSpanInstrumentationInfo with assertEqualSpanInstrumentationScope ( #3037 )
...
* Replace assertInstInfo with assertInstScope
* Update Changelog
* Fix order of other changelog entries
2024-11-22 09:32:04 +01:00
Emídio Neto
cc52bd2729
Fix http clients method attribute in case of non standard http methods ( #2726 )
2024-07-22 12:56:22 -07:00
Leighton Chen
b94c5906fd
Use generated symbols from semantic conventions package ( #2611 )
2024-06-17 09:20:17 -07:00
Leighton Chen
2317adcc34
HTTP transition for wsgi ( #2425 )
2024-04-19 10:59:05 -07: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
Leighton Chen
4bf3577fb7
Requests instrumentation http semantic convention migration ( #2002 )
2023-11-29 14:22:16 -08: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
Maciej Nachtygal
743ac64661
Issue #1757 - Update HTTP server/client instrumentation span names ( #1759 )
...
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-06-16 00:21:05 +02:00
Diego Hurtado
fc547877d3
Remove use of httpbin ( #1854 )
2023-06-13 10:30:52 +00:00
Federico Bond
2629c12161
Implement request and response hooks in requests library instrumentation ( #1717 )
2023-03-16 21:24:10 +00:00
Ashutosh Goel
f7fd1e0693
Restoring metrics in requests ( #1110 )
2022-06-25 07:09:01 +05:30
Carol Abadeer
6503cdf2fe
Fix HTTP instrumentation not being suppressed ( #1116 )
2022-06-20 13:16:51 -07:00
Alex Boten
d55d1dc0d6
[tests] use _NoOpTracer and _NoOpTracerProvider ( #860 )
...
* [tests] use _NoOpTracer and _NoOpTracerProvider
* update
2022-01-27 15:04:23 -06:00
Owais Lone
3137c1fa41
Upgrade black ( #802 )
2021-11-10 20:57:01 +00:00
Ben Campbell
5be20f9dc8
Adding `tracked_url_callback` to `RequestsInstrumentor` ( #714 )
...
* Adding `tracked_url_callback` to `RequestsInstrumentor`
* linting fixes and CHANGELOG update
* Switching to `get_excluded_urls`
* Update CHANGELOG.md
Co-authored-by: Leighton Chen <lechen@microsoft.com>
* Fixing linting
* Stop patch in tearDown
* Fixing lint
* Fixing lint
* Fixing lint
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-10-08 21:14:02 +00:00
Christian Neumüller
efaa257a63
Add net.peer.ip in requests & urllib3 instrumentations. ( #661 )
2021-09-27 10:21:26 -07:00
Owais Lone
ffc2a2ff4c
More consistent assertion methods ( #641 )
...
* More consistent assertion methods
* Updated core SHA
2021-08-30 22:46:18 +02:00
Mario Jonke
2ccf12055e
Fix RequestsInstrumentor for custom transport adapters ( #562 )
...
* Fix RequestsInstrumentor for custom transport adapters
remove dead/leftover code from an early metrics implementation which
tried to access the raw.version attribute on the response object.
The 'version' attribute might not be present in every case, especially
when custom transport adapters are used.
2021-07-14 10:51:09 -07:00
Eunice Kim
4be32b542b
Add create context key to contrib ( #502 )
2021-06-11 09:50:06 -07:00
Ryo Kather
865837f757
Ensure clean http url ( #538 )
2021-06-11 09:01:52 -07:00
Srikanth Chekuri
8d0c150b31
Sync with auto generated semantic convention constants ( #428 )
2021-04-19 23:37:10 -07:00
Srikanth Chekuri
370952f684
Remove http.status_text from span attributes ( #406 )
2021-04-08 09:40:20 -07:00
Owais Lone
ca8eac61c2
Account for ProxyTracerProvider ( #399 )
2021-04-07 08:27:18 -07:00
alrex
9315eb0fb2
use StatusCode from trace instead of trace.status ( #366 )
2021-03-09 14:33:13 -08:00
Diego Hurtado
269e0f4de3
Add OpenTracing propagator ( #302 )
2021-02-16 15:42:13 -08:00
Leighton Chen
c265e2f035
Remove metrics from main branch ( #312 )
2021-02-05 16:41:03 -08:00
Mario Jonke
f0adb23143
Remove 'component' span attribute in instrumentations ( #301 )
2021-01-29 13:15:26 -08:00
Dave Grochowski
cb01a6bcb7
Use instanceof to check if responses are valid Response objects ( #273 )
2021-01-07 18:24:19 -08:00
Leighton Chen
65801c31d8
Fix requests and urllib instrumentations span name callback parameters ( #259 )
2020-12-16 08:17:23 -08:00
Srikanth Chekuri
744e961080
Update instrumentations ( #232 )
2020-12-07 08:29:57 -08:00
Leighton
dad94d434d
build
2020-11-09 10:14:44 -05:00
Leighton
a10e2c68d1
requests
2020-11-09 10:00:54 -05:00
Leighton Chen
d02dec5878
Change status codes from grpc status codes, remove setting status in instrumentations except on ERROR ( #1282 )
2020-10-28 14:28:58 -07:00
Leighton Chen
adedd560a4
Adding metric collection as part of instrumentations - Django ( #1230 )
2020-10-15 17:24:29 -07:00
alrex
e412e65cf6
Parent is now always passed in via Context, intead of Span or SpanContext ( #1146 )
...
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2020-10-08 08:39:04 -07:00
Leighton Chen
8fee5d7ade
Adding metric collection as part of instrumentations - Requests ( #1116 )
2020-09-25 07:31:35 -07:00
Leighton Chen
da202b05f6
Use is_recording flag in requests instrumentation ( #1087 )
2020-09-14 13:13:44 -07:00
alrex
2d5adef109
Rename HTTPTextFormat to TextMapPropagator ( #1085 )
2020-09-09 13:23:56 -07:00
Mario Jonke
fbd782c7f4
RequestsInstrumentor: Add support for prepared requests ( #1040 )
...
in addition to Session.request instrument Session.send to also
create spans for prepared requests.
2020-09-01 22:42:01 -07:00
alrex
8d061a079f
Span name updated to follow semantic conventions to reduce cardinality ( #972 )
2020-08-17 21:50:09 -07:00
Leighton Chen
c74c6d346e
Rename web framework packages from "ext" to "instrumentation" ( #961 )
2020-08-03 10:10:45 -07:00