Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Investigate trace format emitted by OTelCollector/Lambda Layer #562

Open
wrijeff opened this issue May 4, 2021 · 0 comments
Open

Investigate trace format emitted by OTelCollector/Lambda Layer #562

wrijeff opened this issue May 4, 2021 · 0 comments
Labels

Comments

@wrijeff
Copy link
Contributor

wrijeff commented May 4, 2021

The OpenTelemetry Python Lambda sample app emits 2 traces on invocation, both showing up as "unknown_service" when viewed in Kibana. Pasting them here for reference, need to understand if code changes are necessary to better index them.

HTTP Request

{
  "_index": "otel-v1-apm-span-000001",
  "_type": "_doc",
  "_id": "2e72a8ac5a9f6ac0",
  "_score": 1,
  "_source": {
    "traceId": "60919350008790e05044fd742995ecf3",
    "spanId": "2e72a8ac5a9f6ac0",
    "traceState": "",
    "parentSpanId": "4dab7773041f51d6",
    "name": "HTTP GET",
    "kind": "SPAN_KIND_CLIENT",
    "startTime": "2021-05-04T18:32:48.062949639Z",
    "endTime": "2021-05-04T18:32:48.070131927Z",
    "durationInNanos": 7182288,
    "serviceName": "unknown_service",
    "events": [],
    "links": [],
    "droppedAttributesCount": 0,
    "droppedEventsCount": 0,
    "droppedLinksCount": 0,
    "traceGroup": null,
    "span.attributes.http@method": "GET",
    "span.attributes.http@url": "http://httpbin.org/",
    "resource.attributes.telemetry@sdk@name": "opentelemetry",
    "instrumentationLibrary.version": "0.18b1",
    "resource.attributes.telemetry@sdk@language": "python",
    "span.attributes.http@status_text": "OK",
    "resource.attributes.telemetry@sdk@version": "1.0.0rc1",
    "resource.attributes.service@name": "unknown_service",
    "span.attributes.http@status_code": 200,
    "status.code": 0,
    "instrumentationLibrary.name": "opentelemetry.instrumentation.aiohttp_client"
  },
  "fields": {
    "startTime": [
      "2021-05-04T18:32:48.062949639Z"
    ],
    "endTime": [
      "2021-05-04T18:32:48.070131927Z"
    ]
  }
}

S3 "list buckets" request

{
  "_index": "otel-v1-apm-span-000001",
  "_type": "_doc",
  "_id": "01b0c87d6a35aeba",
  "_score": 1,
  "_source": {
    "traceId": "60919350008790e05044fd742995ecf3",
    "spanId": "01b0c87d6a35aeba",
    "traceState": "",
    "parentSpanId": "4dab7773041f51d6",
    "name": "s3",
    "kind": "SPAN_KIND_CLIENT",
    "startTime": "2021-05-04T18:32:48.070793799Z",
    "endTime": "2021-05-04T18:32:48.088627943Z",
    "durationInNanos": 17834144,
    "serviceName": "unknown_service",
    "events": [],
    "links": [],
    "droppedAttributesCount": 0,
    "droppedEventsCount": 0,
    "droppedLinksCount": 0,
    "traceGroup": null,
    "span.attributes.aws@region": "us-east-1",
    "instrumentationLibrary.version": "0.18b1",
    "resource.attributes.telemetry@sdk@language": "python",
    "span.attributes.aws@request_id": "FGVGS51380ZHPZC7",
    "resource.attributes.telemetry@sdk@version": "1.0.0rc1",
    "resource.attributes.service@name": "unknown_service",
    "status.code": 0,
    "instrumentationLibrary.name": "opentelemetry.instrumentation.aiohttp_client",
    "resource.attributes.telemetry@sdk@name": "opentelemetry",
    "span.attributes.aws@operation": "ListBuckets",
    "span.attributes.retry_attempts": 0,
    "span.attributes.aws@service": "s3",
    "span.attributes.http@status_code": 200
  },
  "fields": {
    "startTime": [
      "2021-05-04T18:32:48.070793799Z"
    ],
    "endTime": [
      "2021-05-04T18:32:48.088627943Z"
    ]
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant