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 Ballerina metrics logs observer #43615

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

NipunaMadhushan
Copy link
Contributor

Purpose

We are implementing 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>

Fixes #43614

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@@ -0,0 +1,112 @@
package io.ballerina.runtime.observability.metrics;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License text missing

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (2201.11.0-stage@f370336). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../ballerina/runtime/observability/ObserveUtils.java 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             2201.11.0-stage   #43615   +/-   ##
==================================================
  Coverage                   ?   77.49%           
  Complexity                 ?    58505           
==================================================
  Files                      ?     3432           
  Lines                      ?   218621           
  Branches                   ?    28911           
==================================================
  Hits                       ?   169413           
  Misses                     ?    39814           
  Partials                   ?     9394           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@NipunaMadhushan NipunaMadhushan changed the base branch from master to 2201.11.0-stage November 21, 2024 08:58
@NipunaMadhushan NipunaMadhushan changed the base branch from 2201.11.0-stage to master November 28, 2024 04:52
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
2 participants