Skip to content

refactor: Move metric namespace validation to dogstatsd util#921

Merged
litianningdatadog merged 1 commit into
mainfrom
tianning.li/SLES-2547
Nov 11, 2025
Merged

refactor: Move metric namespace validation to dogstatsd util#921
litianningdatadog merged 1 commit into
mainfrom
tianning.li/SLES-2547

Conversation

@litianningdatadog

@litianningdatadog litianningdatadog commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

https://datadoghq.atlassian.net/browse/SLES-2547

  • Updates dependency to use centralized parse_metric_namespace function.
  • Removes duplicate code in favor of the shared implementation.

Test:

image - Invoke the function and expect to see the metric using this custom prefix namespace Screenshot 2025-11-11 at 4 59 57 PM

Metric link

@litianningdatadog
litianningdatadog marked this pull request as ready for review November 11, 2025 22:09
@litianningdatadog
litianningdatadog requested a review from a team as a code owner November 11, 2025 22:09
@litianningdatadog
litianningdatadog merged commit c673130 into main Nov 11, 2025
39 checks passed
@litianningdatadog
litianningdatadog deleted the tianning.li/SLES-2547 branch November 11, 2025 22:23
duncanpharvey pushed a commit that referenced this pull request Mar 10, 2026
https://datadoghq.atlassian.net/browse/SLES-2547

- Updates dependency to use centralized parse_metric_namespace function.
 - Removes duplicate code in favor of the shared implementation.


Test:
- Deploy the extension and config w/
[DD_STATSD_METRIC_NAMESPACE](https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/functions/ltn-fullinstrument-bn-10bst-node22-lambda?subtab=envVars&tab=configure)
<img width="964" height="290" alt="image"
src="https://github.com/user-attachments/assets/94836a3a-9905-44b4-9565-185745e47981"
/>
- Invoke the function and expect to see the metric using this custom
prefix namespace
<img width="1170" height="516" alt="Screenshot 2025-11-11 at 4 59 57 PM"
src="https://github.com/user-attachments/assets/0bf4ac5e-ac1c-4cfe-817e-89b004717caf"
/>

[Metric
link](https://ddserverless.datadoghq.com/metric/explorer?fromUser=true&graph_layout=stacked&start=1762897808375&end=1762898083375&paused=true#N4Ig7glgJg5gpgFxALlAGwIYE8D2BXJVEADxQEYAaELcqyKBAC1pEbghkcLIF8qo4AMwgA7CAgg4RKUAiwAHOChASAtnADOcAE4RNIKtrgBHPJoQaUAbVBGN8qVoD6gnNtUZCKiOq279VKY6epbINiAiGOrKQdpYZAYgUJ4YThr42gDGSsgg6gi6mZaBZnHKGABuMMhsaGg4YG5oUAB0WmiCLapS4m6iMMAAVDwgPAC6VBpyaDmg8hgzCAg5STgwTpmYGhoQmYloonBOcorK6QdQ+4dO9EzKIm4eaKP8EPaYWMcKKwciSuM8Pggd7iADCUmEMBQIjwdR4QA)
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