46 Commits

Author SHA1 Message Date
18e056b85a Codespell ci (#1237) 2022-08-29 15:08:25 +05:30
a5ec3f7f55 Use a shorter timeout for AWS EC2 metadata requests (#1089)
* Use a shorter timeout for AWS EC2 metadata requests

Fix #1088 

According to the docs, the value for `timeout` is in seconds: https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen. 1000 seconds seems slow and in some cases can block the startup of the program being instrumented (see #1088 as an example), because the request will hang indefinitely in non-AWS environments. Using a much shorter 1 second timeout seems like a reasonable workaround for this.

* add changelog entry for timeout change

* use 5s timeout for ECS and EKS, update changelog

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-05-24 14:48:43 +02:00
9e57fbad8e Release AWS Python SDK Extension as 2.0.1 and AWS Propagator as 1.0.1 (#753) 2021-10-18 14:51:52 -07:00
224780f38d Move AWS X-Ray Propagator into its own package (#720)
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-10-12 15:44:03 +00:00
c143d0534f Fix typo in AWS X-RAY Propagator (#702) 2021-10-01 05:08:26 +05:30
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
201aa2bb1b chore: Set SDK Ext AWS to 1.1.0dev0 (#696) 2021-09-22 14:21:29 -07:00
354bdc42d9 update open calls to pass encoding (#684) 2021-09-22 10:16:14 -07:00
50e7b1b708 Patch update SDK Extension AWS to version 1.0.1 (#672)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-09-16 16:13:14 -07:00
fc8a02bcf8 Release AWS Python SDK Extension as 1.0 (#667) 2021-09-09 13:01:47 -07:00
97e9f2f9ef Update Doc for aws propagator default sampling behavior (#656) 2021-09-08 11:43:20 -07: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>
2021-08-26 14:54:46 +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
ebcdbdb660 Exit AWS ECS and EKS Detector container file reads early if container id found (#612) 2021-08-13 09:25:14 -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
1157eb294d Add AWS resource detectors to extension package (#586) 2021-07-23 15:57:23 -07:00
4d0f57bbc5 Release/1.4.0 0.23b0 (#597) 2021-07-19 15:57:58 -07:00
bddd0825bf Update AWS entry points to match spec (#566) 2021-07-06 10:30:52 -07:00
5b43a5993d fix missing dep in docs build (#557) 2021-06-30 12:49:45 -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) 2021-06-01 18:24:03 -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
639f257f71 [chore] bump 1.3.0.dev0 & 0.22.dev0 versions (#494) 2021-05-12 11:54:18 -07:00
c49e69c0bc prepare 0.21b0 release (#493) 2021-05-11 20:58:17 -07:00
2ede3a5b87 [chore] Update main after 1.1.0 release (#463) 2021-04-21 08:03:20 -07:00
35774f19f4 bump version to 0.20.dev0 (#396) 2021-04-05 09:17:56 -07:00
56072a25f0 preparing 1.0.0/0.19b0 release (#384) 2021-03-26 15:22:09 -07:00
d89f865221 Sync with Make setters and getters optional (#372) 2021-03-26 10:20:01 -07: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
1c8852f99e Rename IdsGenerator to IdGenerator (#350) 2021-02-26 14:56:30 -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
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
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) 2021-01-20 16:01:24 -08:00
d12f67fc31 Fix ids_generator references from moving from api to sdk (#283) 2021-01-11 12:40:38 -08:00
e5a0153794 Add test case for DataDog fields and AWS SDK Extension (#231) 2020-12-11 12:48:01 -08:00
8b323e935d Add fields method (#226)
Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2020-12-01 16:18:33 -08:00
bcec49cf2e update version to 0.17.dev0 2020-11-25 21:10:39 -08:00
3e4c5d3aa3 [pre-release] Update changelogs, version [0.16b0] (#217) 2020-11-25 19:44:20 -08:00
87789cbb95 Use joins to create trace ids and headers 2020-11-09 17:03:40 -08:00
c0a3ea96d9 Expose AWS Progagator variables and update readme 2020-11-09 15:01:17 -08:00
26db369ec9 Use an exception to catch inability to parse 2020-11-09 14:51:32 -08:00
ccb7a83922 More pythonic propagator + package clean up 2020-11-09 14:51:32 -08:00
c81995d0ce Add SDK Extension for Compatibility with AWS X-Ray 2020-11-09 14:51:30 -08:00