# \#go

**URL:** https://discuss.elastic.co/tag/go/31.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [Elastic APM Security Scan](https://discuss.elastic.co/t/elastic-apm-security-scan/377634)

<div class="topic-metadata">

**Author:** [@88eighties88](https://discuss.elastic.co/u/88eighties88)\
**Replies:** 0\
**Last updated:** [April 29, 2025, 7:30pm UTC](https://discuss.elastic.co/t/elastic-apm-security-scan/377634 "2025-04-29T19:30:23Z")

</div>

I am running the 8.18.0 and/or 9.9.0 elastic/apm-server docker image through a trivy image security scan and it is flagging the apm-server binary for having a version that has a CVE. The version it is saying is installe…

---

## [Manual Distributed tracing not showing up in the service map](https://discuss.elastic.co/t/manual-distributed-tracing-not-showing-up-in-the-service-map/375536)

<div class="topic-metadata">

**Author:** [@GregoryJC](https://discuss.elastic.co/u/GregoryJC)\
**Replies:** 0\
**Last updated:** [March 6, 2025, 6:53pm UTC](https://discuss.elastic.co/t/manual-distributed-tracing-not-showing-up-in-the-service-map/375536 "2025-03-06T18:53:06Z")

</div>

I manually setup distributed tracing to add a Kafka header to Sarama containing the TraceParent. This is then consumed by another Go application and used to start a transaction. As shown here, Distributed tracing | Serve…

---

## [HTTP and gRPC spans in the same trace](https://discuss.elastic.co/t/http-and-grpc-spans-in-the-same-trace/374508)

<div class="topic-metadata">

**Author:** [@rauan](https://discuss.elastic.co/u/rauan)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 2:28pm UTC](https://discuss.elastic.co/t/http-and-grpc-spans-in-the-same-trace/374508 "2025-02-13T14:28:36Z")

</div>

\[Following up on closed topic: https://discuss.elastic.co/t/apm-http-context-transferred-to-grpc-context/231421\] My backend is in golang and I'm using regular opentelemetry tooling: http://go.opentelemetry.io/otel (v1.3…

---

## [APM ServiceMap, missing connection between 2 services](https://discuss.elastic.co/t/apm-servicemap-missing-connection-between-2-services/372950)

<div class="topic-metadata">

**Author:** [@fabry\_00](https://discuss.elastic.co/u/fabry_00)\
**Replies:** 0\
**Last updated:** [January 8, 2025, 4:59pm UTC](https://discuss.elastic.co/t/apm-servicemap-missing-connection-between-2-services/372950 "2025-01-08T16:59:11Z")

</div>

Hello, we have an ELK cluster deployed on premise 8.16.2 and a 2 fleetservers that are collecting the traces coming from Opentelemetry collectors. We have a simple scenario (#1) where our gateway (Service A) calls a ba…

---

## [What is the future of APM in Go?](https://discuss.elastic.co/t/what-is-the-future-of-apm-in-go/364972)

<div class="topic-metadata">

**Author:** [@milesich](https://discuss.elastic.co/u/milesich)\
**Replies:** 2\
**Last updated:** [August 22, 2024, 8:34am UTC](https://discuss.elastic.co/t/what-is-the-future-of-apm-in-go/364972 "2024-08-22T08:34:17Z")

</div>

I have seen the blog post Migrating from Elastic’s Go APM agent to OpenTelemetry Go SDK where they talk about the benefits of migrating to OTel Go SDK. What about the negatives? Does OTel Go SDK support compressed span…

---

## [Elastic APM dropping spans in golang](https://discuss.elastic.co/t/elastic-apm-dropping-spans-in-golang/363679)

<div class="topic-metadata">

**Author:** [@ishan\_khan](https://discuss.elastic.co/u/ishan_khan)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 10:50am UTC](https://discuss.elastic.co/t/elastic-apm-dropping-spans-in-golang/363679 "2024-07-25T10:50:43Z")

</div>

Getting Error Dropped Spans with golang elastic/apm/v2, Check SC attached below, I have already set the \[ELASTIC\_APM\_TRANSACTION\_MAX\_SPANS\] to a very high number of 20000, But it is not showing any span in a transactio…

---

## [Elastic APM Go Agent support for confluent-kafka-go](https://discuss.elastic.co/t/elastic-apm-go-agent-support-for-confluent-kafka-go/363464)

<div class="topic-metadata">

**Author:** [@Garvit\_Jain](https://discuss.elastic.co/u/Garvit_Jain)\
**Replies:** 0\
**Last updated:** [July 20, 2024, 7:54am UTC](https://discuss.elastic.co/t/elastic-apm-go-agent-support-for-confluent-kafka-go/363464 "2024-07-20T07:54:38Z")

</div>

Hi, I went through the official docs \[here\] (Supported Technologies | APM Go Agent Reference \[master\] | Elastic) and there is not support for Kafka messaging. I went through github issues and there is no issue for confl…

---

## [How to use Apm for tracing all http request coming in go application, application use \`net/http\`?](https://discuss.elastic.co/t/how-to-use-apm-for-tracing-all-http-request-coming-in-go-application-application-use-net-http/357361)

<div class="topic-metadata">

**Author:** [@codeimmortal](https://discuss.elastic.co/u/codeimmortal)\
**Replies:** 0\
**Last updated:** [April 14, 2024, 12:40pm UTC](https://discuss.elastic.co/t/how-to-use-apm-for-tracing-all-http-request-coming-in-go-application-application-use-net-http/357361 "2024-04-14T12:40:21Z")

</div>

How can add APM tracing in below very simple go code, which use net/http. package main import ( "fmt" "net/http" ) func helloHandler(w http.ResponseWriter, r \*http.Request) { fmt.Fprintln(w, "Hello, World!"…

---

## [Why Opentelemetry spans with same trace ids could have different transaction ids?](https://discuss.elastic.co/t/why-opentelemetry-spans-with-same-trace-ids-could-have-different-transaction-ids/352916)

<div class="topic-metadata">

**Author:** [@toporovvv](https://discuss.elastic.co/u/toporovvv)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 9:38am UTC](https://discuss.elastic.co/t/why-opentelemetry-spans-with-same-trace-ids-could-have-different-transaction-ids/352916 "2024-02-09T09:38:04Z")

</div>

I see a strange behavior for Opentelemetry integration. We have applications in PHP and Go which are linked with GRPC. I've made a manual Opentelemetry integration for PHP (with GRPC transport). However there is a strang…

---

## [Logs are not coming inside logs tab but coming inside error tab in the apm server dasboard](https://discuss.elastic.co/t/logs-are-not-coming-inside-logs-tab-but-coming-inside-error-tab-in-the-apm-server-dasboard/350062)

<div class="topic-metadata">

**Author:** [@kishor1](https://discuss.elastic.co/u/kishor1)\
**Replies:** 1\
**Last updated:** [December 28, 2023, 9:34am UTC](https://discuss.elastic.co/t/logs-are-not-coming-inside-logs-tab-but-coming-inside-error-tab-in-the-apm-server-dasboard/350062 "2023-12-28T09:34:14Z")

</div>

Kibana version: 7.15.2 Elasticsearch version: 7.16.2 APM Server version: 7.3.2 APM Agent language and version: go and 1.21.0 Browser version: google chrome (119.0.6045.159 ) Original install method (e.g. download…

---

## [Sir I have issue with storage for 7 days](https://discuss.elastic.co/t/sir-i-have-issue-with-storage-for-7-days/349509)

<div class="topic-metadata">

**Author:** [@zabtech](https://discuss.elastic.co/u/zabtech)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 12:42pm UTC](https://discuss.elastic.co/t/sir-i-have-issue-with-storage-for-7-days/349509 "2023-12-17T12:42:40Z")

</div>

I have issue with storage, my storage is full more than 7 days, I can't use APM for 7 days also, I try to created cases and use enterprise plan, but it's look like no one really can't help me. What can I do with my issue…

---

## [Apmotel adding resource attributes as labels](https://discuss.elastic.co/t/apmotel-adding-resource-attributes-as-labels/344949)

<div class="topic-metadata">

**Author:** [@Justin\_Thomas](https://discuss.elastic.co/u/Justin_Thomas)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 7:56pm UTC](https://discuss.elastic.co/t/apmotel-adding-resource-attributes-as-labels/344949 "2023-10-12T19:56:19Z")

</div>

I'm hoping someone can help me understand what is happening and how I might fix it. Setup: apm-agent-go open telemetry Go 1.19 I've been trying to use the otel package for tracing and want to expirement with collect…

---

## [Apm-agent-go/echo not catch custom span](https://discuss.elastic.co/t/apm-agent-go-echo-not-catch-custom-span/323954)

<div class="topic-metadata">

**Author:** [@ggalihpp-jubelio](https://discuss.elastic.co/u/ggalihpp-jubelio)\
**Replies:** 2\
**Last updated:** [January 29, 2023, 5:31pm UTC](https://discuss.elastic.co/t/apm-agent-go-echo-not-catch-custom-span/323954 "2023-01-29T17:31:30Z")

</div>

Hi everyone, I am trying to configure APM agent on top of echo webframework. Everything is working, transaction, PostgreSQL span, etc.. but when tried to create a custom span, its not working here's how I tried to ach…

---

## [SANITIZE FIELD NAMES in body when contain sensitive values](https://discuss.elastic.co/t/sanitize-field-names-in-body-when-contain-sensitive-values/323626)

<div class="topic-metadata">

**Author:** [@Jose\_Antonio\_Pinto\_d](https://discuss.elastic.co/u/Jose_Antonio_Pinto_d)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 7:29pm UTC](https://discuss.elastic.co/t/sanitize-field-names-in-body-when-contain-sensitive-values/323626 "2023-01-20T19:29:47Z")

</div>

I'm trying to sanitize sensitive fields in body, but I can't do this. It's not work to me. func NewGorillaMux() Http { router := mux.NewRouter().PathPrefix("/").Subrouter() router.Use(middleware.NewCorsMiddleware("\*")…

---

## [Golang apm DetachedContext before goroutine not record span](https://discuss.elastic.co/t/golang-apm-detachedcontext-before-goroutine-not-record-span/320208)

<div class="topic-metadata">

**Author:** [@zt9788](https://discuss.elastic.co/u/zt9788)\
**Replies:** 8\
**Last updated:** [December 1, 2022, 8:48am UTC](https://discuss.elastic.co/t/golang-apm-detachedcontext-before-goroutine-not-record-span/320208 "2022-12-01T08:48:36Z")

</div>

es7,apm server7 When use DetachedContext before (go func(...)) there is not record span I saw #475 //use the zero framework redis quene //in the consume task func ProcessTask(ctx context.Context, t \*asynq.Task) error{…

---

## [EOF while reading](https://discuss.elastic.co/t/eof-while-reading/319538)

<div class="topic-metadata">

**Author:** [@leschev](https://discuss.elastic.co/u/leschev)\
**Replies:** 6\
**Last updated:** [November 29, 2022, 10:45am UTC](https://discuss.elastic.co/t/eof-while-reading/319538 "2022-11-29T10:45:29Z")

</div>

Hello! I have a problem with debugging apm-server. I take example request body from here. curl --request POST http://\*.\*.\*.\*:\*/intake/v2/events -H "Content-Type: application/x-ndjson" -d @payload.ndjson I get response…

---

## [How to capture and send error with Go APM?](https://discuss.elastic.co/t/how-to-capture-and-send-error-with-go-apm/316715)

<div class="topic-metadata">

**Author:** [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 5:09am UTC](https://discuss.elastic.co/t/how-to-capture-and-send-error-with-go-apm/316715 "2022-11-14T05:09:13Z")

</div>

I got the basics of Elastic and Kibana (version 8.4) APM for a simple go app, but I can't seem to populate the errors page when I go to Kibana\>Observability\>APM\>Services\>MyGoApp\>Errors. It always looks empty like this: …

---

## [404 error while pushing traces from OTel Exporter to APM server](https://discuss.elastic.co/t/404-error-while-pushing-traces-from-otel-exporter-to-apm-server/315795)

<div class="topic-metadata">

**Author:** [@gvencadze](https://discuss.elastic.co/u/gvencadze)\
**Replies:** 14\
**Last updated:** [October 25, 2022, 9:57pm UTC](https://discuss.elastic.co/t/404-error-while-pushing-traces-from-otel-exporter-to-apm-server/315795 "2022-10-25T21:57:06Z")

</div>

Hey guys, I've setup opentelemetry exporter in cluster, then connected services to it and see traces in exporter logs. But, when they are pushing to APM server it returns http 404 Exporting failed. The error is not retr…

---

## [How span.type is setting if using OTel exporter?](https://discuss.elastic.co/t/how-span-type-is-setting-if-using-otel-exporter/314302)

<div class="topic-metadata">

**Author:** [@gvencadze](https://discuss.elastic.co/u/gvencadze)\
**Replies:** 6\
**Last updated:** [September 23, 2022, 10:51am UTC](https://discuss.elastic.co/t/how-span-type-is-setting-if-using-otel-exporter/314302 "2022-09-23T10:51:49Z")

</div>

Hey, I'm trying to send traces over opentelemetry library and send them to Elastic APM (v7.17) via exporter. I saw that there is field in metadata that's called span.type, while using apm-go-agent, I can set value for t…

---

## [Trace don't show up if entry point isn't http func](https://discuss.elastic.co/t/trace-dont-show-up-if-entry-point-isnt-http-func/303187)

<div class="topic-metadata">

**Author:** [@gvencadze](https://discuss.elastic.co/u/gvencadze)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 7:25am UTC](https://discuss.elastic.co/t/trace-dont-show-up-if-entry-point-isnt-http-func/303187 "2022-04-26T07:25:14Z")

</div>

If we have http handler as entry point, everything is okay, and we have full trace, but if it in workers (for example), we have only transaction name and that's all. I think that I misunderstand official docs part about…

---

## [SQL traces don't catched by agent](https://discuss.elastic.co/t/sql-traces-dont-catched-by-agent/301360)

<div class="topic-metadata">

**Author:** [@Adao\_Santos](https://discuss.elastic.co/u/Adao_Santos)\
**Replies:** 9\
**Last updated:** [April 26, 2022, 2:53pm UTC](https://discuss.elastic.co/t/sql-traces-dont-catched-by-agent/301360 "2022-04-26T14:53:09Z")

</div>

Agent don't catch any trace when using GORM, PG or APMSQL modules. I follow this guide, Como fazer instrumentação do seu aplicativo Go com o agente Go do Elastic APM | Elastic Blog I use this compose to provide service…

---

## [Golang Agent Local Development Import Statements](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575)

<div class="topic-metadata">

**Author:** [@jaamish](https://discuss.elastic.co/u/jaamish)\
**Replies:** 1\
**Last updated:** [March 14, 2022, 9:29am UTC](https://discuss.elastic.co/t/golang-agent-local-development-import-statements/299575 "2022-03-14T09:29:41Z")

</div>

Hi there, I am trying to add a new database instrumentation support in golfing agent locally. But I see that by default if I add a new module in place, the import module should point to "go.elastic.co" for me to pull it …

---

## [Module/apmzap](https://discuss.elastic.co/t/module-apmzap/296154)

<div class="topic-metadata">

**Author:** [@MerNat](https://discuss.elastic.co/u/MerNat)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 9:08am UTC](https://discuss.elastic.co/t/module-apmzap/296154 "2022-02-04T09:08:17Z")

</div>

I'm trying to send logs to the APM server and thus can see it in transactions associated logs. I've simply followed the simple doc Built-in instrumentation modules | APM Go Agent Reference \[1.x\] | Elastic. Kibana versio…

---

## [APM GO Agent Capture instrumented transaction](https://discuss.elastic.co/t/apm-go-agent-capture-instrumented-transaction/293619)

<div class="topic-metadata">

**Author:** [@tarund](https://discuss.elastic.co/u/tarund)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 5:42am UTC](https://discuss.elastic.co/t/apm-go-agent-capture-instrumented-transaction/293619 "2022-01-21T05:42:12Z")

</div>

Elasticsearch version: 7.9.2 APM Server version: 7.15.0 APM Agent language and version: Go 1.x "go.elastic.co/apm" \_ "go.elastic.co/apm/module/apmlambda" Instrumented AWS Lambda function using above go apmlambda age…

---

## [After install 2 apm 7.16.2 version to each es, I found difference](https://discuss.elastic.co/t/after-install-2-apm-7-16-2-version-to-each-es-i-found-difference/293048)

<div class="topic-metadata">

**Author:** [@badtimo](https://discuss.elastic.co/u/badtimo)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 1:32pm UTC](https://discuss.elastic.co/t/after-install-2-apm-7-16-2-version-to-each-es-i-found-difference/293048 "2021-12-28T13:32:04Z")

</div>

Kibana version: 7.16.2 Elasticsearch version: 7.16.2 APM Server version: 7.16.2 APM Agent language and version: golang, 1.15 Browser version: chrome 96.0.4664.110 Original install method (e.g. download page, yu…

---

## [HTTP spans doesn't show the full information about the request](https://discuss.elastic.co/t/http-spans-doesnt-show-the-full-information-about-the-request/288908)

<div class="topic-metadata">

**Author:** [@floyola](https://discuss.elastic.co/u/floyola)\
**Replies:** 12\
**Last updated:** [November 30, 2021, 3:04pm UTC](https://discuss.elastic.co/t/http-spans-doesnt-show-the-full-information-about-the-request/288908 "2021-11-30T15:04:38Z")

</div>

Hi! I'm using Opentelemetry + Elastic. The problem that I'm facing is that the http requests child spans doesn't show the full information. The way those spans are shown aren't useful since doesn't indicates which span…

---

## [Dependencies don't show up in APM](https://discuss.elastic.co/t/dependencies-dont-show-up-in-apm/288244)

<div class="topic-metadata">

**Author:** [@Willie\_Abrams](https://discuss.elastic.co/u/Willie_Abrams)\
**Replies:** 5\
**Last updated:** [November 3, 2021, 11:15pm UTC](https://discuss.elastic.co/t/dependencies-dont-show-up-in-apm/288244 "2021-11-03T23:15:42Z")

</div>

I have an app running in Cloud Run that I am profiling with Elastic APM. I get transaction level data, all the normal APM stuff you see on the Overview page. Transactions are populated. I get Trace samples. I click on a …

---

## [How to APM data](https://discuss.elastic.co/t/how-to-apm-data/284795)

<div class="topic-metadata">

**Author:** [@tttoad](https://discuss.elastic.co/u/tttoad)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 4:03am UTC](https://discuss.elastic.co/t/how-to-apm-data/284795 "2021-09-22T04:03:29Z")

</div>

I want to get information about apm transactions through es ... Are there any examples of how to use http requests or elastic/go-elasticsearchto get data?

---

## [How to set the "MaxCallRecvMsgSize" of APM server?](https://discuss.elastic.co/t/how-to-set-the-maxcallrecvmsgsize-of-apm-server/282485)

<div class="topic-metadata">

**Author:** [@tttoad](https://discuss.elastic.co/u/tttoad)\
**Replies:** 5\
**Last updated:** [August 26, 2021, 8:16am UTC](https://discuss.elastic.co/t/how-to-set-the-maxcallrecvmsgsize-of-apm-server/282485 "2021-08-26T08:16:10Z")

</div>

openTelemetry: otlp/elastic rpc error: code = ResourceExhausted desc = grpc :received message larger than max (5454409 vs. 4194304) How to set the "MaxCallRecvMsgSize" of APM server?

---

## [How to ensure load balancing?](https://discuss.elastic.co/t/how-to-ensure-load-balancing/281020)

<div class="topic-metadata">

**Author:** [@tttoad](https://discuss.elastic.co/u/tttoad)\
**Replies:** 3\
**Last updated:** [August 17, 2021, 1:51pm UTC](https://discuss.elastic.co/t/how-to-ensure-load-balancing/281020 "2021-08-17T13:51:10Z")

</div>

Hello! I report metric data through "openTelemetry". Is the connection between "openTelemetry" and "APM" maintained for a long time (not disconnected)? In this case, how to do rolling upgrade and dynamic expansion of AP…

[Next page](https://discuss.elastic.co/tag/go/31.md?match_all_tags=true&page=1&tags%5B%5D=go)
