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

[Choreo] [ws analytics] Fix publishing 101 success requests #3584

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

Thushani-Jayasekera
Copy link

@Thushani-Jayasekera Thushani-Jayasekera commented Sep 13, 2024

Purpose

Currently the WebSocket Access logs with status code 101 are not published in analytics UI. This PR will fix it by using the current default analytics provider.
Later in the handleGRPCLogMsg(StreamAccessLogsMessage message) method we need to define a seperate analytics provider for websocket connections. Currently there is no way of identifying this.

Furthermore this can be improved with access logs been flushed for a duration instead of completion

https://www.envoyproxy.io/docs/envoy/v1.26.8/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-hcmaccesslogoptions

access_log_flush_interval
(Duration) The interval to flush the above access logs. By default, the HCM will flush exactly one access log on stream close, when the HTTP request is complete. If this field is set, the HCM will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. Final access logs can be detected via the requestComplete() method of StreamInfo in access log filters, or thru the %DURATION% substitution string. The interval must be at least 1 millisecond.

Issues

Fixes #

Automation tests

  • Unit tests added: Yes/No
  • Integration tests added: Yes/No

Tested environments

Not Tested


Maintainers: Check before merge

  • Assigned 'Type' label
  • Assigned the project
  • Validated respective github issues
  • Assigned milestone to the github issue(s)

@Thushani-Jayasekera Thushani-Jayasekera changed the title Fix publishing 101 success requests [Choreo] [ws analytics] Fix publishing 101 success requests Sep 13, 2024
@renuka-fernando renuka-fernando merged commit 7d25499 into wso2:choreo Sep 15, 2024
3 checks passed
@choreo-cicd
Copy link

[failed] : dev-deployment-v2 : 20240915.2

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.2

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.2

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.3

@choreo-cicd
Copy link

[failed] : dev-deployment-v2 : 20240915.3

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.3

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.4

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.4

@choreo-cicd
Copy link

[failed] : dev-deployment-v2 : 20240915.4

@choreo-cicd
Copy link

[failed] : dev-deployment-v2 : 20240915.5

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.5

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.5

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.6

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.6

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.7

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.7

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.8

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.8

@choreo-cicd
Copy link

[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240915.9

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240915.9

@choreo-cicd
Copy link

[failed] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240918.9

@choreo-cicd
Copy link

[succeeded] Controlplane cluster : stage-deployment-v2 : 20240918.9

@choreo-cicd
Copy link

[succeeded] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240918.9

@choreo-cicd
Copy link

[succeeded] Dataplane(CDP2-WU2) cluster : stage-deployment-v2 : 20240918.9

@choreo-cicd
Copy link

[] Controlplane cluster : stage-deployment-v2 : 20240918.10

@choreo-cicd
Copy link

[] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240918.10

@choreo-cicd
Copy link

[] Dataplane(CDP2-WU2) cluster : stage-deployment-v2 : 20240918.10

@choreo-cicd
Copy link

[] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240918.10

@choreo-cicd
Copy link

[succeeded] Controlplane cluster : prod-deployment-v2 : 20240919.4

@choreo-cicd
Copy link

[succeeded] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20240919.4

@choreo-cicd
Copy link

[succeeded] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20240919.4

@choreo-cicd
Copy link

[succeeded] Dataplane(EastUS) cluster : prod-deployment-v2 : 20240919.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants