shahryarjb

shahryarjb

I it very cool thank you for the lib.

I have global question, is there any security consideration to use lib for tracking the log especially any malicious command or XSS for example?
Thank you

1
Post #11
odarriba

odarriba

For now that’s outside the scope, as the schemas used are thought to store Elixir/Erlang exceptions, and some features may not work as expected with JS exceptions. It is not impossible but not on the roadmap as for now.

As long as they are Elixir/Erlang applications and have the library installed, they can technically share the same database, at least in it’s current state. It may not be the recommended setup as you are going to see errors from other applications, but it can be done.

That’s definitively on the roadmap and will be released in a new version soon.

The library uses Phoenix and Ecto, and we are not using unescaped values anywhere, so the only thing to take care about is to put some protections on the UI to avoid anonymous people accessing it.

5
Post #12
juliolinarez

juliolinarez

Awesome :star_struck::star_struck::star_struck:

2
Post #13
stocks29

stocks29

This looks amazing! :clap:

Any plans to integrate alarms with warmup/cool down? Performance tracking?

2
Post #14
arbaaz

arbaaz

Awesome. I was looking for something like this.

3
Post #15
victorbjorklund

victorbjorklund

Perfect. Just what I been wanting for simple projects. Any way to “hook” into it to create notifications/alerts (if you dont plan to include that too)?

4
Post #16
stevegrossi

stevegrossi

This looks great, though I’m having trouble deploying it to a Fly.io app. I’ve followed the Getting Started guide, but the ErrorTracker.Web dashboard is crashing because it seemingly can’t find ErrorTracker’s assets:

[info]Server: decodr.me:80 (http)
[info]Request: GET /dashboard/errors
[info]** (exit) an exception was raised:
[info]    ** (File.Error) could not read file "/app/_build/prod/lib/error_tracker/priv/static/app.css": no such file or directory
[info]        (elixir 1.15.3) lib/file.ex:358: File.read!/1
[info]        (error_tracker 0.1.1) lib/error_tracker/web/components/layouts/root.html.heex:14: anonymous fn/2 in ErrorTracker.Web.Layouts.root/1
[info]        (phoenix_live_view 0.20.2) lib/phoenix_live_view/engine.ex:150: Phoenix.HTML.Safe.Phoenix.LiveView.Rendered.to_iodata/1
[info]        (phoenix 1.7.14) lib/phoenix/controller.ex:1008: anonymous fn/5 in Phoenix.Controller.template_render_to_iodata/4
[info]        (telemetry 1.2.1) /app/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
[info]        (phoenix 1.7.14) lib/phoenix/controller.ex:974: Phoenix.Controller.render_and_send/4
[info]        (phoenix 1.7.14) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
[info]        (decodr 0.1.0) lib/decodr_web/endpoint.ex:1: DecodrWeb.Endpoint.plug_builder_call/2

My app’s own app.css compiles fine with Tailwind on deploy. Is there another step necessary to get ErrorTracker’s assets to compile?

2
Post #17
belaustegui

belaustegui OP

Not yet, but is definitely on our plans to make such integrations possible.

Ouch :see_no_evil: Would you mind opening an issue? Are you using releases or runnnig directly with mix?

3
Post #18
wireless

wireless

Also having this issue. I’m using the standard phoenix generated Dockerfile.
Useful snippets:

RUN cd assets && npm install 

COPY package.json package.json
RUN npm install

# compile assets
RUN mix assets.deploy

# Compile the release
RUN mix compile

# Changes to config/runtime.exs don't require recompiling the code
COPY config/runtime.exs config/

COPY rel rel
RUN mix release


# Only copy the final release from the build stage
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/app_name ./

USER nobody

# If using an environment that doesn't automatically reap zombie processes, it is
# advised to add an init process such as tini via `apt-get install`
# above and adding an entrypoint. See https://github.com/krallin/tini for details
# ENTRYPOINT ["/tini", "--"]

CMD ["/app/bin/server"]

I’ll open an issue as well - have to say this project looks great.

0
Post #19
ghannam80

ghannam80

I just installed it in one of the application and this project is very promising .

Testing the UI a quick feature came to my mind to have some integration with the service management tool used for error/bugs tracking such as github to follow related SDLC processes for bug fixing

0
Post #20