Skip to content

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

Open
arjun-rajappa wants to merge 6 commits into
masterfrom
align-otlp-converters-semconv
Open

arjun-rajappa wants to merge 6 commits 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.

… OTel SemConv

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa arjun-rajappa self-assigned this Nov 24, 2026
@arjun-rajappa
arjun-rajappa force-pushed the align-otlp-converters-semconv branch from 1ea81ea to 257047e Compare December 3, 2026 06:55
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa
arjun-rajappa force-pushed the align-otlp-converters-semconv branch from 257047e to b132674 Compare December 3, 2026 07:50
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
The host:port resolution was duplicated in ResqueClient and
ResqueWorker, tripping SonarCloud's new-code duplication gate. Move it
into ResqueRedisUrl.lookup and drop the now-unneeded rubocop disable.

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa
arjun-rajappa requested a review from a team December 3, 2026 13:09
- Add default else clause to BackgroundJobConverter#convert_attributes case statement
- Use Enumerable#find instead of each in RpcConverter#grpc_response_status_code

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@pvital pvital left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants