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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_fmpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ee2a702acba3f4c491adba55fdf1541566a4e2a1b4542cfd2ce9e6eef2af5186
MD5 dfec2924024b5e3677d73a6c3cd5594c
BLAKE2b-256 525a8884fe8b637944460f4768546ffd9bcb04e5189253700c5859a33b18819d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_fmpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfcacbb9bd2022dfe6e384ee943bb509509c5f199acdddf4b2313cd99b01aafc
MD5 11caf4d38ae4bfb5a7d4a62604acdce1
BLAKE2b-256 b06e0969f09c974d9b8a1b9ee7a66d1499b903de7658d28ddf82b8719b025a68

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