Commit Graph

44 Commits

Author SHA1 Message Date
Riccardo Magliocchetti 93e6fcfa26
botocore: add basic tracing for Bedrock InvokeModelWithStreamResponse (#3206)
* Add basic tracing for InvokeModelWithResponseStream

* Add changelog and please pylint
2025-01-28 09:55:28 +01:00
Riccardo Magliocchetti 0bb1c42a78
botocore: add basic tracing for bedrock ConverseStream (#3204)
* Add tracing for ConverseStream

* Add converse stream example
2025-01-27 10:01:07 +01:00
Riccardo Magliocchetti 2756c1edff
botocore: add basic handling for bedrock invoke.model (#3200)
* Add basic handling for invoke.model

* Add changelog a please pylint

* Record converse cassettes against us-east-1

* Avoid double copy of streaming body

---------

Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
2025-01-23 17:14:49 +01:00
Riccardo Magliocchetti 9460773e5c
Basic instrumentation for Bedrock runtime Converse api (#3161)
* botocore: add extension for bedrock runtime api

* Add tests and handle only non streaming responses

* Make it explicit we are handling only the converse operation

* Simplify test since all models behaves the same

* Add test for error case and rework things a bit

* Add converse example

* Generate workflows

* Add changelog
2025-01-20 09:56:09 +01:00
Diego Amaral eb03dac1f0
NoOpTracerProvider test case for botocore instrumentation (#3091)
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-12-11 13:35:50 +00:00
Riccardo Magliocchetti 361da3e45e
botocore: bump moto to latest (#2605)
So we can bump Werkzeug too.
2024-06-13 16:56:04 -06:00
Riccardo Magliocchetti c1a51fde96
Pre Python 3.12 enablement fixes (#2529) 2024-05-24 10:57:29 -07:00
Adrian Garcia Badaracco 9563ee73ac
Clean up use of suppress_instrumentation in context and fix httpx bug (#2061)
* Clean up use of suppress_instrumentation in context and fix httpx bug

* Clean up use of suppress_instrumentation in context and fix httpx bug

* changelog

* fix tests

* fix import

* fmt

* update dep

* lint

* remove unused imports

* apply lint

* Fix version for pika

* Fix lint

---------
2023-12-22 22:43:12 +00:00
Srikanth Chekuri 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
Margaret Yu 657d502419
Specify the topic arn as the span attribute messaging.destination.name in the botocore sns instrumentation (#1995) 2023-11-01 15:54:26 -06:00
Tristan Sloughter 42e8f8f6e2
botocore: always use x-ray for http header injection (#1741)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-05-22 18:02:05 +00:00
Mario Jonke 2179fb976f
botocore: Add support for SNS publish and publish_batch (#1409) 2022-11-24 16:44:12 +05:30
saartochner e0f72095c5
feat: collecting messaging.* span attributes in botocore instrumentation (#1350) 2022-11-13 17:32:57 +00:00
Carol Abadeer 6503cdf2fe
Fix HTTP instrumentation not being suppressed (#1116) 2022-06-20 13:16:51 -07:00
Leighton Chen 23394ccd80
Unblock builds by removing botocore test (#851) 2022-01-11 10:24:18 -08:00
Mario Jonke 055a50c798
botocore: Add Lambda extension (#760)
* botocore: Add Lambda extension

* add extension to add additional attributes for lambda invoke
  calls
* move lambda specific tests to separate module

* changelog

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-11-11 13:01:16 +00:00
Owais Lone 3137c1fa41
Upgrade black (#802) 2021-11-10 20:57:01 +00:00
Michael Manganiello 07c52aad38
Refactor code using pyupgrade for Python 3.6 (#770)
* Refactor code using pyupgrade for Python 3.6

This diff is the result of applying the following command to the
project:

```shell
find . -type f -name "*.py" -exec pyupgrade --py36-plus '{}' +
```

* Simplify yield from
2021-10-24 07:04:06 +05:30
(Eliseo) Nathaniel Ruiz Nowell f13b339a91
Check Request ID format on S3 call (#750) 2021-10-19 07:18:58 +00:00
Mario Jonke 3058281f5e
botocore: Add DynamoDB extension (#735)
* botocore: Add dynamodb extension

* extract addtional DynamoDB specific attributes according to the spec
* move DynamoDB tests to separate test module

* changelog

* add license info

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-10-18 11:53:06 +02:00
Mario Jonke 196037125f
botocore: Make common span attributes compliant with semconv in spec (#674) 2021-10-06 09:47:50 -07:00
ItayGibel-heliosphere 7bc8f6cf5e
botocore hooks (#679)
* botocore hooks

* a single hook for all aws services

* fix test

* rename get_item_attributes variable to put_item_attributes

* rename tests

* delete redundant line
2021-09-30 15:03:37 +02:00
Mario Jonke 3e9adfddb0
botocore: Fix span inject for lambda invoke (#663)
* Botocore: Fix span inject for lambda invoke

* for lambda invoke span injection happend to early which resulted in the botocore
  span being injected instead of the actual botocore span

* changelog

Co-authored-by: alrex <aboten@lightstep.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2021-09-09 16:35:48 +02:00
Mario Jonke fd5fc9a101
botocore: Fix uninstrument to also unpatch header injection on Endpoint (#664) 2021-09-08 09:33:41 -07:00
Owais Lone 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
Owais Lone ffc2a2ff4c
More consistent assertion methods (#641)
* More consistent assertion methods

* Updated core SHA
2021-08-30 22:46:18 +02:00
Eunice Kim 4be32b542b
Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
Jakub Wach c8ec25a3ba
implements context propagation for lambda invoke + tests (#458) 2021-05-14 09:23:52 -07:00
Srikanth Chekuri 8d0c150b31
Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
alrex 9315eb0fb2
use StatusCode from trace instead of trace.status (#366) 2021-03-09 14:33:13 -08:00
Owais Lone f436514554
Replaced Tracer.use_span() with opentelemetry.trace.use_span() (#364) 2021-03-08 09:33:49 -08:00
Diego Hurtado 269e0f4de3
Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
alrex 0fe9096bfc
Update span interface usage (#324) 2021-02-09 12:31:03 -08:00
Thomas Desrosiers 21a5c164fa
Adds back retry_attempts to botocore (#275) 2021-01-05 17:27:18 -08:00
(Eliseo) Nathaniel Ruiz Nowell fd493f446f
Fixes and Improvements to botocore instrumentation (#150) 2020-11-18 12:39:15 -08:00
Nathaniel Ruiz Nowell 5c14227a5e Botocore checks if instrumentation is suppressed 2020-11-13 09:21:57 -08:00
Nathaniel Ruiz Nowell 8ee114b6f5 Update changelogs + fix lint 2020-11-12 16:06:42 -08:00
Nathaniel Ruiz Nowell 58f77f5d7e Add propagator injection for botocore 2020-11-12 14:29:24 -08:00
Leighton Chen 10507b05fc Use is_recording flag in aiopg, asyncpg, dbapi, psycopg2, pymemcache, pymongo, redis, sqlalchemy instrumentations (#1212) 2020-10-21 21:39:43 -07:00
Leighton Chen 5d4a5b5f92 Use is_recording flag in flask, django, tornado, boto, botocore instrumentations (#1164) 2020-10-21 21:39:43 -07:00
alrex 9cee1c5fef instrumentation/botocore: fix failing test (#1100)
The failing test was introduced I believe by a change in behaviour noted in this issue: https://github.com/spulec/moto/issues/3292. The solution is to set a region in the create_bucket call.

Fixes #1088
2020-10-21 21:39:43 -07:00
Leighton Chen 5cdb6263b2 Comment out botocore test (#1089) 2020-10-21 21:39:43 -07:00
alrex d8f6664625 sdk: rename resource labels to attributes (#1082)
This aligns with the specification for Resources
2020-10-21 21:39:43 -07:00
Leighton Chen de0df0f9d9 Rename remaining framework packages from "ext" to "instrumentation" (#969) 2020-10-21 21:39:43 -07:00