Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: @opentelemetry/metrics fails to run due to bad import #881

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

mayurkale22
Copy link
Member

Which problem is this PR solving?

@@ -28,7 +28,7 @@ import {
import { LabelSet } from './LabelSet';
import { Batcher, UngroupedBatcher } from './export/Batcher';
import { PushController } from './export/Controller';
import { NoopExporter } from '../test/mocks/Exporter';
import { NoopExporter } from './export/NoopExporter';
Copy link
Member Author

Choose a reason for hiding this comment

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

Another option is to use ConsoleMetricExporter as a default metric exporter.

Copy link
Member Author

Choose a reason for hiding this comment

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

or InMemoryMetricExporter similar to InMemorySpanExporter.

Copy link
Member

Choose a reason for hiding this comment

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

I think no-op is better. We can create a more fancy version of no-op if a need arises later.

@@ -28,7 +28,7 @@ import {
import { LabelSet } from './LabelSet';
import { Batcher, UngroupedBatcher } from './export/Batcher';
import { PushController } from './export/Controller';
import { NoopExporter } from '../test/mocks/Exporter';
import { NoopExporter } from './export/NoopExporter';
Copy link
Member

Choose a reason for hiding this comment

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

I think no-op is better. We can create a more fancy version of no-op if a need arises later.

@dyladan dyladan added the bug Something isn't working label Mar 19, 2020
@dyladan dyladan merged commit c812917 into open-telemetry:master Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@opentelemetry/metrics fails to run due to bad import
2 participants