1156 Commits

Author SHA1 Message Date
795bc867ff Reimplement the keys method in WSGI CarrierGetter (#379) 2021-03-25 08:46:02 -07:00
2f088f8de0 Fix the empty headers use case for OTTracePropagator (#378) 2021-03-25 07:54:59 -07:00
f8e51c488d update docs to match new jaeger path (#370) 2021-03-20 08:42:45 -07:00
ef0f74ec64 remove python 3.5 support (#374) 2021-03-18 08:15:35 -07:00
2d9df10645 datadog: do not add None tracestate value. (#368)
The datadog exporter sometimes attempts to add a "None" value, if the
datadog origin header doesn't exist.

This does not cause runtime errors in the most recent opentelemetry
release (tracestate protects against an invalid value), but does cause warnings:

WARNING  opentelemetry.trace.span:span.py:230 Invalid key/value pair (dd_origin, None) found.
2021-03-10 22:33:12 -08:00
0917dad997 Sync with Remove time_ns from API (#342) 2021-03-10 08:21:45 -08:00
9ef4410fa8 Added logging instrumentation to enable log - trace correlation (#345)
This commit adds a new logging instrumentation. The instrumentation
patches standard library logging module to inject tracing context
variables (otelSpanID, otelTraceID, otelServiceName) into log record
objects. It also optionally calls `logging.basicConfig()` and sets a
logging format that makes use of these vars if instructed by the user.
2021-03-09 21:52:58 -08:00
5f88452b0c Add missing dependencies (#360) 2021-03-09 20:09:12 -08:00
9315eb0fb2 use StatusCode from trace instead of trace.status (#366) 2021-03-09 14:33:13 -08:00
f436514554 Replaced Tracer.use_span() with opentelemetry.trace.use_span() (#364) 2021-03-08 09:33:49 -08:00
0157535e93 Fix doc (#361) 2021-03-04 10:01:02 -08:00
aa31e73fec Add missing dependency (#358) 2021-03-03 12:06:31 -08:00
10a448ee75 move textmap propagators to opentelemetry.propagators (#355) 2021-03-02 16:47:29 -08:00
79809976d5 Rename DefaultSpan to NonRecordingSpan (#354) 2021-03-02 10:30:52 -08:00
e57dec8854 Sync with Refactor utils (#331)
Co-authored-by: alrex <aboten@lightstep.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2021-03-01 14:24:33 -08:00
6720930cdb rename simple/batch span processors (#352) 2021-03-01 13:40:25 -08:00
1c8852f99e Rename IdsGenerator to IdGenerator (#350) 2021-02-26 14:56:30 -08:00
28e410c1fa Remove gitter from docs (#349)
Co-authored-by: alrex <alrex.boten@gmail.com>
2021-02-26 08:24:10 -08:00
7159372e3b Fix docs build (#348) 2021-02-19 16:53:37 -08:00
abb12e426d Update build.sh (#340) 2021-02-17 09:58:35 -08:00
13e72b1906 [Chore] Update main after 0.18b0 release (#338) 2021-02-16 16:24:28 -08:00
269e0f4de3 Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
9c1f98d250 Update main after 1.0.0rc1 release from core (#333) 2021-02-16 09:35:18 -08:00
138927abe6 Update util path (#319) 2021-02-12 10:52:25 -08:00
0fe9096bfc Update span interface usage (#324) 2021-02-09 12:31:03 -08:00
499899a601 remove reference folder (#326) 2021-02-09 09:54:41 -08:00
b0f7268fb0 Update README to link to GitHub Discussions (#325) 2021-02-09 09:11:48 -08:00
5fc26d3264 gRPC streaming bugfix (#260) 2021-02-08 11:15:48 -08:00
7bd1d904b2 Ensure resources are not mutated (#310) 2021-02-08 10:54:13 -08:00
c265e2f035 Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
ade29f692b gRPC instrumentation: client additions (#269)
The docs on metric labels suggests that they should probably be strings,
and all others I can find are strings, and so these ought to be also.
Otherwise, some of the exporters/processors have to handle things
specifically, and not all of these come out as nice as could be when you
`str()` them.

I've also made sure to use the `StatusCode` name, as that's the
interesting thing.

Finally, there's no need to report specifically that `error=false`, so
I've removed that tag.
2021-02-05 09:09:57 -08:00
55efeb6063 Case insensitive header key retrieval for asgi instrumentation (#308) 2021-02-05 08:51:06 -08:00
b53b9a012f Fix failing aiopg tests (#317) 2021-02-04 17:39:24 -08:00
b016f6f774 update requirements for snappy (#314) 2021-02-04 15:10:10 -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
f022385e37 update references to main (#306) 2021-01-29 12:09:22 -08:00
M.J
5dd2412d75 Aiohttp instrumentation readme (#286) 2021-01-28 09:12:31 -08:00
fcc260c748 update python version for readthedocs (#297) 2021-01-26 09:51:37 -08:00
f279d39623 updating readme (#296)
Adding more details to the readme including a link to the read the docs
2021-01-26 09:35:37 -08:00
c9075cf1f2 Add readTheDocs (#252)
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
Co-authored-by: alrex <aboten@lightstep.com>
2021-01-26 09:06:39 -08:00
f3a078296c Added Zoom passcode (#295) 2021-01-26 08:15:47 -08:00
08e82a92d7 [post-release] updating version to 0.18.dev0 (#289) 2021-01-21 09:10:30 -08:00
2a11aeeafa [pre-release] Update changelogs, version [0.17b0] (#287) v0.17b0 2021-01-20 16:01:24 -08:00
b3aa7a79d3 Update TraceState (#276) 2021-01-20 12:13:12 -08:00
8b9202be6f Updated dbapi and psycopg2 instrumentations. (#246)
Changes:

- Update dbapi instrumentation to use the SQL statement name as the span
instead of the entire SQL query.
- Renamed TracedCursor with CursorTracing. The class was not a valid
Cursor so the name was confusing.
- Updated CursorTracing's (previously TracedCursor) traced_execution
method to accept the cursor instance as the first argument. This is
required as for some dbapi implementations, we need a reference to the
cursor in order to correctly format the SQL query.
- Updated psycopg2 instrumentation to leverage dbapi's `cursor_factory`
mechanism instead of wrapping the cursor with wrapt. This results in a
simpler instrumentation without monkey patching objects at runtime and
allows psycopg2's type registration system to work. This should make it
possible to use psycopg2 instrumentation when using the JSONB feature or
with frameworks like Django.
2021-01-20 10:45:28 -08:00
8c8f2785bd SQLAlchemy: Use SQL operation and DB name as the Span name (#254)
Current instrumentation uses the entire SQL query as the operation name
which makes traces very hard to read and understand in addition to
introducing high-cardinality issues. This commit fixes the problem by
using only the SQL operation name and the DB name instead of the entire
query.
2021-01-20 08:41:19 -08:00
d12f67fc31 Fix ids_generator references from moving from api to sdk (#283) 2021-01-11 12:40:38 -08:00
57b8106edc Fix AttributeError: __aexit__ for aiopg.connect and aiopg.create_pool (#235) 2021-01-08 08:56:38 -08:00
cb01a6bcb7 Use instanceof to check if responses are valid Response objects (#273) 2021-01-07 18:24:19 -08:00