andym
Open telemetry using aws x-ray
i’m trying to use open telemetry to send messages to aws x-ray from my elixir livewiew project. from an aws point of view i need to use aws distro, however what i’m not sure of is which libraries to use from the elixir side. i came across the following article Elixir, OpenTelemetry, and the Infamous N+1 · The Phoenix Files and from what i understand the flow of data is as follows
code -> collector (collects and exports) -> AWS Distro -> AWS X-Ray
Is this understanding correct, if its correct also how do i configure the collector to export the data to AWS Distro ?
also based on the articles mentioned above i need to use the following libraries
{:opentelemetry_exporter, "~> 1.0"},
{:opentelemetry, "~> 1.0"},
{:opentelemetry_api, "~> 1.0"},
{:opentelemetry_ecto, "~> 1.0"},
{:opentelemetry_liveview, "~> 1.0.0-rc.4"},
{:opentelemetry_phoenix, "~> 1.0"},
{:opentelemetry_cowboy, "~> 0.2"}
if the libraries are the correct ones its fine (i can upgraded to the latest version) or are there a different set of libraries i should be using ?
First Post!
Raees678
From my understanding your diagram is partially correct. You can send traces to a collector, which can forward to AWS Distro (or any number of other collectors). However AWS Distro is a collector as well, so you can forward directly to it from your application bypassing any other collectors in between if you don’t need them .
Those libraries do seem correct though. This ElixirConf talk: https://www.youtube.com/watch?v=4OBtc_eIKIE shows a working demo of forwarding to an otel-collector. He uses Grafana Tempo instead of AWS Distro, but technically it should be possible to switch out one otel-colelctor from another, since they are all using the same protocol to collect distributed traces.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








