32 Commits

Author SHA1 Message Date
fc547877d3 Remove use of httpbin (#1854) 2023-06-13 10:30:52 +00:00
2629c12161 Implement request and response hooks in requests library instrumentation (#1717) 2023-03-16 21:24:10 +00:00
f7fd1e0693 Restoring metrics in requests (#1110) 2022-06-25 07:09:01 +05:30
6503cdf2fe Fix HTTP instrumentation not being suppressed (#1116) 2022-06-20 13:16:51 -07:00
d55d1dc0d6 [tests] use _NoOpTracer and _NoOpTracerProvider (#860)
* [tests] use _NoOpTracer and _NoOpTracerProvider

* update
2022-01-27 15:04:23 -06:00
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00:00
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
ffc2a2ff4c More consistent assertion methods (#641)
* More consistent assertion methods

* Updated core SHA
2021-08-30 22:46:18 +02:00
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
4be32b542b Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
865837f757 Ensure clean http url (#538) 2021-06-11 09:01:52 -07:00
8d0c150b31 Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
370952f684 Remove http.status_text from span attributes (#406) 2021-04-08 09:40:20 -07:00
ca8eac61c2 Account for ProxyTracerProvider (#399) 2021-04-07 08:27:18 -07:00
9315eb0fb2 use StatusCode from trace instead of trace.status (#366) 2021-03-09 14:33:13 -08:00
269e0f4de3 Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
c265e2f035 Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
f0adb23143 Remove 'component' span attribute in instrumentations (#301) 2021-01-29 13:15:26 -08:00
cb01a6bcb7 Use instanceof to check if responses are valid Response objects (#273) 2021-01-07 18:24:19 -08:00
65801c31d8 Fix requests and urllib instrumentations span name callback parameters (#259) 2020-12-16 08:17:23 -08:00
744e961080 Update instrumentations (#232) 2020-12-07 08:29:57 -08:00
dad94d434d build 2020-11-09 10:14:44 -05:00
a10e2c68d1 requests 2020-11-09 10:00:54 -05:00
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
adedd560a4 Adding metric collection as part of instrumentations - Django (#1230) 2020-10-15 17:24:29 -07:00
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
8fee5d7ade Adding metric collection as part of instrumentations - Requests (#1116) 2020-09-25 07:31:35 -07:00
da202b05f6 Use is_recording flag in requests instrumentation (#1087) 2020-09-14 13:13:44 -07:00
2d5adef109 Rename HTTPTextFormat to TextMapPropagator (#1085) 2020-09-09 13:23:56 -07:00
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
8d061a079f Span name updated to follow semantic conventions to reduce cardinality (#972) 2020-08-17 21:50:09 -07:00
c74c6d346e Rename web framework packages from "ext" to "instrumentation" (#961) 2020-08-03 10:10:45 -07:00