Service map (error 500)

Good morning,

I have installed APM and now I have been inserting transactions but when I want see the option service map it returns 500 error and i don't know how can I discover the reason. I suppose that the creation of registers is correct, this is the "Parent":


"_index" : "apm-7.8.0-transaction-000001",
        "_type" : "_doc",
        "_id" : "Ic4V8XIBZZEF3zuL_BR0",
        "_score" : null,
        "_source" : {
          "source" : {
            "ip" : "::1"
          },
          "url" : {
            "path" : "/OInvoicing/v1/Invoicing/Invoicing",
            "original" : "http://localhost:6230/OInvoicing/v1/Invoicing/Invoicing",
            "scheme" : "HTTP",
            "domain" : "localhost",
            "query" : "",
            "full" : "http://localhost:6230/OInvoicing/v1/Invoicing/Invoicing"
          },
          "trace" : {
            "id" : "a89ac7bf978a33fbadfb5c440d11bcb7"
          },
          "@timestamp" : "2020-06-26T14:43:30.579Z",
          "ecs" : {
            "version" : "1.5.0"
          },
          "service" : {
            "node" : {
              "name" : "PC0009"
            },
            "environment" : "Development",
            "framework" : {
              "name" : "ASP.NET Core",
              "version" : "2.2.0.0"
            },
            "name" : "Eurofirms_Orchestrator_Invoicing_Development",
            "version" : "1.0.0"
          },
          "http" : {
            "request" : {
              "headers" : {
                "Origin" : [
                  "http://localhost:6230"
                ],
              },
              "method" : "post",
              "socket" : {
                "encrypted" : false,
                "remote_address" : "::1"
              },
            },
            "response" : {
              "status_code" : 204,
              "finished" : false
            },
            "version" : "1.1"
          },
          "transaction" : {
            "result" : "HTTP 2xx",
            "name" : "POST Invoicing/InvoicingAsync {version}",
            "id" : "c0e40f1017c66889",
            "type" : "request",
            "sampled" : true
          }
        }
      }

And the "Child"


"_index" : "apm-7.8.0-transaction-000001",
        "_type" : "_doc",
        "_id" : "wc4V8XIBZZEF3zuLzhMv",
        "_score" : null,
        "_source" : {
          "parent" : {
            "id" : "c0e40f1017c66889"
          },
          "agent" : {
            "name" : "dotnet",
            "version" : "1.2"
          },
          "source" : {
            "ip" : "::1"
          },
          "processor" : {
            "name" : "transaction",
            "event" : "transaction"
          },
          "url" : {
            "path" : "/SAccounting/v1/Invoicing/GetNumInvoiceByReference",
            "original" : "http://localhost:6130/SAccounting/v1/Invoicing/GetNumInvoiceByReference%3FpreInvoice=0&type=0",
            "scheme" : "HTTP",
            "query" : "preInvoice=0&type=0",
            "domain" : "localhost",
            "full" : "http://localhost:6130/SAccounting/v1/Invoicing/GetNumInvoiceByReference?preInvoice=0&type=0"
          },
          "observer" : {
            "hostname" : "ea58c18ad755",
            "name" : "instance-0000000002",
            "id" : "42273094-d49e-4962-be02-ef36213f5cf7",
            "type" : "apm-server",
            "ephemeral_id" : "7c8f07f7-fdd8-4ecd-862e-07ec9aec3b60",
            "version" : "7.8.0",
            "version_major" : 7
          },
          "trace" : {
            "id" : "a89ac7bf978a33fbadfb5c440d11bcb7"
          },
          "@timestamp" : "2020-06-26T14:43:42.046Z",
          "ecs" : {
            "version" : "1.5.0"
          },
          "service" : {
            "node" : {
              "name" : "PC0009"
            },
            "environment" : "Development",
            "framework" : {
              "name" : "ASP.NET Core",
              "version" : "2.2.0.0"
            },
            "name" : "Eurofirms_Services_Accounting_Development",
            "runtime" : {
              "name" : ".NET Core",
              "version" : "2.2.0"
            },
            "language" : {
              "name" : "C#"
            },
            "version" : "1.0.0"
          },
          "host" : {
            "hostname" : "PC0009",
            "ip" : "10.46.18.5",
            "name" : "PC0009"
          },
          "client" : {
            "ip" : "::1"
          },
          "http" : {
            "request" : {
              "headers" : {
                "Accept" : [
                  "application/json"
                ],
                "X-Application" : [
                  "Eurofirms.Orchestrator.Invoicing"
                ],
                "Host" : [
                  "localhost:6130"
                ],
                "Accept-Language" : [
                  "es-ES"
                ],
                "Content-Length" : [
                  "0"
                ],
                "Elastic-Apm-Traceparent" : [
                  "00-a89ac7bf978a33fbadfb5c440d11bcb7-c0e40f1017c66889-01"
                ]
              },
              "method" : "post",
              "socket" : {
                "encrypted" : false,
                "remote_address" : "::1"
              },
              "body" : {
                "original" : ""
              }
            },
            "response" : {
              "headers" : {
                "Content-Length" : [
                  "0"
                ]
              },
              "status_code" : 204,
              "finished" : false
            },
            "version" : "1.1"
          },
          "event" : {
            "ingested" : "2020-06-26T14:43:57.615004Z"
          },
          "transaction" : {
            "result" : "HTTP 2xx",
            "duration" : {
              "us" : 4452058
            },
            "name" : "POST Invoicing/GetNumInvoiceByReferenceAsync {version}",
            "span_count" : {
              "dropped" : 0,
              "started" : 0
            },
            "id" : "33107ca7862becaa",
            "type" : "request",
            "sampled" : true
          },
          "timestamp" : {
            "us" : 1593182622046849
          }
        },
      }

The important field is "Elastic-Apm-Traceparent" and the trace's identifiers are you?

Thanks for the help!

Apparantly it's related to missing ML jobs, after I've created 1 ML job from with the APM context I can again see Service Maps

Thanks Jo_De_Troy!!

When I have created the ML job now appears the service map but I don't have the transactions between the services :frowning:

if I watch the endpoints transaction I can see the span of the others connected services.

Thanks for all!

Good morning,

I deleted all the documents of APM and now I only have one transaction. If I visualize the service's full trace I can see the relation between frontOffice and the service:

My next validation was validate the sample documents, it is the parent:

And this the child:

I don't understand why doesn't works.

Thanks!!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.