v1.1.0
Overview
Version 1.1.0 of node-html2img-render-server adds OpenTelemetry integration for observability in production environments. This release enables monitoring, debugging, and optimizing HTML rendering services.
Key Features
OpenTelemetry Integration
The service now includes OpenTelemetry support via @elastic/opentelemetry-node.
Environment Variable Configuration
Configure telemetry using OpenTelemetry environment variables:
OTEL_SERVICE_NAME=node-html2img-render-server
OTEL_EXPORTER_OTLP_ENDPOINT=https://your-otlp-endpoint:443
OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey your_api_key_here"
# Optional control
OTEL_SDK_DISABLED=false # Set to 'true' to disable telemetryDocker Support
The Docker container includes OpenTelemetry support:
docker run -p 3000:3000 \
-e API_KEY=your-api-key \
-e OTEL_SERVICE_NAME=html-renderer \
-e OTEL_EXPORTER_OTLP_ENDPOINT=https://your-apm-endpoint:443 \
-e OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey your-api-key" \
html-rendererCode Quality Improvements
- Added ESLint and Prettier for code style
- Improved error handling
- Added validation for configuration parameters
Upgrade Instructions
This is a non-breaking update. To upgrade:
- Update your package:
npm update node-html2img-render-server@1.1.0 - Add OpenTelemetry configuration to your environment variables
- Restart the service
For Docker users:
docker pull walterra/node-html2img-render-server:1.1.0Compatibility
- Node.js v18+
- Compatible with OpenTelemetry-compliant observability platforms
- Can be used with or without telemetry features