OpenTelemetry instrumentation for FMPy
Project description
OpenTelemetry FMPy Instrumentation
OpenTelemetry instrumentation for FMPy, providing distributed tracing and observability for Functional Mock-up Unit (FMU) simulations.
Installation
pip install opentelemetry-instrumentation-fmpy
Usage
Programmatic Instrumentation
from opentelemetry.instrumentation.fmpy import FmpyInstrumentor
# Enable instrumentation
FmpyInstrumentor().instrument()
import fmpy
# FMU operations are now traced automatically
result = fmpy.simulate_fmu("model.fmu", stop_time=10.0)
# Disable instrumentation
FmpyInstrumentor().uninstrument()
Development
Requirements
- Python 3.8+
- uv (for development)
Example
You can run the demo code showing how it is used.
uv run python demo/main.py <paht-to-fmu-file>
Citation
If you use this repository in your research or publications, please cite it using the following BibTeX entry:
@misc{opentelemetry-instrumentation-fmpy,
author = {Christoffer Björkskog},
title = {OpenTelemetry Instrumentation for FMPy},
year = {2025},
howpublished = {\url{https://github.com/Novia-RDI-Seafaring/opentelemetry-instrumentation-fmpy}},
note = {Contact: christoffer.bjorkskog@novia.fi},
institution = {Novia University of Applied Sciences}
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_fmpy-0.1.1.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_fmpy-0.1.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2a702acba3f4c491adba55fdf1541566a4e2a1b4542cfd2ce9e6eef2af5186
|
|
| MD5 |
dfec2924024b5e3677d73a6c3cd5594c
|
|
| BLAKE2b-256 |
525a8884fe8b637944460f4768546ffd9bcb04e5189253700c5859a33b18819d
|
File details
Details for the file opentelemetry_instrumentation_fmpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_fmpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfcacbb9bd2022dfe6e384ee943bb509509c5f199acdddf4b2313cd99b01aafc
|
|
| MD5 |
11caf4d38ae4bfb5a7d4a62604acdce1
|
|
| BLAKE2b-256 |
b06e0969f09c974d9b8a1b9ee7a66d1499b903de7658d28ddf82b8719b025a68
|