Closed rewritten closed 2 years ago
There is a bit of misleading documentation in the telemetry section, where the [:broadway, :topology, :init] event is said to receive %{supervision: pid, config: keyword} as metadata.
[:broadway, :topology, :init]
%{supervision: pid, config: keyword}
A test at https://github.com/dashbitco/broadway/blob/v1.0.3/test/broadway_test.exs#L254 in fact asserts that the correct key is :supervisor_pid.
:supervisor_pid
Here is the fix to the documentation.
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
There is a bit of misleading documentation in the telemetry section, where the
[:broadway, :topology, :init]
event is said to receive%{supervision: pid, config: keyword}
as metadata.A test at https://github.com/dashbitco/broadway/blob/v1.0.3/test/broadway_test.exs#L254 in fact asserts that the correct key is
:supervisor_pid
.Here is the fix to the documentation.