Skip to main content

OpenTelemetry instrumentation for FMPy

Project description

OpenTelemetry FMPy Instrumentation

pypi python

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentelemetry_instrumentation_fmpy-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_fmpy-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_fmpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 299b7c8b91ad8547124b09373463f363119fcd07346b79dfa0302d6d4613b5a1
MD5 717ef904db67ed00f8aa01744e1345ce
BLAKE2b-256 33b0d529e3d3e301db581c1abc043f94bbdd8ba274163dde7e9f07fbe38dc136

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_fmpy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_fmpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ef4daeb73b45d399561a76d4c1399b7e7575ea432ff15313854bf8ca900d3d
MD5 efab053b501dfe825e2f7e4ae571b6fa
BLAKE2b-256 9d68cd86cc436af211eccf34738e9602807f7d4aff4ac3aaf01c10963102497d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page