1223 Commits

Author SHA1 Message Date
fe4e2d44c5 Reorder on_finish call order to correctly instrument all tornado work done during a request (#499)
Co-authored-by: alrex <aboten@lightstep.com>
2021-06-07 08:43:08 -07:00
5b125b196a Fix auto-instrumentation dependency conflict detection (#530) 2021-06-04 09:49:07 -07:00
9c834f0881 Fix generate_instrumentation_bootstrap script on windows (#527) 2021-06-03 08:49:48 -07:00
a3ecbc1f41 Add SQLAlchemy multithreading test (#468) 2021-06-03 08:33:06 -07:00
3d7cc64a97 [chore] update main after 0.22b0 release (#528) 2021-06-02 09:16:26 -07:00
36c5937770 Release for V1.3.0 and 0.22b0 (#526) v0.22b0 2021-06-01 18:24:03 -07:00
287cda9b37 Add employer for Diego (#525)
Fixes #524
2021-06-01 16:54:51 -07:00
fbd39ccaac [FLASK] added request and response hook (#416) 2021-06-01 14:44:24 -07:00
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
af7ab072cc update base version of python to 3.9 (#515) 2021-05-31 12:17:49 -07:00
3a7eb5364c Make propagators conform to spec (#488)
* Make propagators conform to spec

* do not modify / set an invalid span in the passed context in case
  a propagator did not manage to extract
* in case no context is passed to propagator.extract assume the root
  context as default so that a new trace is started instead of continung
  the current active trace in case extraction fails
* fix also ot-trace propagator which compared int with str trace/span ids
  when checking for validity in extract
2021-05-31 09:35:28 -07:00
4a8b32b941 Fix error in license files (#521)
Fixes #520
2021-05-28 09:16:58 -07:00
3bb28ab345 Fix ASGI instrumentation default span name (#418) 2021-05-27 16:20:29 -07:00
daa72382df Instrumentation runtime checks (#475) 2021-05-26 22:55:36 -07:00
9fe7838ee9 [Chore] Change main after opentelemetry-instrumentation-tornado hotfix (#510) 2021-05-26 14:12:53 -07:00
2bd60536cc Hotfix for tornado instrumentation (#509) 2021-05-25 11:10:24 -07:00
884c5eea13 Add an excerpt in CONTRIBUTING.MD for consistency in instrumentation implementations (#507) 2021-05-25 10:31:10 -07:00
b6ed679a0c Set status code on ASGI server span (#478) 2021-05-25 08:59:23 -07:00
f4a2b615ed Fix tornado instrumentation's usage of Span Status (#504) 2021-05-24 09:52:00 -07:00
c8ec25a3ba implements context propagation for lambda invoke + tests (#458) 2021-05-14 09:23:52 -07:00
c8103f5fa0 remove hectorhdzg from approvers (#489)
Thanks for all the contributions @hectorhdzg!
2021-05-13 08:57:29 -07:00
639f257f71 [chore] bump 1.3.0.dev0 & 0.22.dev0 versions (#494) 2021-05-12 11:54:18 -07:00
c56878ebf1 fix build script issue (#497) 2021-05-12 08:58:47 -07:00
c49e69c0bc prepare 0.21b0 release (#493) v0.21b0 2021-05-11 20:58:17 -07:00
e606542981 fix entrypoint for ottrace propagator (#492) 2021-05-10 16:07:32 -07:00
c12591ee65 Keep client interceptors in sync with grpc client interceptors (#442) 2021-05-07 08:49:10 -07:00
4966590d6c Added eachdist.py format command (#487)
This just runs black and isort of the entire repository.
2021-05-05 10:07:14 -07:00
9199e3cb3e Load instrumentors via Distro (#480)
This commit makes the following changes:

- Introduces a new `load_instrumentor(EntryPoint) -> None:` with a
default implementation method to the `BaseDistro` class.
- The default implementation loads the insrumentor from the provided
entry point and calls applies it without any arguments. (same as before)
- sitecustomize now calls Distro's `load_instrumentor` method to load
and activate an instrumentor instead of doing it directly.
- Added a new `DefaultDistro` implementation which is used if not distro
is found by entry points.
2021-05-04 11:53:08 -07:00
01db88bfe8 Add expectation excerpt in contributing.md for instrumentations (#482) 2021-05-03 14:51:26 -07:00
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
a89d7a60bb Docs typo fix (#479) 2021-04-29 08:25:48 -07:00
43e0972aea Fix traced_request_attrs (#473) 2021-04-29 08:08:18 -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
bdbc249ff0 Use traceflags object (#472) 2021-04-27 11:06:24 -07:00
45c94e765d Update datadog exporter error tagging (#459) 2021-04-27 09:42:28 -07:00
b1d6c90d70 add python 3.9 tests (#466) 2021-04-27 09:09:30 -07:00
78cd776243 Revert typo (#470) 2021-04-26 17:26:18 -07:00
f2311ddc40 Move opentelemetry-instrumentation from core (#465) 2021-04-26 11:35:13 -07:00
2ede3a5b87 [chore] Update main after 1.1.0 release (#463) 2021-04-21 08:03:20 -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
4aec1e448f Request/Response hooks for Tornado server and client (#426) 2021-04-16 13:30:11 -07:00
0fcb60d2ad no longer pin sphinx (#443) 2021-04-14 09:04:07 -07:00
08682f6f1d redis: fix default port KeyError, wrong attr name (#265)
* redis: fix default port KeyError, wrong attr name
* fix docker tests and another ip/port issue in asyncpg

Co-authored-by: Alex Boten <aboten@lightstep.com>
2021-04-14 08:45:36 -07:00
96b0f592b7 Replaced WSGI name callback with request/response hooks (#424) 2021-04-14 08:18:47 -07:00
e7d26a4c2d Update gRPCContext wrapper class (#420)
There are a few cases where one needs to dig into `grpc.ServicerContext`
objects, and these fields were missing from our wrapper, which can cause
issues with implmementation.
2021-04-13 15:22:43 -07:00
658f9ca019 Added link to examples folder in each instrumentation (#438) 2021-04-13 14:56:30 -07:00
9e996185d1 Adds support for request and response hooks to Falcon instrumentation. (#415) 2021-04-13 09:30:11 -07:00
370952f684 Remove http.status_text from span attributes (#406) 2021-04-08 09:40:20 -07:00
1ee8924cfb Support request and resposne hooks for Django instrumentation (#407) 2021-04-08 08:06:41 -07:00