Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings generated on elixir 1.16 #78

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

lukaszsamson
Copy link
Contributor

@lukaszsamson lukaszsamson commented Nov 23, 2023

Each view generates warnings like this

[Warn  - 20:02:23]     warning: parentheses are required for function calls with no arguments, got: @tracer.current_span
    │
  1 │ defmodule My.Web.ErrorView do
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ lib/my/views/error_view.ex:1

As explained in elixir-lang/elixir#13091 (comment) this needs to be fixed in each library

@unflxw
Copy link
Contributor

unflxw commented Nov 23, 2023

Thanks for the report @lukaszsamson! We'll look into addressing this shortly.

To do

  • Update the integrations:
    • Elixir
    • Phoenix
    • Plug
  • Check the docs for any code snippets that need updating
  • Add a changeset

@tombruijn tombruijn added the bug Something isn't working label Nov 27, 2023
Each view generates warnings like this
```
[Warn  - 20:02:23]     warning: parentheses are required for function calls with no arguments, got: @tracer.current_span
    │
  1 │ defmodule My.Web.ErrorView do
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ lib/my/views/error_view.ex:1
```

Call `@tracer.current_span()` instead so the warning goes away.
@luismiramirez luismiramirez merged commit 0adf4a8 into appsignal:main Nov 27, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants