Commit Graph

130 Commits

Author SHA1 Message Date
Owais Lone 3137c1fa41
Upgrade black (#802) 2021-11-10 20:57:01 +00:00
Michael Manganiello 9dc3bbb8dc
`django`: Fix instrumentation and tests for all Django major versions (#780) 2021-10-28 13:52:36 -07:00
Alex Boten 335a14c682
adding CI testing for python 3.10 (#742) 2021-10-26 21:43:23 +00:00
Michael Manganiello 4b9b6dc18e
django: Fix carrier usage on ASGI requests (#767)
* django: Fix carrier usage on ASGI requests

For ASGI requests, we must use `request.scope` instead of
`request.META`. This is because `ASGIGetter` retrieves the `headers` key
from the carrier [0], which is only present in `request.scope`.

[0] https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py#L133

* Add unit tests
2021-10-25 16:14:47 +00:00
Michael Manganiello 07c52aad38
Refactor code using pyupgrade for Python 3.6 (#770)
* Refactor code using pyupgrade for Python 3.6

This diff is the result of applying the following command to the
project:

```shell
find . -type f -name "*.py" -exec pyupgrade --py36-plus '{}' +
```

* Simplify yield from
2021-10-24 07:04:06 +05:30
Leighton Chen ae7a415f47
Consolidate instrumentation documentation in docstrings (#754) 2021-10-21 09:54:30 -07:00
Owais Lone d158a5f3b8
Prepare release v1.6.2 and 0.25b2 (#762) 2021-10-20 00:00:28 +05:30
Leighton Chen f3dde6b628
updating changelogs and version to 1.6.1-0.25b1 (#751) 2021-10-18 13:04:04 -07:00
alrex face2a3272
refactor common test code to use utility method (#700) 2021-10-14 22:19:02 +00:00
alrex 3ebfdb1a54
adding missing python 3.9 classifier (#741) 2021-10-14 21:52:44 +00:00
Leighton Chen 9f6c97af9f
Release/1.6.0 0.25b0 (#732) 2021-10-13 14:54:52 -07:00
Michael Manganiello 5105820fff
Add Django ASGI support (#391) 2021-10-12 10:28:03 -07:00
alrex 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
alrex 354bdc42d9
update open calls to pass encoding (#684) 2021-09-22 10:16:14 -07:00
Diego Hurtado b6e49ba66d
Remove unused imports (#646)
* Remove unused imports

Fixes #645

* Fix lint

* Import trace_tween_factory

* Fix lint

* Fix lint

* Fix pylint

* Try without using the symbol

* Fix isort

* Revert "Fix isort"

This reverts commit 4dbd91450b.

* Revert "Try without using the symbol"

This reverts commit d94f955646.
2021-09-01 19:38:02 +02:00
Owais Lone d4668bcbc7
Release/1.5.0 0.24b0 (#628)
* updating changelogs and version to 1.4.0-0.24.dev0

* updating changelogs and version to 1.5.0-0.24b0

* Update CHANGELOG.md

Co-authored-by: Leighton Chen <lechen@microsoft.com>

* Update CHANGELOG.md

Co-authored-by: Leighton Chen <lechen@microsoft.com>

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-08-26 14:54:46 +05:30
Srikanth Chekuri a04fb0e019
Back to develop after 0.23b0 release (#606)
* Back to develop after 0.23b0 release

* Update SHA

* Update SHA

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-07-27 11:26:43 -06:00
Diego Hurtado 4d0f57bbc5
Release/1.4.0 0.23b0 (#597) 2021-07-19 15:57:58 -07:00
Srikanth Chekuri df0ca3b604
Fix AttributeError: `ResolverMatch` object has no attribute `route` (#581) 2021-07-14 11:22:29 -07:00
alrex 753e22896a
updating dependency for api/sdk to major version (#567)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-07-09 10:17:18 -07:00
Michael Manganiello b2802ddd21
Migrate Django middleware to new-style (#533) 2021-07-06 08:50:58 -07:00
Leighton Chen 3d7cc64a97
[chore] update main after 0.22b0 release (#528) 2021-06-02 09:16:26 -07:00
Leighton Chen 36c5937770
Release for V1.3.0 and 0.22b0 (#526) 2021-06-01 18:24:03 -07:00
Owais Lone 5d1f3201af
Simplify bootstrap and generate code (#514)
- We now automatically generate bootstrap_gen.py file from the list of instrumentations present in the source tree.
- Bootstrap command now uses consumes this auto-generated list instead of keeping it's own local copy.
- We no longer uninstall packages before installing them as instrumentation package no longer specify libraries as dependencies so the edge cases are no longer there.
- We no longer try to install an incompatible version or force upgrade/downgrade an installed version. This used to leave systems in broken states which should happen no more.
2021-06-01 09:19:09 -07:00
Diego Hurtado 4a8b32b941
Fix error in license files (#521)
Fixes #520
2021-05-28 09:16:58 -07:00
Owais Lone daa72382df
Instrumentation runtime checks (#475) 2021-05-26 22:55:36 -07:00
alrex 639f257f71
[chore] bump 1.3.0.dev0 & 0.22.dev0 versions (#494) 2021-05-12 11:54:18 -07:00
alrex c49e69c0bc
prepare 0.21b0 release (#493) 2021-05-11 20:58:17 -07:00
Owais Lone cb35cc40ab
Generate instrumentation packages setup.py files (#474)
All instrumentations packages have almost exactly same setup.py files.
This commit adds a python script that generates it from a source
template. This dramatically reduces the time and effort required to
update all instrumentation setup.py files, and also reduces chances of
making manual mistakes.
2021-04-29 17:16:41 -07:00
Srikanth Chekuri 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
Leighton Chen 2ede3a5b87
[chore] Update main after 1.1.0 release (#463) 2021-04-21 08:03:20 -07:00
Srikanth Chekuri 8d0c150b31
Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
Owais Lone 308369004c
Added opt-in support to return traceresponse headers for server instrumentations. (#436) 2021-04-19 12:03:31 -07:00
Dhruv Vora 658f9ca019
Added link to examples folder in each instrumentation (#438) 2021-04-13 14:56:30 -07:00
Srikanth Chekuri 370952f684
Remove http.status_text from span attributes (#406) 2021-04-08 09:40:20 -07:00
Owais Lone 1ee8924cfb
Support request and resposne hooks for Django instrumentation (#407) 2021-04-08 08:06:41 -07:00
alrex 35774f19f4
bump version to 0.20.dev0 (#396) 2021-04-05 09:17:56 -07:00
alrex 56072a25f0
preparing 1.0.0/0.19b0 release (#384) 2021-03-26 15:22:09 -07:00
Diego Hurtado d89f865221
Sync with Make setters and getters optional (#372) 2021-03-26 10:20:01 -07:00
alrex ef0f74ec64
remove python 3.5 support (#374) 2021-03-18 08:15:35 -07:00
alrex 9315eb0fb2
use StatusCode from trace instead of trace.status (#366) 2021-03-09 14:33:13 -08:00
Owais Lone f436514554
Replaced Tracer.use_span() with opentelemetry.trace.use_span() (#364) 2021-03-08 09:33:49 -08:00
Leighton Chen 13e72b1906
[Chore] Update main after 0.18b0 release (#338) 2021-02-16 16:24:28 -08:00
Diego Hurtado 269e0f4de3
Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
Leighton Chen 9c1f98d250
Update main after 1.0.0rc1 release from core (#333) 2021-02-16 09:35:18 -08:00
Leighton Chen c265e2f035
Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
Diego Hurtado 2fd68a2bf9
Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
alrex f022385e37
update references to main (#306) 2021-01-29 12:09:22 -08:00
alrex 08e82a92d7
[post-release] updating version to 0.18.dev0 (#289) 2021-01-21 09:10:30 -08:00
alrex 2a11aeeafa
[pre-release] Update changelogs, version [0.17b0] (#287) 2021-01-20 16:01:24 -08:00
Owais Lone 472f845381
Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
alrex ae70d5abe5
Combine changelogs (#239) 2020-12-08 16:20:29 -08:00
Srikanth Chekuri 744e961080
Update instrumentations (#232) 2020-12-07 08:29:57 -08:00
Srikanth Chekuri a403b65183
Use Config class methods for common purposes (#220) 2020-12-04 10:18:25 -08:00
Alex Boten bcec49cf2e update version to 0.17.dev0 2020-11-25 21:10:39 -08:00
alrex 3e4c5d3aa3
[pre-release] Update changelogs, version [0.16b0] (#217) 2020-11-25 19:44:20 -08:00
Nathaniel Ruiz Nowell 3ae0edb259 Update package links to point to contrib repo 2020-11-18 13:09:44 -08:00
(Eliseo) Nathaniel Ruiz Nowell 28c1331e57
Update Contrib packages to 0.16dev0 (#129) 2020-11-05 11:25:37 -08:00
alrex 015fa570bd [pre-release] Update changelogs, version [0.15b0] (#1320) 2020-11-02 09:00:06 -08:00
alrex 41a10aacc2 fixing changelogs (#1315)
Found a few discrepancies in the changelogs that needed to be fixed
2020-11-02 08:01:02 -08:00
Prajilesh N 6f579299b5 Converted TextMap propagator getter to a class and added keys method (#1196)
Co-authored-by: alrex <aboten@lightstep.com>
2020-11-01 20:12:47 -08:00
zhutianyu 2504416734 Bugfix django instrumentation (#1309) 2020-11-01 19:50:17 -08:00
Leighton Chen b5b81db05f Change status codes from grpc status codes, remove setting status in instrumentations except on ERROR (#1282) 2020-10-28 14:28:58 -07:00
Owais Lone fa77bb85a7 Django: Record status, http.status_code and event on exception (#1257) 2020-10-21 09:01:49 -07:00
Leighton Chen ad1ed83571 Adding metric collection as part of instrumentations - Django (#1230) 2020-10-15 17:24:29 -07:00
stschenk d4b3dac596 Add capture of http.route to DjangoInstrumentor middleware (#1226) 2020-10-15 12:34:32 -07:00
Owais Lone 5bc4e2882b Allow django to be instrumented automatically (#1239) 2020-10-14 09:13:27 -07:00
Leighton Chen 904a938c6d chore: bump dev version (#1235) 2020-10-13 11:38:09 -07:00
Leighton Chen 7fef6fa47c Use is_recording flag in aiopg, asyncpg, dbapi, psycopg2, pymemcache, pymongo, redis, sqlalchemy instrumentations (#1212) 2020-10-08 12:25:20 -07:00
Owais Lone 5ab4d0ae62 Added ability to extract span attributes from tornado request objects (#1178)
OTEL_PYTHON_TONADO_TRACED_REQUEST_ATTRS env var can be set to a command
separated list of attributes names that will be extracted from Tornado's
request object and set as attributes on spans.

Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2020-10-07 19:52:58 -07:00
E Brake eb28c8d0bc instrumentation/django: prepend opentelemetry middleware instead of append (#1163) 2020-10-01 09:10:03 -07:00
Leighton Chen 287e026060 Use is_recording flag in flask, django, tornado, boto, botocore instrumentations (#1164) 2020-09-30 07:36:57 -07:00
Owais Lone e3199ac411 Added ability to extract span attributes from django request objects. (#1154)
OTEL_PYTHON_DJANGO_TRACED_REQUEST_ATTRS env var can be set to a command
separated list of attributes names that will be extracted from Django's
request object and set as attributes on spans.
2020-09-28 21:52:11 -07:00
HiveTraum 06511cd31a Django span names according to convention (#992) 2020-09-21 13:30:03 -07:00
alrex cebfa2f3c3 chore: bump dev version (#1131) 2020-09-17 12:21:39 -07:00
alrex 992cc24fba release: updating changelogs and version to 0.13b0 (#1129)
* updating changelogs and version to 0.13b0
2020-09-17 08:23:52 -07:00
alrex 98b1eb4c31 dropping support for python 3.4 (#1099)
* dropping support for python 3.4
2020-09-14 15:11:56 -07:00
Leighton Chen cab267ce78 chore: 0.13.dev0 version update (#991) 2020-08-15 18:06:27 -07:00
Simon THOBY 7de89b2005 ext/django: accept middlewares declared as tuples (#950) 2020-08-05 11:29:02 -07:00
Leighton Chen b372486958 Rename web framework packages from "ext" to "instrumentation" (#961) 2020-08-03 10:10:45 -07:00