Skip to content

Add http to span context properties #777

@hmdhk

Description

@hmdhk

For certain spans the frontend agent sends the raw url under the span context with the following structure:

{
  "name": "...",
  "context": {
    "http": {
      "url": {
        "raw": "http://example.com"
      }
    }
  }
}

We need to add this to the span context, however the raw url can be longer than our default 1024 string length limit. There are already cases that exceed this limit so we should not limit this field.

Would be great to hear your thoughts on this, @elastic/apm-server , @elastic/apm-agent-devs

cc @roncohen , @alvarolobato

Update: Decided to use the following structure:

{
  "name": "...",
  "context": {
    "http": {
      "url": "http://example.com"
    }
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions