Skip to content

Conversation

mstoykov
Copy link
Contributor

Changes in code done in grafana/k6#3335

@github-actions
Copy link
Contributor

There's a version of the docs published here:

https://mdr-ci.staging.k6.io/docs/refs/pull/1331/merge

It will be deleted automatically in 30 days.

Copy link
Collaborator

@heitortsergent heitortsergent left a comment

Choose a reason for hiding this comment

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

Left one comment for a change I think we should make. Also, is this change available right away, or is it part of 0.47?

## Metric name restrictions
Metric names must comply with OpenTelemetry and [Prometheus limitations](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
Metric names must comply with OpenTelemetry and [Prometheus limitations](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). The character limit is the same limit k6 had before restricting the character set down.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can remove this sentence. If someone is new to k6 and reads this, it doesn't really give them any meaningful information and can just make this more confusing. If they are already familiar with k6, they might also not remember the limit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is better if it stays - as it explains the reason for the specific limit.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's letting the reader know there were changes to the character limit, but it doesn't really give any details on why this has changed, unless we add more information. And I feel like that could quickly become irrelevant in the future...

Is this important for users if they're upgrading from previous versions to 0.47? If it is, we could also switch this to a <blockquote mod='attention'>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

know there were changes to the character limit

There no loonger is a change.

We currently limit to 128, we started giving warning for characters outside of what Otel and Promehtesu support and found out that Otel has a limit of 63, so we added that to the new warning as well.

Now we foud out the 63 limit for Otel is lifted. So the warning got 128 character as the limti - which is also the current error limit.

So in practice the 128 character limit isn't new it is very old, we just didn't end up adding a new one 63 character limti

@heitortsergent heitortsergent added this to the v0.47.0 milestone Sep 25, 2023
@codebien codebien mentioned this pull request Oct 2, 2023
25 tasks
@mstoykov mstoykov changed the base branch from main to release/v0.47.0 October 9, 2023 14:25
@mstoykov mstoykov merged commit 3f03446 into release/v0.47.0 Oct 10, 2023
@mstoykov mstoykov deleted the metricNamesRestrictionChanges branch October 10, 2023 08:24
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.

3 participants