Skip to content

feat(exporter): align OTLP converters and Resque instrumentation with… - #546

Open
arjun-rajappa wants to merge 1 commit into
masterfrom
align-otlp-converters-semconv
Open

arjun-rajappa wants to merge 1 commit into
masterfrom
align-otlp-converters-semconv

Conversation

@arjun-rajappa

@arjun-rajappa arjun-rajappa commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

The Instana Ruby sensor's OTLP exporter needs to strictly align with OpenTelemetry (OTel) Semantic Conventions to ensure high compatibility, standardized span naming, and accurate attribute mapping across database, AWS SDK, RPC, background job, HTTP, GraphQL, and messaging spans. Additionally, Resque client and worker instrumentation required dynamic Redis connection tracking to avoid missing server.address and server.port attributes in OTLP spans.

What

  • AWS Converter (aws_converter.rb): Implemented LAMBDA_TRIGGER_MAP, updated AWS SDK span name formatting to match OTel conventions, and aligned SQS, SNS, DynamoDB, and Lambda attribute maps.
  • Background Job Converter (background_job_converter.rb): Standardized span naming according to messaging operation patterns, updated OTel attributes mapping, and omitted the irrelevant messaging.message.id for Resque client/worker spans.
  • Database Converter (database_converter.rb): Aligned database span naming and systems normalization with OTel DB SemConv v1.41.0, updated ActiveRecord, Sequel, Redis, Memcached, and MongoDB attributes.
  • GraphQL Converter (graphql_converter.rb): Formatted GraphQL spans and document attribute mapping.
  • HTTP Converter (http_converter.rb): Expanded HTTP attribute mappings to support url.template, request headers, scheme, user-agent, and network protocols.
  • Messaging Converter (messaging_converter.rb): Aligned RabbitMQ and Kafka attribute maps.
  • RPC Converter (rpc_converter.rb): Updated RPC method mapping and gRPC response status codes to conform with SemConv.
  • Resque Instrumentation (resque.rb): Dynamically extract host and port from the active Resque.redis instance across client and worker processes.
  • Serverless (serverless.rb): Enhanced AWS Lambda entry attributes tracking (cold start, request ID, arn-based account, region, resources).
  • Comprehensive Unit Tests: Expanded test assertions across all converters to validate the new span names and semantic convention mappings.

@arjun-rajappa arjun-rajappa self-assigned this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant