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

[New Feature]: Log metrics for each response #43614

Open
NipunaMadhushan opened this issue Nov 19, 2024 · 0 comments · May be fixed by #43615 or ballerina-platform/module-ballerina-observe#116
Open

[New Feature]: Log metrics for each response #43614

NipunaMadhushan opened this issue Nov 19, 2024 · 0 comments · May be fixed by #43615 or ballerina-platform/module-ballerina-observe#116
Assignees
Labels
needTriage The issue has to be inspected and labeled manually Type/NewFeature userCategory/Compilation

Comments

@NipunaMadhushan
Copy link
Contributor

Description

We need to implement log based metrics for Ballerina as a requirement for all WSO2 on-prem and SaaS products that need to use the same stack for observability. In order to retrieve metrics data using OpenSearch, we need to provide log based metrics which contain a format as follows.

[Time Stamp] protocol:<protocol_type>, tagKey1:tagValue1, tagKey2:tagValue2, .. | response_time:<value_in_seconds>

This feature is configurable in runtime and can be configured as follows in the Config.toml for the ballerina/observe module. By default, this configuration will be false.

[ballerina.observe]
metricsLogsEnabled=true
metricsLogsProvider="metricsLogsProvider"

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Type/NewFeature userCategory/Compilation
Projects
Status: In Progress
2 participants