Commit Graph

113 Commits

Author SHA1 Message Date
Yordis Prieto b12a464b5f
fix: setting oban attributes (#247)
* fix: passing custom oban attributes to span
2024-02-14 09:47:07 -07:00
Bryan Naegele 102b61349c
Update all library deps (#286)
* Update all library deps

* Add postgrex for oban test env
2024-02-13 22:24:49 -07:00
renovate[bot] 093c41c940
Update postgres Docker tag to v16.2 (#281)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 18:27:16 -07:00
Bryan Naegele 90d282fe39
Update publishing settings (#285) 2024-02-13 18:09:42 -07:00
renovate[bot] c5753b4f52
Update dependency opentelemetry_process_propagator to ~> 0.3 (#280)
* Update dependency opentelemetry_process_propagator to ~> 0.3

* Pin dataloader version

* Update opentelemetry to 1.3.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bryan Naegele <bryan@fourthtime.com>
2024-02-13 10:43:02 -07:00
Bryan Naegele 54c297f4ce
Update opentelemetry (#283) 2024-02-13 10:42:04 -07:00
renovate[bot] 360c1c7523
Update dependency finch to ~> 0.18 (#274)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 22:14:14 -07:00
github-actions[bot] eacf98ce88
Prep release v1.2.0 (#273)
Co-authored-by: bryannaegele <5731285+bryannaegele@users.noreply.github.com>
2024-02-06 10:24:12 -07:00
Bryan Naegele fa92669de9
Update CHANGELOG.md (#272) 2024-02-06 09:57:22 -07:00
renovate[bot] d22ce7ba8e
Update dependency opentelemetry_telemetry to ~> 1.1.0 (#271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 10:34:51 -07:00
Bryan Naegele 385ee4843a
Phoenix 1.2.0 release prep (#248) 2024-02-04 21:44:37 -07:00
github-actions[bot] 7cd0594785
Prep release v1.1.2 (#267)
Co-authored-by: bryannaegele <5731285+bryannaegele@users.noreply.github.com>
2024-02-04 18:51:12 -07:00
Bryan Naegele bf6adb78e8
Hex publishing workflow (#250)
* Add Hex publishing manual workflow
2024-02-04 17:18:14 -07:00
João Thallis 3a9ed422b6
Remove doc about function that is not being only a proxy (#253)
* Remove doc about function that is not being only a proxy

For `insert_all/2` it is creating a span: 8af382e26a/instrumentation/opentelemetry_oban/lib/opentelemetry_oban.ex (L107)

* Update instrumentation/opentelemetry_oban/README.md

---------

Co-authored-by: Bryan Naegele <bryannaegele@users.noreply.github.com>
2024-01-18 14:39:07 -07:00
renovate[bot] 8f6a466666
chore(deps): update dependency finch to ~> 0.17 (#252)
* chore(deps): update dependency finch to ~> 0.17

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bryan Naegele <bryannaegele@users.noreply.github.com>
2024-01-17 11:40:59 -07:00
renovate[bot] 45b66d5f50
chore(deps): update dependency ex_doc to v0.31.1 (#233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 11:27:19 -07:00
Bryan Naegele f34f95fff2
Update cowboy to opentelemetry_api 1.2 (#230)
* Update to opentelemetry_api 1.2

* Fix application deps
2024-01-17 11:11:09 -07:00
Bryan Naegele 18dfcadb07
Update to opentelemetry_api 1.2 (#231) 2024-01-17 11:07:04 -07:00
Bryan Naegele 8407ad98bd
Update to opentelemetry_api 1.2 (#232)
Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-12-01 13:48:32 -07:00
renovate[bot] e4fc50d5e5
chore(deps): update postgres docker tag to v16 (#242)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bryan Naegele <bryannaegele@users.noreply.github.com>
2023-11-15 11:14:43 -07:00
renovate[bot] 06278d7e9a
chore(deps): update postgres docker tag to v13.13 (#244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-15 11:00:46 -07:00
Bryan Naegele 1bf2f7f295
Req v0.2.0 (#243) 2023-11-10 17:03:08 -07:00
Bryan Naegele 5bf935bd3c
Don't package dataloader (#240) 2023-11-10 09:17:06 -07:00
Tristan Sloughter fa7ba30ca8
fix elli readme excluded_paths doc (#174) 2023-11-09 22:04:01 -07:00
renovate[bot] 473f27aea9
chore(deps): update postgres docker tag to v13.12 (#235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 21:37:36 -07:00
renovate[bot] f87d07990f
chore(deps): update dependency finch to ~> 0.16 (#234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 21:30:02 -07:00
Bryan Naegele 9fd5f14e2a
Update elixir-test-matrix.json (#228)
* Update elixir-test-matrix.json

* Update erlang-test-matrix.json
2023-11-09 19:56:35 -07:00
Derek Kraan 5caf10ae82
Add tests to cover new liveview integration (#221) 2023-11-09 18:20:07 -07:00
rlopzc 66326e7f42
Update Oban's README.md (#222)
The published version is 1.0.0

https://hex.pm/packages/opentelemetry_oban
2023-11-09 16:53:32 -07:00
Bryan Naegele 5be23037ce
Update Req deps (#216) 2023-11-04 12:34:53 -06:00
Wojtek Mach e1f4a02d5e
opentelemetry_req: Don't assume `request.headers` shape (#193)
* opentelemetry_req: Don't assume `request.headers` shape

* Update instrumentation/opentelemetry_req/test/opentelemetry_req_test.exs

---------

Co-authored-by: Bryan Naegele <bryannaegele@users.noreply.github.com>
2023-10-16 14:40:01 -06:00
Bryan Naegele 24e823cd23
Revert span name change to pre-1.18 spec (#214) 2023-10-16 14:16:40 -06:00
Bryan Naegele 318c68d63d
Tesla 2.3.0 (#213) 2023-10-16 13:30:40 -06:00
Artem Solomatin 4250e0b99f
Fixup doc version and typo (#211) 2023-10-03 07:39:45 -06:00
Tom Taylor 8068002c17
Include `db.system` attribute in `opentelemetry_ecto` (#187)
* Run mix format

* Upgrade dependencies to build on OTP 26

* Add db.system attribute

* Add support for mssql and fallback to other_sql

* Fallback to not including db_system if adapter is unrecognised

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-09-23 05:56:42 -06:00
Tom Taylor 17d31cc594
Improve test matrix and add support for Elixir 1.15 and OTP 26 (#188)
* Use test matrix from file

* Only check formatting on specific Elixir version

* Use latest patch version of each Elixir/OTP release in test matrix

* Test on Elixir 1.15 and OTP 26

* Run formatter on opentelemetry_httpoison

* Run formatter on opentelemetry_phoenix

* Run formatter on opentelemetry_tesla

* Fix building opentelemetry_ecto on Elixir 1.15

Upgraded deps to fix ssl_verify_fun not compiling

* Fix building opentelemetry_dataloader on Elixir 1.15

Upgraded deps to fix ssl_verify_fun and ecto_sql not compiling

* Upgrade opentelemetry_finch to build on Elixir 1.15

* Upgrade opentelemetry_httpoison deps to build on 1.15

* Upgrade opentelemetry_nebulex to build on Elixir 1.15

* Upgrade opentelemetry_oban to build on Elixir 1.15

* Upgrade opentelemetry_phoenix deps to build on 1.15

* Upgrade opentelemetry_redix deps to build on 1.15

* Fix warning about <> being ambiguous

* Fix assertion on attributes keys

These are always atoms, not strings.

* Upgrade ssl_verify_fun in opentelemetry_telemetry

* Deterministically sort keys before asserting in tests

* Upgrade opentelemetry_process_propogator to build on Elixir 1.15

* Run mix format on opentelemetry_process_propogator

* Assert keys are atoms, not strings

* Use matrix.os to define runs-on parameter

* Pin test matrix to specific OTP + Elixir versions

* Run formatter on telemetry and process_propagator

* Run formatter over opentelemetry_phoenix

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-08-25 14:11:23 -06:00
Derek Kraan 79aae558fe
Add the ability to trace Liveviews to the Phoenix instrumentation (#198) 2023-08-23 05:35:31 -06:00
Bryan Naegele 0b6ccafab5
Relax Req's elixir version (#196)
Failing on the test matrix update PR.
2023-08-22 10:13:32 -06:00
Wojtek Mach 5380a94bc9
opentelemetry_req: Don't assume `request.options` is a map (#192) 2023-08-18 16:29:00 -06:00
Tom Taylor cd2a6cca91
Redis: propagate the span context if available (#180)
Behave in a similar way to Ecto, which is to attach the context of the
connection, falling back to the calling process context if available.

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-07-13 17:15:26 -06:00
Derek Kraan 7119c4bd42
Record an exception as an error only when Plug.Exception.status/1 (#165)
returns 500..599.

It is encouraged in the Phoenix docs to use `Plug.Exception` with
custom exceptions to generate for example 404 responses at certain
places. These 404s should not be marked as error, since simple "route
not found" 404s are also not marked as error.

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-07-06 13:44:16 -06:00
Tristan Sloughter 4dfda22cef
bump opentelemetry_phoenix to 1.1.1 (#181) 2023-06-20 08:39:50 -06:00
Josh Lee b85420afed
Don't record DB statements without sanitizaiton (#166)
* Don't record DB statements without sanitizaiton

This adds an option to OpentelemetryEcto.setup/1 that allows a query
sanitization function to be provided. If it is not provided, queries
are not captured (this is the default).

* test that db.statement isnt present unless query sanitizer is configured

* rename option to `:db_statement`

* run mix format
2023-06-13 05:13:01 -06:00
Cristiano Piemontese 12532e5ff5
Post-PR opentelemetry_httpoison fixup (#178)
* Update opentelemetry_httpoison CODEOWNERS

Add Shared Services team as a CODEOWNER for opentelemetry_httpoison

* add CHANGELOG & fix license
2023-06-05 19:26:31 -06:00
Cristiano Piemontese 0cc8c760d0
Add telepoison (#148)
* add telepoison

* rename

* rename file too, duh

* rename test file

* port updates

* add standard workflow
2023-06-04 08:23:03 -06:00
Guilherme de Maio 901b571b07
[opentelemetry_tesla] Conditionally override propagator (#176)
* Optionally disable trace propagation for Tesla

While we always want spans being produced, trace progation is not
desirable in all cases - namely, when calling external parties, as that
may leak sensitive information, like one present on Baggage.

This patch introduces a new option `:propagate`, that defaults to
`true`.

Some tweaks are made to existing propagation test, fixing how options
are used. The approach here is closer to what we see in some middleware
tests of Tesla itself.

* change to propagator override

* change propagator to it uses global default

* mix format

* improve docs

---------

Co-authored-by: Andrew Rosa <dev@andrewhr.io>
2023-05-29 04:53:21 -06:00
Cedric Ziel 6a5fc4c884
Bump version to 1.1.1 (#175) 2023-05-23 05:04:01 -06:00
Cedric Ziel 8292870b66
Add db.name to ecto spans (#172)
* Add db.name to ecto spans

As per the spec, the db.name attribute is required on database spans. This changes adds it.

Ref: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md#call-level-attributes

* Add db.name attribute to tests

* Changelog update

* Update instrumentation/opentelemetry_ecto/test/opentelemetry_ecto_test.exs

* Update instrumentation/opentelemetry_ecto/test/opentelemetry_ecto_test.exs
2023-05-23 04:49:29 -06:00
Patrik Stenmark ddf0706bf1
Make exdocs settings a bit more similar between different packages (#168)
* Add source_url_pattern to be able to use the "link to source" button
* Add README.md as an "extra" where it wasn't already
* Add a `main` setting. They all have a very obvious main module. Set
  that as `main`, so a user is shown this immediately instead of a list
  of usually only this module.
2023-04-30 12:10:03 -06:00
Andrey Chernykh 1230271580
[Tesla middleware] `non_error_statuses` option (#154)
* [Tesla middleware] `non_error_statuses` option

* :mark_status_ok option instead of :non_error_statuses

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-04-21 10:07:21 -06:00