Skip to content

Conversation

@SaundersR1999
Copy link
Collaborator

No description provided.

Comment on lines +505 to +506
IPv4: bool = True,
IPv6: bool = True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these here instead of in attributes? Seems like you should set these in ResourceAttributes. Not in initialize_telemetry.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put them there to go along with collect_IP, but putting them in ResourceAttributes is probably cleaner considering that in most cases both of these values would be untouched

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus, doesn't the attr class actually do the retrieval work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically no, it's a function defined in the attributes class but its called by initialize_telemetry. I will think about this though. I might be able to evaluate IP data before telemetry even gets initialized which would solve the blocking problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants