thanhlam

thanhlam

The error regarding to Opencensus Absinthe Plug. Traced_pipeline is undefined or private

I’m using the elixir version 1.15.8, erlang 25.3.2.12 and Phoenix.LiveDashboard.Router. Here is my router.ex

pipeline :member_graphql do
    plug(Plug.Telemetry, event_prefix: [:myapp, :member_graphql_http])
    plug(:default_parser)
    plug(:fetch_session)
    plug(:accepts, ["json"])
    plug(MyApp.Authenticator, except: ["/graphql", "/member/graphql"])
end
scope "/member/graphql" do
    pipe_through(:member_graphql)
    post("/", Absinthe.Plug,
      schema: MyApp.Schema,
      json_codec: Jason,
      pipeline: {Opencensus.Absinthe.Plug, :traced_pipeline}
    )
end`

I’m using the elixir version 1.15.8, erlang 25.3.2.12 and Phoenix.LiveDashboard.Router. Here is my router.ex

`pipeline :member_graphql do
    plug(Plug.Telemetry, event_prefix: [:myapp, :member_graphql_http])
    plug(:default_parser)
    plug(:fetch_session)
    plug(:accepts, ["json"])
    plug(MyApp.Authenticator, except: ["/graphql", "/member/graphql"])
end
scope "/member/graphql" do
    pipe_through(:member_graphql)
    post("/", Absinthe.Plug,
      schema: MyApp.Schema,
      json_codec: Jason,
      pipeline: {Opencensus.Absinthe.Plug, :traced_pipeline}
    )
end`

I got the error: Request: POST /member/graphql ** (exit) an exception was raised: ** (UndefinedFunctionError) function Opencensus.Absinthe.Plug.traced_pipeline/2 is undefined or private (opencensus_absinthe 0.2.0) Opencensus.Absinthe.Plug.traced_pipeline

When I use elixir 1.14.5. It works fine. But elixir v1.15.8, it’s failed. Could you please give me idea or suggestion to fix this error.

First Post!

dimitarvp

dimitarvp

This might be related to load path pruning introduced in 1.15. Check Elixir v1.15 released - The Elixir programming language, the “Compile and boot-time improvements” and see if the suggested config change helps you.

Where Next?

Popular in Questions Top

nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
shahryarjb
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
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
albydarned
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

Other popular topics Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43487 311
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement