Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Unknown type: :opencensus.span_kind/0. #152

Open
garthk opened this issue May 16, 2019 · 2 comments
Open

Unknown type: :opencensus.span_kind/0. #152

garthk opened this issue May 16, 2019 · 2 comments

Comments

@garthk
Copy link

garthk commented May 16, 2019

span_kind isn't in the export_type in opencensus.erl, causing dialyzer heartache when I use Record.extract/2 to pull out :kind.

@garthk
Copy link
Author

garthk commented May 16, 2019

Workaround in mix.exs:

  def project do
    [
      # ...
      dialyzer: dialyzer(),
      # ...
    ]
  end

  defp dialyzer() do
    [
      # 'mix dialyzer --format dialyzer' to get lines you can paste into:
      ignore_warnings: "dialyzer.ignore-warnings",
      list_unused_filters: true
    ]
  end

… then in dialyzer.ignore-warnings:

:0: Unknown type opencensus:span_kind/0

@garthk
Copy link
Author

garthk commented May 16, 2019

While you're at it, erlang:stack_item doesn't seem to be a thing:

:0: Unknown type erlang:stack_item/0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant