Skip to content

v1.1.0

Choose a tag to compare

@walterra walterra released this 09 May 22:25
· 11 commits to main since this release

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 telemetry

Docker 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-renderer

Code 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:

  1. Update your package: npm update node-html2img-render-server@1.1.0
  2. Add OpenTelemetry configuration to your environment variables
  3. Restart the service

For Docker users:

docker pull walterra/node-html2img-render-server:1.1.0

Compatibility

  • Node.js v18+
  • Compatible with OpenTelemetry-compliant observability platforms
  • Can be used with or without telemetry features