26 Commits

Author SHA1 Message Date
7eead8f1ae opentelemetry-sdk-extension-aws: make ec2 resource detector silent when loaded outside AWS (#3120)
* opentelemetry-sdk-extension-aws: make ec2 resource detector silent when loaded outside AWS

Assume that if we fail to get the token quickly we are not on AWS.
2024-12-23 09:43:09 +00:00
770003dd17 opentelemetry-sdk-extension-aws: make ecs and beanstalk resource detector silent when loaded outside AWS (#3076)
* opentelemetry-sdk-extension-aws: make ecs detector less chatty

Don't print warnings if we are not running inside an ecs instance so we can load the
resource detector more generally and avoid warnings in stderr.

* opentelemetry-sdk-extension-aws: make beanstalk detector less chatty

Don't print warnings if we are not running inside beanstalk so we can load the
resource detector more generally and avoid warnings in stderr.

* Add changelog
2024-12-16 10:28:18 +00:00
38f0e33641 opentelemetry-sdk-extension-aws: make eks detector less chatty (#3074)
* opentelemetry-sdk-extension-aws: make eks detector less chatty

Don't print warnings if we are not running inside an eks instance so we can load the
resource detector more generally and avoid warnings in stderr.

* Update CHANGELOG

---------

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-12-13 15:39:07 +00:00
5ff46ac9d1 Move benchmarks outside of tests directory (#2670)
Fixes #2669
2024-07-09 17:17:00 -06:00
a9247774c4 Point pylint to the package root directories (#2658)
* Point pylint to the root directories

Fixes #2657

* Use cd with instrumentations

* Do the same for the rest of the components

* Specify pylint configuration file

* Fix tox lint for sio-pika

* Fix commands for util-http and azure detector

* Fix lint for sdk-extension-aws

* Fix lint for opentelemetry-instrumentation

* Fix lint for grpc instrumentation

* Fix lint for opentelemetry-instrumentation
2024-07-03 16:22:00 -06:00
5888d4ef95 Enable lint on CI and update deps (#2067)
* Fix black an isort

* change bootstrap_gen to use a list instead of dict

* Bunch of updates

* Fix build

* fix lint

* Fix docs

* Fix lint

* More fixes

* Fix lint

* fix stupid mistake

---------

Co-authored-by: Christian Hartung <christian.hartung@olist.com>
2023-11-21 10:25:11 +02:00
bf9a8e87a0 Implement aws.ecs.* resource attributes (#1212) 2023-01-11 21:35:02 +00:00
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00: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
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
1157eb294d Add AWS resource detectors to extension package (#586) 2021-07-23 15:57:23 -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
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
b3aa7a79d3 Update TraceState (#276) 2021-01-20 12:13:12 -08:00
e5a0153794 Add test case for DataDog fields and AWS SDK Extension (#231) 2020-12-11 12:48:01 -08:00
91bfc9afe5 Add performance tests to AWS SDK Extension (#243) 2020-12-11 11:22:17 -08:00
70b425a588 Add test to validate propagator fields method (#228) 2020-12-03 16:53:06 -08:00
c0a3ea96d9 Expose AWS Progagator variables and update readme 2020-11-09 15:01:17 -08:00
ea0988a26a Make AWS Propagator tests more readable 2020-11-09 14:51:32 -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