SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
19.47k stars 1.31k forks source link

Release/v0.58.x #6405

Closed prashant-shahi closed 2 weeks ago

prashant-shahi commented 2 weeks ago

Summary


[!IMPORTANT] Enhance template processing to support {{.Labels.service.name}} syntax and improve string escaping for ClickHouse queries, with comprehensive tests for backward compatibility.

  • Template Processing:
    • Enhance preprocessTemplate() in rules/templates.go to handle {{.Labels.service.name}} syntax.
    • Add regex to replace {{.Labels.service.name}} with {{index .Labels "service.name"}}.
  • String Escaping:
    • Modify QuoteEscapedStringForContains() in utils/format.go to handle index-specific escaping for ClickHouse queries.
  • Testing:
    • Add test TestTemplateExpander_WithLablesDotSyntax in templates_test.go to verify new template syntax handling.
    • Ensure backward compatibility with existing template syntax through tests.

This description was created by Ellipsis for 48f3b9cacb75ccf542df3380c23abf1e6b63124f. It will automatically update as commits are pushed.

CLAassistant commented 2 weeks ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
10 out of 11 committers have signed the CLA.

:white_check_mark: eKuG
:white_check_mark: YounixM
:white_check_mark: vikrantgupta25
:white_check_mark: srikanthccv
:white_check_mark: nityanandagohain
:white_check_mark: ankitnayan
:white_check_mark: shivanshuraj1333
:white_check_mark: ahmadshaheer
:white_check_mark: prashant-shahi
:white_check_mark: SagarRajput-7
:x: dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

github-actions[bot] commented 2 weeks ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #

github-actions[bot] commented 2 weeks ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #