Fixed NullpointerException when no fields are set on processors.#305
Fixed NullpointerException when no fields are set on processors.#305jgogstad wants to merge 1 commit into
Conversation
…d bug where processor would be added multiple times when several fields are set.
|
Hi @jgogstad, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
@jgogstad, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
|
@jgogstad, thanks for your valuable input. We will not use this PR since we have an ongoing background effort to refactor the TC Factory, I already started doing that for the TelemetryProcessor, I will use your input for the PR I am going to submit soon Thanks! |
|
Brilliant! We'll use a fork until it's ready. Looking forward to see the result. Closing this. |
The current implementation of
TelemetryConfigurationFactorythrows NullPointerException whenever it encounters processors that are not configured with any attributes, e.g.There's also a bug where the same processor instance is added multiple times. This occurs when multiple fields are set on a processor.
This PR fixes both (and includes PR #304 ).