Skip to content

Null object pattern TracerProvider + container classes #648

Description

@maxgolov

This is a follow-up to code review recommendation in this PR #519

Specifically to address this concern:

#519 (comment)

image

Proposed Solution

Extract all empty implementation ( or Null object pattern ) classes into a separate header. Main benefit is that devs can reuse that header later on to stub their instrumentation with an "empty" instrumentation. As well as in all places of code, where API needs to pass "empty" containers - we consolidate all of them in a single place, thus providing a better structure. It would also be logically consistent to have them all in one place, so that one can include just one header in order to instrument with Null instrumentation.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions