680f197515
opentelemetry-instrumentation-flask: add explicit http duration buckets for stable semconv ( #3523 )
...
* opentelemetry-instrumentation-flask: add explicit http duration buckets for stable semconv
* Update CHANGELOG.md
* Fix pylint
2025-05-23 07:49:08 +00:00
3deb6b9db6
opentelemetry-instrumentation-flask: a bit more room on metrics tests ( #2884 )
2024-09-23 13:56:37 -07:00
a322a0a26b
flask: add http.target
and http.route
to metric attributes ( #2621 )
2024-07-22 09:33:40 -07:00
c9bad6269c
HTTP transition for asgi ( #2610 )
2024-07-03 11:19:34 -07:00
529178d9ae
Fix wrong unit in Flask new semconv test ( #2645 )
2024-07-01 09:35:10 -07:00
b94c5906fd
Use generated symbols from semantic conventions package ( #2611 )
2024-06-17 09:20:17 -07:00
c8d5f851ed
HTTP transition for flask ( #2454 )
2024-04-25 10:40:03 -07:00
a0c3211c4f
Bump black to 24.3.0 ( #2452 )
2024-04-23 08:45:48 -07:00
2317adcc34
HTTP transition for wsgi ( #2425 )
2024-04-19 10:59:05 -07:00
5207a78460
avoid losing repeated HTTP headers ( #2266 )
...
* avoid loosing repeated HTTP headers
* fix fof wsgi, test in falcon
* add changelog
* add more tests
* linting
* fix falcon and flask
* remove unused test
---------
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-03-21 11:30:54 -06:00
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
4f6618324d
Set schema_url on all tracers and meters ( #1977 )
2023-11-06 11:39:51 -08:00
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
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
4637912418
Use request_ctx
to determine whether or not _teardown_request
should end flask span ( #1692 )
...
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-06-13 13:23:48 +02:00
74a8b902f1
Fix issue with Flask instrumentation when a request spawn children threads and copies the request context ( #1654 )
2023-02-22 21:37:59 +00:00
260df4dc6d
Audit and test opentelemetry-instrumentation-flask NoOpTracerProvider ( #1614 )
2023-02-13 09:49:17 +00:00
78874df5c2
Fix install of Python 3.10 on GitHub Actions ( #1609 )
...
* Fix install of Python 3.10 on GitHub Actions
In PR #1604 the Python version was upgraded to Python 3.10 to fix a
local issue on M1 MacBooks.
The GitHub Action workflows now exit with the following message for the
docker-tests, spellcheck and lint checks, skipping these checks.
```
lint create: /home/runner/work/opentelemetry-python-contrib/opentelemetry-python-contrib/.tox/lint
SKIPPED: InterpreterNotFound: python3.10
___________________________________ summary ____________________________________
SKIPPED: lint: InterpreterNotFound: python3.10
congratulations :)
```
Upgrade the Python version in the GitHub Actions workflow to fix this.
* Fix YAML interpretation of Python 3.10
* Upgrade Docker tests dependencies
Upgrade the asyncpg and psycopg2 packages, they don't work on Python
3.10.
This also fixes running these tests no M1 MacBooks.
* Fix linter issues merged into main
They went unnoticed while the CI didn't fail on the lint task not
working.
---------
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-03 08:37:24 +05:30
26d3343428
Add support for regular expression matching and sanitizing of headers in Flask. ( #1413 )
...
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-10-29 08:12:06 +00:00
32d7ff4082
Flask sqlalchemy psycopg2 integration ( #1224 )
2022-09-08 20:18:27 +00:00
ebe6d1804b
Metrics instrumentation flask ( #1186 )
2022-08-05 07:47:14 +00:00
0007c9046c
Add metric instrumentation for WSGI ( #1128 )
2022-06-22 03:54:05 +05:30
36ba621226
Fix multiple import errors ( #1030 )
2022-04-05 09:31:19 -07:00
c60a7e46ab
Flask: Capture custom request/response headers as span attributes ( #952 )
...
* Capture request/response headers for flask
* Update changelog and fixed lint errors
2022-03-09 11:52:06 +00:00
30d0c2ea90
Conditionally create server spans for flask ( #828 )
...
* Making span as internal in presence of a span in current context
* Updating changelog
* Removing extra print statements
* Resolving comments: Setting current context as parent in its presence
* Ignoring pylint check as django.conf.urls.url is removed in django 4.0
Django release notes: https://docs.djangoproject.com/en/4.0/releases/4.0/
* Removing changes in django files
2021-12-20 11:48:59 +00:00
3137c1fa41
Upgrade black ( #802 )
2021-11-10 20:57:01 +00:00
face2a3272
refactor common test code to use utility method ( #700 )
2021-10-14 22:19:02 +00:00
fbb677a01d
use f-strings instead of format ( #693 )
...
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-09-28 19:12:47 +00:00
14b0a3fdaf
Provide excluded_urls argument to Flask instrumentation ( #604 )
2021-07-29 13:22:28 -07:00
56da6d74df
Consistent way of not instrumenting multiple times ( #549 )
2021-07-09 09:55:44 -07:00
fbd39ccaac
[FLASK] added request and response hook ( #416 )
2021-06-01 14:44:24 -07:00
3ec77360cb
Update instrumentations to use tracer_provider for creating tracer if given, otherwise use global tracer provider ( #402 )
2021-04-28 08:36:37 -07:00
8d0c150b31
Sync with auto generated semantic convention constants ( #428 )
2021-04-19 23:37:10 -07:00
308369004c
Added opt-in support to return traceresponse headers for server instrumentations. ( #436 )
2021-04-19 12:03:31 -07:00
370952f684
Remove http.status_text from span attributes ( #406 )
2021-04-08 09:40:20 -07:00
f436514554
Replaced Tracer.use_span() with opentelemetry.trace.use_span() ( #364 )
2021-03-08 09:33:49 -08:00
2fd68a2bf9
Remove Configuration from instrumentations ( #285 )
2021-02-04 08:02:37 -08:00
f0adb23143
Remove 'component' span attribute in instrumentations ( #301 )
2021-01-29 13:15:26 -08:00
11a06db3d5
Rename "host.port" attribute to "net.host.port" ( #242 )
2020-12-11 07:55:11 -08:00
a403b65183
Use Config class methods for common purposes ( #220 )
2020-12-04 10:18:25 -08:00
9657e3809a
Lint fix
2020-11-18 19:33:28 +05:30
cee66ec04f
Add callback for direct instrument
2020-11-18 19:06:33 +05:30
6cf6e77f76
Fix lint issues
2020-11-09 19:32:36 +05:30
ab16d1f1a6
Add custom span name hook for Flask
2020-11-06 01:35:17 +05:30
d38463ad70
Use url.rule instead of request.endpoint for span name flask instrumentation ( #1260 )
2020-10-21 10:08:33 -07:00
db634d64f2
Use is_recording flag in flask, django, tornado, boto, botocore instrumentations ( #1164 )
2020-09-30 07:36:57 -07:00
26eefe46cf
Rename web framework packages from "ext" to "instrumentation" ( #961 )
2020-08-03 10:10:45 -07:00