Skip to content

Add notes about MetricExporter naming#2286

Merged
tigrannajaryan merged 5 commits intoopen-telemetry:mainfrom
legendecas:metric-exporter
Feb 15, 2022
Merged

Add notes about MetricExporter naming#2286
tigrannajaryan merged 5 commits intoopen-telemetry:mainfrom
legendecas:metric-exporter

Conversation

@legendecas
Copy link
Copy Markdown
Member

@legendecas legendecas commented Jan 24, 2022

Changes

If the implementors choose to implement pull metric exporters modeled as a metric reader, the only variant for metric exporter interface is push metric exporter. While the pull metric exporter is modeled as a "metric reader", the better naming for the genric "metric exporter" interface may be "push metric exporter".

Just open this PR to see if there are similar naming confusions with other SDK implementors. If so, I'd believe the metric exporter and metric reader section need a re-structure in a follow-up PR since how the pull metric exporter is modeled is important to the naming of the metric exporter interface.

Related:

Copy link
Copy Markdown
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM.

@reyang reyang added area:sdk Related to the SDK spec:metrics Related to the specification/metrics directory labels Jan 26, 2022
@legendecas legendecas marked this pull request as ready for review January 26, 2022 06:13
@legendecas legendecas requested review from a team January 26, 2022 06:13
Copy link
Copy Markdown
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

Agree that MetricReader/PushMetricExporter are acceptable choices

@legendecas
Copy link
Copy Markdown
Member Author

@bogdandrutu 👋 friendly pinging assignee. we have 6 approvals, would you mind landing this one? thank you!

@tigrannajaryan
Copy link
Copy Markdown
Member

Enough approvals, more than 2 days since last comment/change. Merging.

@tigrannajaryan tigrannajaryan merged commit 4e4d3b2 into open-telemetry:main Feb 15, 2022
@legendecas legendecas deleted the metric-exporter branch February 15, 2022 16:37
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
If the implementors choose to implement pull metric exporters modeled as a metric reader, the only variant for metric exporter interface is push metric exporter. While the pull metric exporter is modeled as a "metric reader", the better naming for the genric "metric exporter" interface may be "push metric exporter".

Just open this PR to see if there are similar naming confusions with other SDK implementors. If so, I'd believe the metric exporter and metric reader section need a re-structure in a follow-up PR since how the pull metric exporter is modeled is important to the naming of the metric exporter interface.

Related:
- open-telemetry/opentelemetry-js#2707
- open-telemetry/opentelemetry-js#2589 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:sdk Related to the SDK spec:metrics Related to the specification/metrics directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants