Namit
OpenTelemetry in Phoenix - Not Getting HTTP Attributes in Spans
I am trying to implement OpenTelemetry in my Phoenix app and am following this Getting Started Guide
I followed all the steps mentioned, and when I try to log spans in the console (as shown here: Try it out), I only see Ecto-related attributes in the span. However, I do not see any HTTP attributes (such as method, URL, or status code).
Here’s an example of the span I’m getting:
{span,199985616168702119339811124307741799904,15622809613813534696,
{tracestate,[]},
undefined,<<"kayaan_prints.repo.query:users">>,client,-5764607449421824,
-5764607449372672,
{attributes,128,infinity,0,
#{source => <<"users">>,
'db.instance' => <<"kayaan_prints_dev">>,
'db.name' => <<"kayaan_prints_dev">>, 'db.type' => sql,
'db.url' => <<"ecto://localhost">>,
'db.system' => postgresql, total_time_microseconds => 4812,
decode_time_microseconds => 0,
idle_time_microseconds => 980275,
query_time_microseconds => 2048,
queue_time_microseconds => 2764}},
{events,128,128,infinity,0,[]},
{links,128,128,infinity,0,[]},
undefined,1,false,
{instrumentation_scope,<<"opentelemetry_ecto">>,<<"1.2.0">>,undefined}}
It seems like opentelemetry_ecto is working fine, but I am not getting any HTTP-related telemetry data.
Does anyone know what could be causing this? Do I need to add an additional instrumentation library for HTTP spans in Phoenix? Any help would be appreciated!
Popular in Questions
can someone please explain to me how Enum.reduce works with maps
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
Student & New to elixir. Nice language.
I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
Hello,
I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these
buyer = %{
id: ...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size?
Thanks
New
Other popular topics
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set?
Thanks.
New
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New







