1278 Commits

Author SHA1 Message Date
cc57aacd71 Improve reliability of tests (#643)
* Run tests on Windows in Github Actions

* core sha update

* format code

* fix ci yaml

* rebase

* lint

* Try without win+py3.6 fix

* Try without win+py3.6 fix

* Improve test reliability

Update some tests to use more deterministic methods of testing in memory
spans. This helps the core repo pass tests after adding Windows to CI
matrix.
2021-09-01 12:06:13 +02:00
c279ee59a8 Rerun a flaky test (#639)
* Rerun a flaky test
2021-08-31 03:47:58 +05:30
ffc2a2ff4c More consistent assertion methods (#641)
* More consistent assertion methods

* Updated core SHA
2021-08-30 22:46:18 +02:00
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>
v0.24b0
2021-08-26 14:54:46 +05:30
c6976fc51f Potential fix for flaky celery test (#629)
It seems the same in memory span exporter was being reused by multiple
tests. This change _should_ create a new instance of memeory exporter
per test/function.

Fixes #2067
2021-08-26 03:30:26 +05:30
bfaabbf7e1 Make Falcon instrumentation compatible with Falcon >=3 (#607)
* Make Falcon  instrumentation compatible with Falcon >=3

Replace falcon.api.Request -> falcon.Request which exists on both Falcon 2 & 3

* Update package.py

* Update CHANGELOG.md

* update tox.ini

* revert changes to tox.ini to test failures

* Update package.py

Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-08-25 04:09:06 +05:30
9c4eb69ab8 Allow instrumentation of newer FastAPI versions (#602)
* Allow instrumentation of newer FastAPI versions

Since the introduction of the `_instruments` runtime checks in #475, the
FastAPI instrumentation has stopped working for versions >= `0.59.0`.
However the current test suite passes even for the latest released
version at the moment (`0.67.0`).

It seems this isn't related to a limitation in the instrumentation code,
but actually because of it being created when `0.58` was the latest version:
7bec76a220.

* Add changelog entry

Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-08-25 03:34:26 +05:30
cc2529e2cd Fix tox lint command (#623)
* Fix tox lint command

- Move apt-get install command to github actions to run on an ubuntu
  system only. This keeps tox.ini cross-platform and enabled to run on
  non-ubuntu systems locally.
- Add `-y` flag to apt-get install command so it does not wait for
  configuration on CI.

* Downgrade pylint to 2.9.x

* Add pip cache to github actions cache
2021-08-25 02:48:23 +05:30
d9c0116871 Worklow to publish a package from a CODEOWNER tag (#598)
* Worklow to publish a package from a CODEOWNER tag

* Prevent main script from release >=1.0 packages

* Fixes to build package workflow and script

* Better naming and remove redundant ls flag

* Add err msg for missing setup.py ls match

* Use lowercase for all non env variable vars
2021-08-19 22:11:35 +05:30
b8fe7fc7cd EKS Detector should return empty string, not resource if env var missing (#613)
* EKS Detector returns string if missing env var

* Update sdk-extension/opentelemetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/resource/eks.py

Add return value typing to _get_cluster_name method

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

Co-authored-by: Aaron Abbott <aaronabbott@google.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-08-13 17:14:41 -04:00
f878b834f8 add comment to tox (#621) 2021-08-13 13:28:04 -07:00
05944cb645 docs: Update instrumentation example in readme (#615) 2021-08-13 12:35:30 -07:00
e90452ff56 Add note about Falcon version support (#611) 2021-08-13 11:35:21 -07:00
ebcdbdb660 Exit AWS ECS and EKS Detector container file reads early if container id found (#612) 2021-08-13 09:25:14 -07:00
d14d888c71 disable elasticcachesearch7 (#619) 2021-08-12 10:45:01 -07:00
b2a86719eb update approvers/maintainers list (#614) 2021-08-10 10:43:14 -07:00
c8b6de6c1c Add support for SQLAlchemy 1.4 (#568) 2021-08-04 15:00:10 -07:00
d671a10c52 SDK extension does not need to depend on API directly (#605) 2021-08-02 09:08:15 -07:00
14b0a3fdaf Provide excluded_urls argument to Flask instrumentation (#604) 2021-07-29 13:22:28 -07:00
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
c5c6977584 Add hooks for aiohttp, asgi, starlette, fastAPI, urllib, urllib3 (#576) 2021-07-26 14:34:50 -07:00
1157eb294d Add AWS resource detectors to extension package (#586) 2021-07-23 15:57:23 -07:00
5374aeea0e Update Zoom link to match core (#603) 2021-07-23 08:21:18 -07:00
f70af959b0 update changelog (#600) 2021-07-22 07:46:17 -07:00
7408bb77ab Update publish.yml (#601) 2021-07-21 09:40:33 -07:00
f6ffa76206 [exporter/datadog]: fix service name resolution (#570) 2021-07-20 08:57:11 -07:00
4d0f57bbc5 Release/1.4.0 0.23b0 (#597) v0.23b0 2021-07-19 15:57:58 -07:00
278149553b Remove opentelemetry-instrumentation (#595)
Fixes #592
2021-07-19 09:19:48 -07:00
08daa9d194 Make it explicit to install distro to get auto-instrumentation working (#588) 2021-07-16 10:08:29 -07:00
7e8b5bb178 Suppress botocore downstream instrumentation like urllib3 (#563) 2021-07-14 12:27:28 -07:00
3a1746a3bf Respect suppress instrumentation key in gRPC client (#559) 2021-07-14 11:45:01 -07:00
df0ca3b604 Fix AttributeError: ResolverMatch object has no attribute route (#581) 2021-07-14 11:22:29 -07: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
9206e5dca8 Refactor httpx instrumentation (#577) 2021-07-14 10:19:38 -07:00
bf6fd0894f Use basename to get package name (#583)
Fixes #582
2021-07-14 08:02:20 -07:00
2ee2cf3cb5 fix asynchonous unary call traces (#536) 2021-07-12 08:16:59 -07:00
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
56da6d74df Consistent way of not instrumenting multiple times (#549) 2021-07-09 09:55:44 -07:00
bf97e172f0 Add configuration to requests instrumentation readme (#556) 2021-07-07 14:24:46 -07:00
47f9cb982a AWS ext depends on SDK IdGenerator (#558) 2021-07-07 13:38:00 -07:00
bddd0825bf Update AWS entry points to match spec (#566) 2021-07-06 10:30:52 -07:00
b2802ddd21 Migrate Django middleware to new-style (#533) 2021-07-06 08:50:58 -07:00
c100b21fa4 Require aiopg to be less than 1.3.0 (#560) 2021-07-01 14:01:25 -07:00
5b43a5993d fix missing dep in docs build (#557) 2021-06-30 12:49:45 -07:00
de93b2ad28 Update CONTRIBUTING document (#417)
Co-authored-by: alrex <aboten@lightstep.com>
2021-06-25 09:03:15 -07:00
9c81eda7a8 Include Flask 2.0 as compatible with existing flask instrumentation (#545) 2021-06-24 13:30:34 -07:00
63e7561931 Update the psycopg2 dependency (#543) 2021-06-22 07:47:34 -07:00
e12917401f Adding web.py example (#523)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-06-17 08:31:09 -07:00
7cae4d3001 Enable passing explicit urls to exclude in instrumentation in FastAPI (#486) 2021-06-14 17:17:39 -07:00
c1fbe0e281 Fix tox build (#542) 2021-06-14 15:46:10 -07:00