Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Comments

Enhance payload parsing to support spaces in labels and string values.#491

Merged
manugarg merged 1 commit intomasterfrom
63729A23134379909BFCA3AC3C378B48
Oct 14, 2020
Merged

Enhance payload parsing to support spaces in labels and string values.#491
manugarg merged 1 commit intomasterfrom
63729A23134379909BFCA3AC3C378B48

Conversation

@manugarg
Copy link
Contributor

For example, we'll be able to parse the following string:
version{service="service A",dc="xx"} "version 1.5.0"

= Instead of splitting by spaces, parse the string from the beginning. Use opening and closing braces("{", "}") to find labels in the string.
= Metric names cannot have spaces. Consider everything before the first space to be a metric name.

PiperOrigin-RevId: 336970245

For example, we'll be able to parse the following string:
version{service="service A",dc="xx"} "version 1.5.0"

= Instead of splitting by spaces, parse the string from the beginning. Use opening and closing braces("{", "}") to find labels in the string.
= Metric names cannot have spaces. Consider everything before the first space to be a metric name.

PiperOrigin-RevId: 336970245
@manugarg manugarg merged commit b7a3767 into master Oct 14, 2020
@manugarg manugarg deleted the 63729A23134379909BFCA3AC3C378B48 branch October 14, 2020 01:04
@manugarg manugarg added this to the v0.11.1 milestone Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant