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

Add metrics logs provider configuration #116

Open
wants to merge 4 commits into
base: java21
Choose a base branch
from

Conversation

NipunaMadhushan
Copy link
Contributor

Purpose

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"

Fixes ballerina-platform/ballerina-lang#43614

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests

@NipunaMadhushan NipunaMadhushan changed the title Java21 Add metrics logs observer configuration Nov 19, 2024
@NipunaMadhushan NipunaMadhushan changed the title Add metrics logs observer configuration Add metrics logs provider configuration Nov 19, 2024
@NipunaMadhushan NipunaMadhushan changed the base branch from main to java21 November 19, 2024 16:30
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.

[New Feature]: Log metrics for each response
1 participant