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

use LabelValues<string> instead labelValues #1141

Closed
wants to merge 1 commit into from

Conversation

shivkanya9146
Copy link
Contributor

Which problem is this PR solving?

-change labelValues to LabelValues.

Short description of the changes

-use LabelValues instead labelValues

@@ -160,7 +160,7 @@ export class PrometheusExporter implements MetricExporter {
}

private _getLabelValues(keys: string[], labels: api.Labels) {
const labelValues: labelValues = {};
LabelValues<string> = {};
Copy link
Member

Choose a reason for hiding this comment

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

This overwrites the variable from prom-client which I'm sure is not what was intended. Did you mean to do this?

Suggested change
LabelValues<string> = {};
const labelValues: LabelValues<string> = {};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was by mistake, i wanted to add commit to other PR.

@shivkanya9146 shivkanya9146 deleted the change branch June 3, 2020 20:28
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
…try#1141)

* fix(compile-examples): fixed compile examples error

* fix(compile-examples): align all typescipt versions to 4.3.5

* fix(compile-examples): align all typescipt versions to 4.3.5

* fix(compile-examples): moved @types/mongodb to a dev dependency
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.

2 participants