Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Dynamo Inferred Service only populated for Query operation #3096

Open
lzrf0cuz opened this issue Jan 16, 2025 · 1 comment
Open

[BUG] Dynamo Inferred Service only populated for Query operation #3096

lzrf0cuz opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
bug unintended behavior that has to be fixed

Comments

@lzrf0cuz
Copy link

Image

The table name isn't populated for anything other than the Query operation.

dd-trace-go

github.com/DataDog/dd-trace-go/v2 v2.0.0-rc.2
github.com/DataDog/dd-trace-go/contrib/aws/aws-sdk-go-v2/v2 v2.0.0-rc.2
github.com/aws/aws-sdk-go-v2/config v1.29.0
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.39.4

Dynamo Instrumentation

ddtraceaws.AppendMiddleware(&awsConf)
svc.dynamo = dynamodb.NewFromConfig(awsConf)

DD UI Span Attributes

{
  "app": "application",
  "aws": {
    "agent": "aws-sdk-go-v2/1.33.0 ua/2.1 os/linux lang/go#1.23.4 md/GOOS#linux md/GOARCH#arm64 exec-env/AWS_ECS_FARGATE api/dynamodb#1.39.4 m/E",
    "operation": "BatchGetItem",
    "region": "us-east-1",
    "request_id": "6O1KNBKLnO5AEMVJF66Q9ASUAAJG",
    "service": "DynamoDB"
  },
  "aws_service": "DynamoDB",
  "base_service": "api_server",
  "component": "aws/aws-sdk-go-v2/aws",
  "go_execution_traced": "yes",
  "http": {
    "host": "dynamodb.us-east-1.amazonaws.com",
    "method": "POST",
    "path_group": "/",
    "status_code": "200",
    "url": "https://dynamodb.us-east-1.amazonaws.com/",
    "url_details": {
      "host": "dynamodb.us-east-1.amazonaws.com",
      "path": "/",
      "scheme": "https"
    }
  },
  "language": "go",
  "node": {
    "id:": "2rixg5UExKS30ePttyymSvc"
  },
  "org": "devx",
  "peer": {
    "aws": {
      "dynamodb": {
        "table": ""
      }
    },
    "hostname": "dynamodb.us-east-1.amazonaws.com"
  },
  "process_id": "778",
  "region": "us-east-1",
  "runtime-id": "60be3057-d74a-4030-857f-efb8dd81c",
  "service": "api_server",
  "span": {
    "kind": "client"
  },
  "svc": {
    "name": "api_server",
    "type": "app"
  },
  "tablename": "",
  "version": "1.0.0"
}
@lzrf0cuz lzrf0cuz added the bug unintended behavior that has to be fixed label Jan 16, 2025
@github-actions github-actions bot added the needs-triage New issues that have not yet been triaged label Jan 16, 2025
@darccio
Copy link
Member

darccio commented Jan 20, 2025

@lzrf0cuz Thanks for reaching out. We'll review this issue as soon as possible.

@darccio darccio removed the needs-triage New issues that have not yet been triaged label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unintended behavior that has to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants