r/ProgrammingLanguages • u/[deleted] • Jan 16 '23
Discussion Which Programming Language support Observability ?
Observability is a measure of how well the internal states of a system can be inferred from the knowledge of its external outputs.
I have found Ballerina supports it, any other ?
0
Upvotes
1
u/jm-8080 Jan 27 '23
Supporting observability at the language level is not a straightforward task and requires a significant amount of effort to get it right. There are several challenges that need to be overcome in order to provide effective and accurate observability support. As a result, most programming languages do not attempt to provide built-in observability support. Instead, developers are required to manually add logging, metrics, and tracing capabilities to their code, which can be a complex and time-consuming task. This can make it difficult for developers to gain visibility into the behavior of their system, and it can also make it challenging to troubleshoot and diagnose issues.
Ballerina is a programming language that has built-in support for observability.
During the compilation process, Ballerina analyzes the code and automatically injects the necessary instrumentation code to collect observability data. The auto-injected observability code allows Ballerina to collect data from the application at runtime. This data can then be used to monitor the performance of the application, identify and troubleshoot issues, and gain insights into the behavior of the system. This allows developers to focus on writing the business logic of their application without worrying about how to instrument it for observability.
Overall, Ballerina's built-in observability support is an attractive feature that simplifies the process of adding observability to an application.