tektoncd / results

Long term storage of execution results.
Apache License 2.0
78 stars 74 forks source link

Integration of Knative Adapter for Enhanced Logging in Tekton Results API #669

Closed ramessesii2 closed 11 months ago

ramessesii2 commented 1 year ago

Feature request

This issue proposes the integration of a Knative adapter to enhance logging capabilities within the Tekton Results API component. This transition aims to address the limitations and lack of uniformity in logging across the API and watcher currently observed with the zap logger. Original Issue - #272

Use case

The Tekton Results API employs a zap logger, which has demonstrated limitations and inconsistencies, particularly in uniformity across the API and watcher components. Adopting a Knative-based logging approach, inspired by its successful use in Tekton Triggers and Pipelines-as-Code projects, promises enhanced flexibility, integration, and customization.

Benefits

Potential Drawbacks

Preliminary configuration of adapter with Tekton-Results API

https://github.com/ramessesii2/downstream-tektoncd-results/blob/RAMESSESII2/results-api-knative-adapter-2/cmd/api/main.go

ramessesii2 commented 1 year ago

cc @khrm @enarha @sayan-biswas @avinal

sayan-biswas commented 11 months ago

Few things here i would like to mention..

ramessesii2 commented 11 months ago

Agreeing with the @sayan-biswas's feedback, I'm closing this issue. The integration of a Knative adapter doesn't align with our current viper-based config parsing and context propagation needs in Tekton Results API . The complexities added by this approach, given our reliance on the zap logger, outweigh the benefits.