Skip to content

Calling options/1 before shared state finished initializingΒ #61

@grzuy

Description

@grzuy

Hi @g-andrade πŸ‘‹

Thank you for this library!

Been troubleshooting an issue in opentelemetry_exporter package (open-telemetry/opentelemetry-erlang#419 (comment)) which uses tls_certificate_check.

It seems that the init flow in opentelemetry_exporter ends up calling "too quickly" tls_certificate_check:options, before, apparently, tls_certificate_check finished processing the asynchronous cast message that initializes the shared state.

Have you faced this situation before?
Is this the case?
Am I missing something?

Would you be open to some improvement pull request to have some optional synchronization or assurance so that as a user it is possible to know that a call to options will not fail?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions