Skip to content

transaction.result and transaction.outcome not set for http*s* #2146

@trentm

Description

@trentm

The agent has handling for setting transaction.result and transaction.outcome for http and http2, but not for the https instrumentation.

Here are small scripts for each of http, https, http2 that create a server and includes a comment showing the transaction that it current generates:

Here is the latter part of diff -u playhttp.js playhttps.js that shows the difference in the transaction produced (note that I've replaced variable values like the transaction id with vars like "$id"):

...
@@ -32,7 +37,7 @@
         "transaction": {
             "name": "GET unknown route",
             "type": "request",
-            "result": "HTTP 2xx",
+            "result": "success",
             "id": "$id",
             "trace_id": "$trace_id",
             "subtype": null,
@@ -49,15 +54,15 @@
                     "method": "GET",
                     "url": {
                         "raw": "/",
-                        "protocol": "http:",
+                        "protocol": "https:",
                         "hostname": "localhost",
                         "port": "$port",
                         "pathname": "/",
-                        "full": "http://localhost:$port/"
+                        "full": "https://localhost:$port/"
                     },
                     "socket": {
                         "remote_address": "::1",
-                        "encrypted": false
+                        "encrypted": true
                     },
                     "headers": {
                         "host": "localhost:$port",
@@ -79,7 +84,7 @@
                 "span_count": {
                     "started": 0
                 },
-                "outcome": "success",
+                "outcome": "unknown",
                 "sample_rate": 1
             }
         }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions