Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Implement a standard logging system #58

Open
k-allagbe opened this issue Sep 22, 2023 · 3 comments
Open

Implement a standard logging system #58

k-allagbe opened this issue Sep 22, 2023 · 3 comments

Comments

@k-allagbe
Copy link
Member

Currently the project doesn't have a standard way to log events.

@k-allagbe k-allagbe added the enhancement New feature or request label Sep 22, 2023
@vivalareda vivalareda self-assigned this Sep 28, 2023
@vivalareda vivalareda assigned vivalareda and unassigned vivalareda Oct 12, 2023
@ThomasCardin
Copy link
Member

Hello, we will use this. https://opentelemetry.io/docs/instrumentation/python/ via the automated solution https://opentelemetry.io/docs/instrumentation/python/automatic/, you can see a example of the automatic solution here
https://opentelemetry.io/docs/instrumentation/python/automatic/example/

@ThomasCardin ThomasCardin self-assigned this Jan 3, 2024
@k-allagbe
Copy link
Member Author

Hello, we will use this. https://opentelemetry.io/docs/instrumentation/python/ via the automated solution https://opentelemetry.io/docs/instrumentation/python/automatic/, you can see a example of the automatic solution here https://opentelemetry.io/docs/instrumentation/python/automatic/example/

So we only have to print anything we want to log?

@rngadam
Copy link
Contributor

rngadam commented Jan 17, 2024

Hello, we will use this. https://opentelemetry.io/docs/instrumentation/python/ via the automated solution https://opentelemetry.io/docs/instrumentation/python/automatic/, you can see a example of the automatic solution here https://opentelemetry.io/docs/instrumentation/python/automatic/example/

So we only have to print anything we want to log?

No. OpenTelemetry is a complement to logging and a layer above to allow observing our systems as systems:

https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/logging/logging.html

...which allows us to centralize and trace requests from frontend to database (with logs)

note that'd we'd need support to psycopg3:

open-telemetry/opentelemetry-python-contrib#1751

there's support for flask:

https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/flask/flask.html

as well as react:

https://developers.redhat.com/articles/2023/03/22/how-enable-opentelemetry-traces-react-applications#

as well as Azure:

https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-configuration?tabs=python

Microsoft is among the largest contributors to OpenTelemetry.

The key value propositions of OpenTelemetry are that it's vendor-neutral and provides consistent APIs/SDKs across languages.

Over time, we believe OpenTelemetry will enable Azure Monitor customers to observe applications written in languages beyond our supported languages. It also expands the types of data you can collect through a rich set of instrumentation libraries. Furthermore, OpenTelemetry SDKs tend to be more performant at scale than their predecessors, the Application Insights SDKs.

Finally, OpenTelemetry aligns with Microsoft's strategy to embrace open source.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Todo
Status: No status
Development

No branches or pull requests

4 participants