Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb’s low-level structured logging library for the Events API.
Libhoney for Go is Honeycomb’s structured logging library for Go applications.
It is a low-level library that helps you send structured events to Honeycomb’s Events API.
If you are instrumenting a new application for tracing, we recommend that you use OpenTelemetry instead.
Initialize the library by passing in your Team API key and the default dataset name to which it should send events.
When you call the library’s initialization routine, it spins up background threads to handle sending all the events.
You must shut down these background threads on shutdown by calling libhoney.Close().
libhoney.Init(libhoney.Config{ WriteKey: "YOUR_API_KEY", Dataset: "honeycomb-golang-example",})defer libhoney.Close() // Flush any pending calls to Honeycomb
libhoney.Config also contains an APIHost key, which defaults to Honeycomb’s API server.
Overriding this with an empty string is a good way to drop events in a test environment.
Upon calling .Send(), the event is dispatched to be sent to Honeycomb.
All libraries set defaults that will allow your application to function as smoothly as possible during error conditions.
When creating events faster than they can be sent, overflowed events will be dropped instead of backing up and slowing down your application.In its simplest form, you can add a single attribute to an event with the .AddField(k, v) method.
If you add the same key multiple times, only the last value added will be kept.More complex structures (maps and structs—things that can be serialized into a JSON object) can be added to an event with the .Add(data) method.Events can have metadata associated with them that is not sent to Honeycomb.
This metadata is used to identify the event when processing the response.
More detail about metadata is below in the Response section.
Sending an event is an asynchronous action and will avoid blocking by default.
.Send() will enqueue the event to be sent as soon as possible (thus, the return value does not indicate that the event was successfully sent).
Use the chan returned by .Responses() to check whether events were successfully received by Honeycomb’s servers.Before sending an event, you have the option to attach metadata to that event.
This metadata is not sent to Honeycomb; instead, it is used to help you match up individual responses with sent events.
When sending an event, libhoney will take the metadata from the event and attach it to the response object for you to consume.
Add metadata by populating the .Metadata attribute directly on an event.Responses have a number of fields describing the result of an attempted event send:
Metadata: the metadata you attached to the event to which this response corresponds
StatusCode: the HTTP status code returned by Honeycomb when trying to send the event.
2xx indicates success.
Duration: the time.Duration it took to send the event.
Body: the body of the HTTP response from Honeycomb.
On failures, this body contains some more information about the failure.
Err: when the event does not even get to create a HTTP attempt, the reason will be in this field.
(For example, when sampled or dropped because of a queue overflow.)
You do not have to process responses if you are not interested in them—simply ignoring them is perfectly safe.
Unread responses will be dropped.
Honeycomb can calculate all sorts of statistics, so send the data you care about and let us crunch the averages, percentiles, lower/upper bounds, cardinality—whatever you want—for you.
You do not need to know all of the fields that should be added to an event up front.
In fact, it is very common to add fields to an event as circumstances change or as new information comes in.
For example, you might want to indicate success or failure, and if a failure occurred, you will want to submit the associated error message.
import "github.com/honeycombio/libhoney-go"func main() { // Call Init to configure libhoney libhoney.Init(libhoney.Config{ WriteKey: "YOUR_WRITE_KEY", Dataset: "honeycomb-golang-example", }) // Flush any pending calls to Honeycomb before exiting defer libhoney.Close() // Create an event, add some data ev := libhoney.NewEvent() ev.Add(map[string]interface{}{ "method": "get", "hostname": "appserver15", "payload_length": 27, })) // This event will be sent regardless of how we exit defer ev.Send() if err := myOtherFunc(); err != nil { ev.AddField("error", err.Error()) ev.AddField("success", false) return } // do some work, maybe measure some things ev.AddField("duration_ms", 153.12) ev.AddField("success", true)}
Builders are, at their simplest, a convenient way to avoid repeating common attributes that may not apply globally.
Creating a builder for a given component allows a variety of different events to be spawned and sent within the component, without having to repeat the component name as an attribute for each.You can clone builders—the cloned builder will have a copy of all the fields and dynamic fields in the original.
As your application forks down into more and more specific functionality, you can create more detailed builders.
The final event creation in the leaves of your application’s tree will have all the data you have added along the way in addition to the specifics of this event.The global scope is essentially a specialized builder, for capturing attributes that are likely useful to all events (for example, hostname or environment).
Adding this kind of peripheral and normally unavailable information to every event gives you enormous power to identify patterns that would otherwise be invisible in the context of a single request.
The top-level libhoney and Builders support .AddDynamicField(func).
Adding a dynamic field to a Builder or top-level libhoney ensures that each time an event is created, the provided function is executed and the returned key/value pair is added to the event.
This may be useful for including dynamic process information such as memory used, number of threads, concurrent requests, and so on to each event.
Adding this kind of dynamic data to an event makes it easy to understand the application’s context when looking at an individual event or error condition.
Features, bug fixes and other changes to libhoney are gladly accepted.
Please open issues or a pull request with your change.
Remember to add your name to the CONTRIBUTORS file!All contributions will be released under the Apache License 2.0.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Honeycomb Docs","colors":{"primary":"#0298ec","light":"#0298ec","dark":"#0160a4"},"logo":{"light":"https://mintcdn.com/honeycomb/TYbxiKcJ1fL3Sm5n/_assets/logos/light.svg?fit=max\u0026auto=format\u0026n=TYbxiKcJ1fL3Sm5n\u0026q=85\u0026s=27a1eaed720bce94471b9408761a57a5","dark":"https://mintcdn.com/honeycomb/TYbxiKcJ1fL3Sm5n/_assets/logos/dark.svg?fit=max\u0026auto=format\u0026n=TYbxiKcJ1fL3Sm5n\u0026q=85\u0026s=37c10aab54c3f49068831ba2b3f72519"},"favicon":"https://mintcdn.com/honeycomb/FS58DPvSVOqwGF9Q/favicon.ico?fit=max\u0026auto=format\u0026n=FS58DPvSVOqwGF9Q\u0026q=85\u0026s=f2dcbbe978265dbef9b3e5c895466dfc","navbar":{"links":[{"href":"https://status.honeycomb.io/","label":"Status"},{"href":"https://support.honeycomb.io/","label":"Support"}],"primary":{"type":"button","label":"Log in to Honeycomb","href":"https://ui.honeycomb.io/"}},"footer":{"socials":{"bluesky":"https://bsky.app/profile/honeycomb.io","github":"https://github.com/honeycombio","linkedin":"https://linkedin.com/company/honeycomb.io","youtube":"https://www.youtube.com/channel/UCty8KGQ3oAP0MQQmLIv7k0Q"}},"fonts":{"heading":{"family":"Roboto","weight":600},"body":{"family":"Roboto","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{},"latex":true},"integrations":{"amplitude":{"apiKey":"3b49e4f1b31c8cc751801eb555172ee7"},"ga4":{"measurementId":"G-6GB1G2KSLD"},"plausible":{"domain":"docs.honeycomb.io","server":"stats.honeycomb.io"},"telemetry":{"enabled":true},"cookies":{"key":"honeycomb_docs_consent","value":"yes"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Docs Home","icon":"home","href":"/"},{"anchor":"Blog","icon":"bullhorn","href":"https://www.honeycomb.io/blog"},{"anchor":"Honeycomb Academy","icon":"book","href":"https://academy.honeycomb.io/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"honeycomb","hasAudioNarration":false,"actualSubdomain":"honeycomb","customDomains":["docs.honeycomb.io"],"gitSource":{"type":"github","owner":"honeycombio","repo":"docs","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae36b78da69a4c580ba6e85","collectionId":"97922678-a54f-4f6e-9745-0805daf8d120","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae36b78da69a4c580ba6e85"},"feedback":{"thumbs":true,"contextualFeedback":{"allowEmail":false}},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED","enabled":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED","enabled":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae36b78da69a4c580ba6e85","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Send Data","count":234},{"language":"default","tag":"Manage Pipelines","count":148},{"language":"default","tag":"Honeycomb Telemetry Pipeline","count":145},{"language":"default","tag":"Pipeline Manager","count":142},{"language":"default","tag":"API Reference","count":108},{"language":"default","tag":"Sources","count":93},{"language":"default","tag":"API Endpoints","count":90},{"language":"default","tag":"Investigate","count":65},{"language":"default","tag":"Get Started","count":62},{"language":"default","tag":"Processors","count":41}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"_assets/stylesheets/badges.css","content":"[class*=hny-badge-]{background-color:var(--hny-badge-bg)!important;color:var(--hny-badge-text)!important;border-color:var(--hny-badge-bg)!important;min-width:4rem!important;height:1.75rem!important;justify-content:center!important;align-items:center!important}[class*=hny-badge-].border,html.dark [class*=hny-badge-].border{background-color:transparent!important;border-color:var(--hny-badge-text)!important}html.dark [class*=hny-badge-]{background-color:var(--hny-badge-bg-dark)!important;color:var(--hny-badge-text-dark)!important;border-color:var(--hny-badge-bg-dark)!important}html.dark [class*=hny-badge-].border{border-color:var(--hny-badge-text-dark)!important;color:var(--hny-badge-text-dark)!important}@media (prefers-color-scheme:dark){html:not(.light) [class*=hny-badge-]{background-color:var(--hny-badge-bg-dark)!important;color:var(--hny-badge-text-dark)!important;border-color:var(--hny-badge-bg-dark)!important}html:not(.light) [class*=hny-badge-].border{background-color:transparent!important;border-color:var(--hny-badge-text-dark)!important;color:var(--hny-badge-text-dark)!important}}.hny-badge-enterprise,.hny-badge-enterprise-addon{--hny-badge-bg:#EAE6F1;--hny-badge-text:#302054;--hny-badge-bg-dark:#60606F;--hny-badge-text-dark:#FFFFFF}.hny-badge-pro{--hny-badge-bg:#E0F2FC;--hny-badge-text:#015B8D;--hny-badge-bg-dark:#163144;--hny-badge-text-dark:#1BA2ED}.hny-badge-beta,.hny-badge-early-access{--hny-badge-bg:#FEEDE2;--hny-badge-text:#954209;--hny-badge-bg-dark:#3B2A23;--hny-badge-text-dark:#F97C27}"},{"filePath":"_assets/stylesheets/icons.css","content":".hny-icon{background-color:var(--hny-icon-color)}"},{"filePath":"_assets/stylesheets/images.css","content":".dark img[src^=http]:not(.nav-logo){background-color:transparent;border-radius:0;padding:0}[data-rmiz-content] img,[data-rmiz-modal-img]{background-color:transparent;box-sizing:border-box;border-radius:.4rem}a.card{border-radius:0!important}a.card img[data-component-part=card-image]{object-fit:contain!important}.dark .integration-logo-invert{filter:invert(1)}.integration-logo-grayscale{filter:grayscale(1)}.dark .integration-logo-grayscale.integration-logo-invert{filter:grayscale(1) invert(1)}"},{"filePath":"_assets/stylesheets/kapa.css","content":"#kapa-ask-ai-btn{display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;height:2.25rem;padding:0 1rem;margin-left:.5rem;border-radius:.75rem;border:0;background:0 0;box-shadow:0 0 0 1px rgba(156,163,175,.3);color:#6b7280;font-size:.875rem;cursor:pointer;white-space:nowrap;transition:box-shadow .15s ease}#kapa-ask-ai-btn:hover,.dark #kapa-ask-ai-btn{box-shadow:0 0 0 1px rgba(75,85,99,.3)}.kapa-btn-icon svg{width:16px;height:16px}.kapa-btn-icon svg path{fill:#6b7280}.dark .kapa-btn-icon svg path{fill:rgba(255,255,255,.5)}.dark #kapa-ask-ai-btn{color:rgba(255,255,255,.5)}.dark #kapa-ask-ai-btn:hover{box-shadow:0 0 0 1px rgba(107,114,128,.3)}.dark #kapa-ask-ai-btn img{filter:invert(1) opacity(.5)}"},{"filePath":"_assets/stylesheets/links.css","content":".prose a[href^=http]:not(.card):not(:has(img))::after{content:\"↗\";font-size:.75em;vertical-align:baseline;margin-left:2px}"},{"filePath":"_assets/stylesheets/style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_SeW4Ep0.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_QOW4Ep0.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_R-W4Ep0.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_S-W4Ep0.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_SuW4Ep0.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_ROW4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n.nav-logo{height:2.5rem!important}.prose,.prose-gray{--tw-prose-body:var(--lat-color-foreground-primary-default);--tw-prose-headings:var(--lat-color-foreground-primary-default);--tw-prose-lead:var(--lat-color-foreground-secondary-default);--tw-prose-links:var(--lat-color-foreground-link-default);--tw-prose-bold:var(--lat-color-foreground-primary-default);--tw-prose-invert-body:var(--lat-color-foreground-inverse-default);--tw-prose-invert-headings:var(--lat-color-foreground-inverse-default);--tw-prose-invert-lead:var(--lat-color-foreground-inverse-secondary);--tw-prose-invert-links:var(--lat-color-foreground-inverse-link-default);--tw-prose-invert-bold:var(--lat-color-foreground-inverse-default)}.prose{color:var(--lat-color-foreground-primary-default)!important;line-height:var(--lat-ref-font-line-height-5)!important}#page-title,.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--lat-color-foreground-primary-default)!important;font-weight:var(--lat-ref-font-weight-500)!important;font-size:var(--lat-ref-font-size-700)!important;line-height:var(--lat-ref-font-line-height-8)!important}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--lat-color-foreground-primary-default)!important;font-weight:var(--lat-ref-font-weight-600)!important;font-size:var(--lat-ref-font-size-600)!important;line-height:var(--lat-ref-font-line-height-6)!important}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--lat-color-foreground-primary-default)!important;font-weight:var(--lat-ref-font-weight-600)!important;font-size:var(--lat-ref-font-size-500)!important;line-height:var(--lat-ref-font-line-height-5)!important}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:var(--lat-ref-font-weight-400)!important;line-height:var(--lat-ref-font-line-height-4)!important}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--lat-color-foreground-primary-default)!important;font-weight:600!important}th{color:var(--lat-color-foreground-primary-default)!important}.prose a.link{border-color:var(--lat-color-foreground-link-default)}.font-mono,code,kbd,pre,samp{font-family:var(--lat-ref-font-family-roboto-mono)}code,kbd,pre,samp{font-feature-settings:normal;font-variation-settings:normal;font-size:1em}.sidebar-group{margin-top:.05rem}a.card{border-radius:var(--lat-border-radius-xsmall)!important}"},{"filePath":"_assets/stylesheets/tables.css","content":".schema-table table{font-family:var(--hny-font-mono);font-size:var(--hny-font-mono-size);width:fit-content;min-width:unset}.permissions-table table,.permissions-table td,.permissions-table th{border:0}.flex-style-table table,.permissions-table table{width:100%}.permissions-table tbody tr:nth-child(even),.permissions-table thead tr:nth-child(odd){background-color:var(--hny-table-stripe)}.permissions-table th{padding:var(--hny-permissions-header-padding-v, 10px) .75rem;text-align:center}.permissions-table th:first-child{text-align:left}.permissions-table td{text-align:center;padding-top:var(--hny-permissions-cell-padding-v, 5px);padding-bottom:var(--hny-permissions-cell-padding-v, 5px);padding-left:.75rem;padding-right:.75rem}.permissions-table td:first-child{width:var(--hny-permissions-col1-width, 50%);text-align:left}"},{"filePath":"_assets/stylesheets/tokens.css","content":":root{--hny-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco,\n Consolas, \"Liberation Mono\", \"Courier New\",\n monospace;--hny-font-mono-size:0.8rem;--hny-permissions-col1-width:50%;--hny-permissions-cell-padding-v:5px;--hny-permissions-header-padding-v:10px}html.light{--hny-table-stripe:rgba(107, 114, 128, 0.1);--hny-icon-color:#33383F}html.dark{--hny-table-stripe:#1e2128;--hny-icon-color:#C9CDD2}@media (prefers-color-scheme:dark){html.dark{--hny-table-stripe:#1e2128;--hny-icon-color:#C9CDD2}}"},{"filePath":"_assets/stylesheets/mermaid.css","content":".mermaid .label{font-size:.875rem!important;padding:1rem .25rem!important}foreignObject>div>span>p{font-size:.75rem!important;padding:.25rem!important;text-align:justified!important}"},{"filePath":"_assets/stylesheets/sidebar.css","content":"ul.list-none{padding-bottom:1rem;border-bottom:1px solid rgb(107 114 128/.4)}.nav-anchor{margin-bottom:.25rem}#navigation-items>ul.sidebar-group{border-top:.5px solid var(--border-color);padding-top:1rem}div.sidebar-group-header{margin-top:-.5rem;margin-bottom:.1rem;text-transform:uppercase;letter-spacing:.01rem}div.sidebar-group{margin-bottom:1rem;font-size:.9rem}#sidebar-content li>a,#sidebar-content li>button,#sidebar-content li[data-active]>button{padding-top:.1rem;padding-bottom:.1rem;font-size:.9rem}#navigation-items>ul.sidebar-group:last-of-type{margin-top:0!important;padding-top:0!important}#navigation-items>ul.sidebar-group:nth-last-of-type(2){border-top:1px solid var(--border-color);padding-top:1rem;margin-top:1rem!important}.nav-tag-pill{min-width:2rem;text-align:center}.flex-1.flex.min-w-0.flex-wrap{flex-wrap:nowrap}.nav-tag-pill-text{text-transform:uppercase;background:0 0;padding:0;border-left:1px solid currentColor;border-radius:0;padding-left:.25rem}#sidebar-content a[href^=\"https://docs.honeycomb.io\"]::after,#sidebar-content a[href^=\"https://docs.honeycomb.io/\"] svg{display:none}"},{"filePath":"_assets/stylesheets/tabs.css","content":".hny-client-tabs>.tabs.tab-container>ul[data-component-part=tabs-list]{border-bottom:none;flex-wrap:wrap;gap:8px;margin-bottom:.375rem!important}.hny-client-tabs>.tabs.tab-container>ul[data-component-part=tabs-list]>li{list-style:none}.hny-client-tabs>.tabs.tab-container>ul[data-component-part=tabs-list]>li [data-component-part=tab-button]{border:1px solid #b9c2cc;border-radius:6px;padding:6px 14px!important;margin-bottom:0!important;color:#25303e;font-weight:500}.hny-client-tabs>.tabs.tab-container>ul[data-component-part=tabs-list]>li [data-component-part=tab-button][data-active=true]{background:#0160a4;border-color:#0160a4;color:#fff}.dark .hny-client-tabs>.tabs.tab-container>ul[data-component-part=tabs-list]>li [data-component-part=tab-button]{border-color:#4b5563;color:#e5e7eb}.hny-client-tabs>.tabs.tab-container>div>[data-component-part=tab-content]{border:1px solid #cbd5e1;border-radius:12px;padding:1.25rem 1.5rem;margin-top:.75rem}.dark .hny-client-tabs>.tabs.tab-container>div>[data-component-part=tab-content]{border-color:#475569!important}.hny-client-tabs [data-component-part=tab-button]:focus-visible{outline:2px solid #0298ec;outline-offset:2px}"},{"filePath":"_assets/stylesheets/_tokens.css","content":":root{--lat-ref-border-radius-0:0px;--lat-ref-border-radius-50:2px;--lat-ref-border-radius-75:3px;--lat-ref-border-radius-100:4px;--lat-ref-border-radius-200:8px;--lat-ref-border-radius-300:12px;--lat-ref-border-radius-400:16px;--lat-ref-border-radius-2000:80px;--lat-ref-border-width-0:0px;--lat-ref-border-width-25:1px;--lat-ref-border-width-50:2px;--lat-ref-color-blue-500:#225dbe;--lat-ref-color-blue-600:#1c4c9c;--lat-ref-color-blue-700:#0f3880;--lat-ref-color-blue-800:#002566;--lat-ref-color-blue-900:#00173e;--lat-ref-color-gold-100:#ffeab2;--lat-ref-color-gold-1000:#a94a04;--lat-ref-color-gold-1100:#7a3302;--lat-ref-color-gold-200:#ffdd81;--lat-ref-color-gold-300:#ffd14d;--lat-ref-color-gold-400:#ffc626;--lat-ref-color-gold-50:#fffae1;--lat-ref-color-gold-500:#ffbc04;--lat-ref-color-gold-600:#ffb000;--lat-ref-color-gold-700:#ff9b03;--lat-ref-color-gold-800:#fe8a04;--lat-ref-color-gold-900:#f26905;--lat-ref-color-gray-100:#ebeff4;--lat-ref-color-gray-1000:#1e2023;--lat-ref-color-gray-1050:#1b1d20;--lat-ref-color-gray-1100:#191a1b;--lat-ref-color-gray-200:#dee3ec;--lat-ref-color-gray-300:#c9d1df;--lat-ref-color-gray-400:#b0baca;--lat-ref-color-gray-50:#f5f7fa;--lat-ref-color-gray-500:#8f94a9;--lat-ref-color-gray-600:#717a89;--lat-ref-color-gray-700:#59606d;--lat-ref-color-gray-800:#444a53;--lat-ref-color-gray-850:#3c4149;--lat-ref-color-gray-900:#33383f;--lat-ref-color-gray-950:#272b30;--lat-ref-color-green-100:#d8efc0;--lat-ref-color-green-1000:#005700;--lat-ref-color-green-200:#bde596;--lat-ref-color-green-300:#a1db6a;--lat-ref-color-green-400:#8ad243;--lat-ref-color-green-50:#eff9e6;--lat-ref-color-green-500:#73ca0d;--lat-ref-color-green-600:#64ba00;--lat-ref-color-green-700:#4ca600;--lat-ref-color-green-800:#329200;--lat-ref-color-green-900:#007000;--lat-ref-color-indigo-100:#d3cdf0;--lat-ref-color-indigo-1000:#100e38;--lat-ref-color-indigo-200:#b4ace6;--lat-ref-color-indigo-300:#9186d9;--lat-ref-color-indigo-400:#7165cc;--lat-ref-color-indigo-50:#edeaf8;--lat-ref-color-indigo-500:#5549be;--lat-ref-color-indigo-600:#4538a8;--lat-ref-color-indigo-700:#362c8f;--lat-ref-color-indigo-800:#282275;--lat-ref-color-indigo-900:#1b185a;--lat-ref-color-miscellaneous-charcoal:#191a1b;--lat-ref-color-miscellaneous-white:#ffffff;--lat-ref-color-pink-100:#fad4e9;--lat-ref-color-pink-1000:#3e0827;--lat-ref-color-pink-200:#f5b0d5;--lat-ref-color-pink-300:#ee84bb;--lat-ref-color-pink-400:#e563a5;--lat-ref-color-pink-50:#fdeef6;--lat-ref-color-pink-500:#dc4d90;--lat-ref-color-pink-600:#c23a7c;--lat-ref-color-pink-700:#a22868;--lat-ref-color-pink-800:#821a53;--lat-ref-color-pink-900:#61103d;--lat-ref-color-purple-100:#dfd3eb;--lat-ref-color-purple-1000:#2e1260;--lat-ref-color-purple-200:#cbb8df;--lat-ref-color-purple-300:#b89bce;--lat-ref-color-purple-400:#ac8dc7;--lat-ref-color-purple-50:#f7f3fb;--lat-ref-color-purple-500:#9b77c2;--lat-ref-color-purple-600:#8659b4;--lat-ref-color-purple-700:#6a37a1;--lat-ref-color-purple-800:#54298f;--lat-ref-color-purple-900:#431e80;--lat-ref-color-red-100:#f7d2d7;--lat-ref-color-red-1000:#85322e;--lat-ref-color-red-200:#e4a3a5;--lat-ref-color-red-300:#d78184;--lat-ref-color-red-400:#e16767;--lat-ref-color-red-50:#fbedf0;--lat-ref-color-red-500:#e65b53;--lat-ref-color-red-600:#d75450;--lat-ref-color-red-700:#c54b49;--lat-ref-color-red-800:#b74643;--lat-ref-color-red-900:#a63f3a;--lat-ref-color-sky-100:#b9def8;--lat-ref-color-sky-1000:#002f7a;--lat-ref-color-sky-200:#8dcaf5;--lat-ref-color-sky-300:#60b5f0;--lat-ref-color-sky-400:#3aa5ee;--lat-ref-color-sky-50:#e3f2fc;--lat-ref-color-sky-500:#0296ec;--lat-ref-color-sky-600:#0088df;--lat-ref-color-sky-700:#0077cc;--lat-ref-color-sky-800:#0066ba;--lat-ref-color-sky-900:#00489c;--lat-ref-color-teal-100:#cce8f0;--lat-ref-color-teal-1000:#023040;--lat-ref-color-teal-200:#aad8e6;--lat-ref-color-teal-300:#7ec3d8;--lat-ref-color-teal-400:#50adc8;--lat-ref-color-teal-50:#eaf6f7;--lat-ref-color-teal-500:#2297b6;--lat-ref-color-teal-600:#0d83a0;--lat-ref-color-teal-700:#0a6d87;--lat-ref-color-teal-800:#085870;--lat-ref-color-teal-900:#054558;--lat-ref-size-0:0px;--lat-ref-size-100:4px;--lat-ref-size-200:8px;--lat-ref-size-300:12px;--lat-ref-size-400:16px;--lat-ref-size-500:20px;--lat-ref-size-600:24px;--lat-ref-size-700:28px;--lat-ref-size-800:32px;--lat-ref-size-900:36px;--lat-ref-size-1000:40px;--lat-ref-size-1100:44px;--lat-ref-size-1200:48px;--lat-ref-size-1300:52px;--lat-ref-size-1400:56px;--lat-ref-size-1500:60px;--lat-ref-size-1600:64px;--lat-ref-size-2000:80px;--lat-ref-space-0:0px;--lat-ref-space-1:2px;--lat-ref-space-2:4px;--lat-ref-space-3:8px;--lat-ref-space-4:12px;--lat-ref-space-5:16px;--lat-ref-space-6:20px;--lat-ref-space-7:24px;--lat-ref-space-8:28px;--lat-ref-space-9:32px;--lat-ref-space-10:36px;--lat-ref-space-11:40px;--lat-ref-space-12:44px;--lat-ref-space-13:48px;--lat-ref-font-line-height-0:0rem;--lat-ref-font-line-height-1:1rem;--lat-ref-font-line-height-2:1.125rem;--lat-ref-font-line-height-3:1.25rem;--lat-ref-font-line-height-4:1.375rem;--lat-ref-font-line-height-5:1.5rem;--lat-ref-font-line-height-6:1.875rem;--lat-ref-font-line-height-7:2.25rem;--lat-ref-font-line-height-8:2.5rem;--lat-ref-font-size-100:0.625rem;--lat-ref-font-size-200:0.75rem;--lat-ref-font-size-300:0.875rem;--lat-ref-font-size-400:1rem;--lat-ref-font-size-500:1.25rem;--lat-ref-font-size-600:1.5rem;--lat-ref-font-size-700:2rem;--lat-ref-font-weight-400:400;--lat-ref-font-weight-500:500;--lat-ref-font-weight-600:600;--lat-ref-font-weight-700:700;--lat-ref-font-family-poppins:'Poppins', Arial, Helvetica, sans-serif;--lat-ref-font-family-roboto:'Roboto', Arial, Helvetica, sans-serif;--lat-ref-font-family-roboto-mono:'Roboto Mono', monospace}.light,:root{--lat-border-radius-zero:0px;--lat-border-radius-xsmall:2px;--lat-border-radius-small:4px;--lat-border-radius-medium:8px;--lat-border-radius-primary-default:8px;--lat-border-radius-secondary-default:12px;--lat-border-radius-container:8px;--lat-border-radius-control-small:4px;--lat-border-radius-circle:80px;--lat-border-width-zero:0px;--lat-border-width-primary-default:1px;--lat-border-width-secondary-default:2px;--lat-color-background-critical-bold:var(--lat-ref-color-red-700);--lat-color-background-critical-bolder:var(--lat-ref-color-red-800);--lat-color-background-critical-boldest:var(--lat-ref-color-red-900);--lat-color-background-critical-default:var(--lat-ref-color-red-100);--lat-color-background-critical-hover:var(--lat-ref-color-red-200);--lat-color-background-critical-subtle:var(--lat-ref-color-red-300);--lat-color-background-informational-default:var(--lat-ref-color-sky-100);--lat-color-background-informational-hover:var(--lat-ref-color-sky-200);--lat-color-background-informational-subtle:var(--lat-ref-color-sky-300);--lat-color-background-interactive-active:var(--lat-ref-color-sky-900);--lat-color-background-interactive-default:var(--lat-ref-color-sky-700);--lat-color-background-interactive-disabled:var(--lat-ref-color-gray-100);--lat-color-background-interactive-hover:var(--lat-ref-color-sky-800);--lat-color-background-inverse-active:var(--lat-ref-color-gray-700);--lat-color-background-inverse-default:var(--lat-ref-color-gray-950);--lat-color-background-inverse-disabled:var(--lat-ref-color-gray-1050);--lat-color-background-inverse-hover:var(--lat-ref-color-gray-900);--lat-color-background-neutral-active:var(--lat-ref-color-sky-50);--lat-color-background-neutral-bold:var(--lat-ref-color-gray-400);--lat-color-background-neutral-bolder:var(--lat-ref-color-gray-600);--lat-color-background-neutral-boldest:var(--lat-ref-color-gray-800);--lat-color-background-neutral-default:var(--lat-ref-color-gray-100);--lat-color-background-neutral-disabled:var(--lat-ref-color-gray-200);--lat-color-background-neutral-hover:var(--lat-ref-color-gray-300);--lat-color-background-neutral-subtle:var(--lat-ref-color-gray-300);--lat-color-background-pink-default:var(--lat-ref-color-pink-100);--lat-color-background-primary-active:var(--lat-ref-color-sky-50);--lat-color-background-primary-default:var(--lat-ref-color-miscellaneous-white);--lat-color-background-primary-disabled:var(--lat-ref-color-gray-100);--lat-color-background-primary-hover:var(--lat-ref-color-gray-50);--lat-color-background-primary-selected:var(--lat-ref-color-gray-200);--lat-color-background-purple-default:var(--lat-ref-color-purple-100);--lat-color-background-secondary-default:var(--lat-ref-color-gray-50);--lat-color-background-secondary-hover:var(--lat-ref-color-gray-200);--lat-color-background-secondary-selected:var(--lat-ref-color-sky-700);--lat-color-background-success-bold:var(--lat-ref-color-green-400);--lat-color-background-success-bolder:var(--lat-ref-color-green-600);--lat-color-background-success-default:var(--lat-ref-color-green-100);--lat-color-background-success-hover:var(--lat-ref-color-green-200);--lat-color-background-success-subtle:var(--lat-ref-color-green-300);--lat-color-background-teal-default:var(--lat-ref-color-teal-100);--lat-color-background-warning-default:var(--lat-ref-color-gold-100);--lat-color-background-warning-hover:var(--lat-ref-color-gold-200);--lat-color-background-warning-subtle:var(--lat-ref-color-gold-300);--lat-color-border-contrast:var(--lat-ref-color-miscellaneous-white);--lat-color-border-contrast-focus:var(--lat-ref-color-miscellaneous-white);--lat-color-border-critical-default:var(--lat-ref-color-red-1000);--lat-color-border-critical-subtle:var(--lat-ref-color-red-1000);--lat-color-border-focus:var(--lat-ref-color-sky-700);--lat-color-border-informational-default:var(--lat-ref-color-sky-800);--lat-color-border-informational-subtle:var(--lat-ref-color-sky-900);--lat-color-border-inverse-active:var(--lat-ref-color-gray-600);--lat-color-border-inverse-default:var(--lat-ref-color-gray-400);--lat-color-border-inverse-disabled:var(--lat-ref-color-gray-700);--lat-color-border-inverse-focus:var(--lat-ref-color-sky-400);--lat-color-border-inverse-hover:var(--lat-ref-color-gray-500);--lat-color-border-neutral-subtle:var(--lat-ref-color-gray-900);--lat-color-border-neutral-subtlest:var(--lat-ref-color-gray-100);--lat-color-border-primary-active:var(--lat-ref-color-gray-700);--lat-color-border-primary-default:var(--lat-ref-color-gray-300);--lat-color-border-primary-disabled:var(--lat-ref-color-gray-200);--lat-color-border-primary-hover:var(--lat-ref-color-gray-700);--lat-color-border-secondary-default:var(--lat-ref-color-gray-600);--lat-color-border-success-default:var(--lat-ref-color-green-900);--lat-color-border-success-subtle:var(--lat-ref-color-green-1000);--lat-color-border-transparent:#ffffff00;--lat-color-border-warning-default:var(--lat-ref-color-gold-1000);--lat-color-border-warning-subtle:var(--lat-ref-color-gold-1100);--lat-color-foreground-critical-default:var(--lat-ref-color-red-1000);--lat-color-foreground-critical-hover:var(--lat-ref-color-red-900);--lat-color-foreground-critical-subtle:var(--lat-ref-color-red-1000);--lat-color-foreground-informational-default:var(--lat-ref-color-sky-900);--lat-color-foreground-informational-subtle:var(--lat-ref-color-sky-900);--lat-color-foreground-inverse-critical-default:var(--lat-ref-color-red-300);--lat-color-foreground-inverse-default:var(--lat-ref-color-miscellaneous-white);--lat-color-foreground-inverse-disabled:var(--lat-ref-color-gray-700);--lat-color-foreground-inverse-link-active:var(--lat-ref-color-sky-300);--lat-color-foreground-inverse-link-default:var(--lat-ref-color-sky-200);--lat-color-foreground-inverse-link-hover:var(--lat-ref-color-sky-300);--lat-color-foreground-inverse-link-visited:var(--lat-ref-color-purple-300);--lat-color-foreground-inverse-secondary:var(--lat-ref-color-gray-300);--lat-color-foreground-inverse-success-default:var(--lat-ref-color-green-500);--lat-color-foreground-inverse-warning-default:var(--lat-ref-color-gold-500);--lat-color-foreground-link-active:var(--lat-ref-color-blue-700);--lat-color-foreground-link-default:var(--lat-ref-color-sky-900);--lat-color-foreground-link-hover:var(--lat-ref-color-blue-700);--lat-color-foreground-link-visited:var(--lat-ref-color-purple-700);--lat-color-foreground-neutral-default:var(--lat-ref-color-gray-700);--lat-color-foreground-neutral-subtle:var(--lat-ref-color-gray-900);--lat-color-foreground-pink-boldest:var(--lat-ref-color-pink-1000);--lat-color-foreground-primary-default:var(--lat-ref-color-gray-900);--lat-color-foreground-primary-disabled:var(--lat-ref-color-gray-600);--lat-color-foreground-purple-boldest:var(--lat-ref-color-purple-1000);--lat-color-foreground-secondary-default:var(--lat-ref-color-gray-700);--lat-color-foreground-secondary-disabled:var(--lat-ref-color-gray-600);--lat-color-foreground-success-boldest:var(--lat-ref-color-green-1000);--lat-color-foreground-success-default:var(--lat-ref-color-green-900);--lat-color-foreground-teal-boldest:var(--lat-ref-color-teal-1000);--lat-color-foreground-warning-boldest:var(--lat-ref-color-gold-1100);--lat-color-foreground-warning-default:var(--lat-ref-color-gold-1000);--lat-color-page-primary:var(--lat-ref-color-miscellaneous-white);--lat-color-page-secondary:var(--lat-ref-color-gray-50);--lat-gradient-rainbow:linear-gradient(90deg, #F96E10, #FFC305, #FFE84F, #78E898, #3EDFFF, #0298EC);--lat-motion-duration-instant:100ms;--lat-motion-duration-fast:150ms;--lat-motion-duration-moderate:200ms;--lat-motion-duration-slow:300ms;--lat-motion-duration-deliberate:500ms;--lat-motion-ease-standard:cubic-bezier(0.4, 0, 0.2, 1);--lat-motion-ease-entrance:cubic-bezier(0.16, 1, 0.3, 1);--lat-motion-ease-exit:cubic-bezier(0.4, 0, 1, 1);--lat-motion-spin-fast:1s;--lat-motion-spin-slow:2.5s;--lat-motion-pulse-slow:1.4s;--lat-motion-type-chart:35ms;--lat-motion-type-erase:20ms;--lat-motion-type-pause:1200ms;--lat-shadow-popover:0 1px 2px rgba(25, 26, 27, 0.06), 0 2px 6px rgba(25, 26, 27, 0.08);--lat-shadow-focus:0 4px 4px rgba(0, 0, 0, 0.12);--lat-shadow-tooltip:0 1px 2px rgba(25, 26, 27, 0.06), 0 2px 6px rgba(25, 26, 27, 0.08);--lat-shadow-small:0 1px 2px rgba(25, 26, 27, 0.06), 0 2px 6px rgba(25, 26, 27, 0.08);--lat-shadow-medium:0 2px 4px rgba(25, 26, 27, 0.06), 0 6px 16px rgba(25, 26, 27, 0.10);--lat-shadow-large:0 4px 8px rgba(25, 26, 27, 0.08), 0 12px 28px rgba(25, 26, 27, 0.14);--lat-shadow-overflow-left:-4px 0 8px rgba(25, 26, 27, 0.08);--lat-shadow-overflow-right:4px 0 8px rgba(25, 26, 27, 0.08);--lat-shadow-overflow-bottom:0 4px 8px rgba(25, 26, 27, 0.08);--lat-size-x0:0px;--lat-size-x1:4px;--lat-size-x2:8px;--lat-size-x3:12px;--lat-size-x4:16px;--lat-size-x5:20px;--lat-size-x6:24px;--lat-size-x7:28px;--lat-size-x8:32px;--lat-size-x9:36px;--lat-size-x10:40px;--lat-size-x11:44px;--lat-size-x12:48px;--lat-size-x13:52px;--lat-size-x14:56px;--lat-size-x15:60px;--lat-size-x16:64px;--lat-size-x20:80px;--lat-space-inline-text:4px;--lat-space-text-to-separator-padding:4px;--lat-space-trigger-to-anchor:4px;--lat-space-gutter-s:8px;--lat-space-text-to-text-s:8px;--lat-space-trigger-s:8px;--lat-space-card-padding:12px;--lat-space-form-s:12px;--lat-space-gutter-m:12px;--lat-space-text-to-component-s:12px;--lat-space-text-to-text-m:12px;--lat-space-trigger-m:12px;--lat-space-form-m:16px;--lat-space-section-s:16px;--lat-space-text-to-component-m:16px;--lat-space-section-m:20px;--lat-space-modal-padding:24px;--lat-space-page-padding:24px;--lat-space-pane:24px;--lat-space-x0:0px;--lat-space-x1:4px;--lat-space-x2:8px;--lat-space-x3:12px;--lat-space-x4:16px;--lat-space-x5:20px;--lat-space-x6:24px;--lat-space-x7:28px;--lat-space-x8:32px;--lat-space-x9:36px;--lat-space-x10:40px;--lat-space-x11:44px;--lat-space-x12:48px;--lat-text-body-default:400 0.875rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-default-italic:italic 400 0.875rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-default-medium:500 0.875rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-small:400 0.75rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-small-medium:500 0.75rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-large:400 1rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-large-italic:italic 400 1rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-body-large-medium:500 1rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-code-small:400 0.75rem 'Roboto Mono', monospace;--lat-text-code-medium:400 0.875rem 'Roboto Mono', monospace;--lat-text-heading-1:600 2rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-heading-2:600 1.5rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-heading-3:600 1.25rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-heading-4:600 1rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-heading-5:600 0.875rem 'Roboto', Arial, Helvetica, sans-serif;--lat-text-heading-6:600 0.75rem 'Roboto', Arial, Helvetica, sans-serif;--lat-z-base:0;--lat-z-sticky:50;--lat-z-chrome:100;--lat-z-overlay:500;--lat-z-modal:600;--lat-z-popover:1000;--lat-z-toast:1500;--lat-z-tooltip:2000;--lat-comp-badge-background-critical-bold:var(--lat-color-background-critical-bold);--lat-comp-badge-background-critical-default:#d781844d;--lat-comp-badge-background-informational-default:#60b5f04d;--lat-comp-badge-background-neutral-default:#c9d1df4d;--lat-comp-badge-background-success-default:#a1db6a4d;--lat-comp-badge-background-warning-default:#ffd14d4d;--lat-comp-badge-border-contrast-default:var(--lat-color-border-contrast);--lat-comp-badge-foreground-critical-default:var(--lat-color-foreground-critical-subtle);--lat-comp-badge-foreground-informational-default:var(--lat-color-foreground-informational-subtle);--lat-comp-badge-foreground-inverse-default:var(--lat-color-foreground-inverse-default);--lat-comp-badge-foreground-neutral-default:var(--lat-color-foreground-neutral-subtle);--lat-comp-badge-foreground-success-default:var(--lat-color-foreground-success-boldest);--lat-comp-badge-foreground-warning-default:var(--lat-color-foreground-warning-boldest);--lat-comp-banner-background-critical-default:#d781844d;--lat-comp-banner-background-critical-hover:var(--lat-color-background-critical-hover);--lat-comp-banner-background-informational-default:#60b5f04d;--lat-comp-banner-background-informational-hover:var(--lat-color-background-informational-hover);--lat-comp-banner-background-neutral-default:#c9d1df4d;--lat-comp-banner-background-neutral-hover:var(--lat-color-background-neutral-hover);--lat-comp-banner-background-success-default:#a1db6a4d;--lat-comp-banner-background-success-hover:var(--lat-color-background-success-hover);--lat-comp-banner-background-warning-default:#ffd14d4d;--lat-comp-banner-background-warning-hover:var(--lat-color-background-warning-hover);--lat-comp-banner-border-critical-default:var(--lat-color-border-critical-subtle);--lat-comp-banner-border-informational-default:var(--lat-color-border-informational-subtle);--lat-comp-banner-border-neutral-default:var(--lat-color-border-neutral-subtle);--lat-comp-banner-border-success-default:var(--lat-color-border-success-subtle);--lat-comp-banner-border-warning-default:var(--lat-color-border-warning-subtle);--lat-comp-banner-foreground-critical-default:var(--lat-color-foreground-critical-subtle);--lat-comp-banner-foreground-informational-default:var(--lat-color-foreground-informational-subtle);--lat-comp-banner-foreground-neutral-default:var(--lat-color-foreground-neutral-subtle);--lat-comp-banner-foreground-success-default:var(--lat-color-foreground-success-boldest);--lat-comp-banner-foreground-warning-default:var(--lat-color-foreground-warning-boldest);--lat-comp-toast-background-primary-default:var(--lat-color-background-inverse-default);--lat-comp-toast-background-primary-hover:var(--lat-color-background-inverse-hover);--lat-comp-toast-foreground-critical-default:var(--lat-color-foreground-inverse-critical-default);--lat-comp-toast-foreground-link-active:var(--lat-color-foreground-inverse-link-active);--lat-comp-toast-foreground-link-default:var(--lat-color-foreground-inverse-link-default);--lat-comp-toast-foreground-link-hover:var(--lat-color-foreground-inverse-link-hover);--lat-comp-toast-foreground-link-visited:var(--lat-color-foreground-inverse-link-visited);--lat-comp-toast-foreground-primary-default:var(--lat-color-foreground-inverse-default);--lat-comp-toast-foreground-success-default:var(--lat-color-foreground-inverse-success-default);--lat-comp-tooltip-background-primary-default:var(--lat-color-background-inverse-default);--lat-comp-tooltip-foreground-primary-default:var(--lat-color-foreground-inverse-default)}.dark{--lat-color-background-critical-bold:var(--lat-ref-color-red-400);--lat-color-background-critical-bolder:var(--lat-ref-color-red-300);--lat-color-background-critical-boldest:var(--lat-ref-color-red-200);--lat-color-background-critical-default:var(--lat-ref-color-red-1000);--lat-color-background-critical-hover:var(--lat-ref-color-red-300);--lat-color-background-critical-subtle:var(--lat-ref-color-red-500);--lat-color-background-informational-default:var(--lat-ref-color-sky-900);--lat-color-background-informational-hover:var(--lat-ref-color-blue-700);--lat-color-background-informational-subtle:var(--lat-ref-color-sky-500);--lat-color-background-interactive-active:var(--lat-ref-color-sky-200);--lat-color-background-interactive-default:var(--lat-ref-color-sky-400);--lat-color-background-interactive-disabled:var(--lat-ref-color-gray-900);--lat-color-background-interactive-hover:var(--lat-ref-color-sky-300);--lat-color-background-inverse-active:var(--lat-ref-color-sky-50);--lat-color-background-inverse-default:var(--lat-ref-color-miscellaneous-white);--lat-color-background-inverse-disabled:var(--lat-ref-color-gray-100);--lat-color-background-inverse-hover:var(--lat-ref-color-gray-50);--lat-color-background-neutral-active:var(--lat-ref-color-gray-700);--lat-color-background-neutral-bold:var(--lat-ref-color-gray-800);--lat-color-background-neutral-bolder:var(--lat-ref-color-gray-600);--lat-color-background-neutral-boldest:var(--lat-ref-color-gray-400);--lat-color-background-neutral-default:var(--lat-ref-color-gray-900);--lat-color-background-neutral-disabled:var(--lat-ref-color-gray-1000);--lat-color-background-neutral-hover:var(--lat-ref-color-gray-800);--lat-color-background-neutral-subtle:var(--lat-ref-color-gray-500);--lat-color-background-pink-default:var(--lat-ref-color-pink-900);--lat-color-background-primary-active:var(--lat-ref-color-gray-700);--lat-color-background-primary-default:var(--lat-ref-color-gray-1000);--lat-color-background-primary-disabled:var(--lat-ref-color-gray-1050);--lat-color-background-primary-hover:var(--lat-ref-color-gray-900);--lat-color-background-primary-selected:var(--lat-ref-color-gray-800);--lat-color-background-purple-default:var(--lat-ref-color-purple-900);--lat-color-background-secondary-default:var(--lat-ref-color-gray-950);--lat-color-background-secondary-hover:var(--lat-ref-color-gray-800);--lat-color-background-secondary-selected:var(--lat-ref-color-sky-700);--lat-color-background-success-bold:var(--lat-ref-color-green-700);--lat-color-background-success-bolder:var(--lat-ref-color-green-400);--lat-color-background-success-default:var(--lat-ref-color-green-1000);--lat-color-background-success-hover:var(--lat-ref-color-green-900);--lat-color-background-success-subtle:var(--lat-ref-color-green-500);--lat-color-background-teal-default:var(--lat-ref-color-teal-900);--lat-color-background-warning-default:var(--lat-ref-color-gold-1000);--lat-color-background-warning-hover:var(--lat-ref-color-gold-1100);--lat-color-background-warning-subtle:var(--lat-ref-color-gold-500);--lat-color-border-contrast:var(--lat-ref-color-miscellaneous-charcoal);--lat-color-border-contrast-focus:var(--lat-ref-color-miscellaneous-white);--lat-color-border-critical-default:var(--lat-ref-color-red-500);--lat-color-border-critical-subtle:var(--lat-ref-color-red-400);--lat-color-border-focus:var(--lat-ref-color-sky-400);--lat-color-border-informational-default:var(--lat-ref-color-sky-500);--lat-color-border-informational-subtle:var(--lat-ref-color-sky-400);--lat-color-border-inverse-active:var(--lat-ref-color-gray-700);--lat-color-border-inverse-default:var(--lat-ref-color-gray-300);--lat-color-border-inverse-disabled:var(--lat-ref-color-gray-200);--lat-color-border-inverse-focus:var(--lat-ref-color-sky-700);--lat-color-border-inverse-hover:var(--lat-ref-color-gray-700);--lat-color-border-neutral-subtle:var(--lat-ref-color-gray-400);--lat-color-border-neutral-subtlest:var(--lat-ref-color-gray-900);--lat-color-border-primary-active:var(--lat-ref-color-gray-500);--lat-color-border-primary-default:var(--lat-ref-color-gray-900);--lat-color-border-primary-disabled:var(--lat-ref-color-gray-700);--lat-color-border-primary-hover:var(--lat-ref-color-gray-500);--lat-color-border-secondary-default:var(--lat-ref-color-gray-600);--lat-color-border-success-default:var(--lat-ref-color-green-400);--lat-color-border-success-subtle:var(--lat-ref-color-green-400);--lat-color-border-transparent:#ffffff00;--lat-color-border-warning-default:var(--lat-ref-color-gold-600);--lat-color-border-warning-subtle:var(--lat-ref-color-gold-400);--lat-color-foreground-critical-default:var(--lat-ref-color-red-300);--lat-color-foreground-critical-hover:var(--lat-ref-color-red-200);--lat-color-foreground-critical-subtle:var(--lat-ref-color-red-100);--lat-color-foreground-informational-default:var(--lat-ref-color-sky-500);--lat-color-foreground-informational-subtle:var(--lat-ref-color-sky-100);--lat-color-foreground-inverse-critical-default:var(--lat-ref-color-red-1000);--lat-color-foreground-inverse-default:var(--lat-ref-color-gray-1050);--lat-color-foreground-inverse-disabled:var(--lat-ref-color-gray-500);--lat-color-foreground-inverse-link-active:var(--lat-ref-color-blue-700);--lat-color-foreground-inverse-link-default:var(--lat-ref-color-sky-900);--lat-color-foreground-inverse-link-hover:var(--lat-ref-color-blue-700);--lat-color-foreground-inverse-link-visited:var(--lat-ref-color-purple-700);--lat-color-foreground-inverse-secondary:var(--lat-ref-color-gray-700);--lat-color-foreground-inverse-success-default:var(--lat-ref-color-green-900);--lat-color-foreground-inverse-warning-default:var(--lat-ref-color-gold-1000);--lat-color-foreground-link-active:var(--lat-ref-color-sky-300);--lat-color-foreground-link-default:var(--lat-ref-color-sky-200);--lat-color-foreground-link-hover:var(--lat-ref-color-sky-300);--lat-color-foreground-link-visited:var(--lat-ref-color-purple-300);--lat-color-foreground-neutral-default:var(--lat-ref-color-gray-100);--lat-color-foreground-neutral-subtle:var(--lat-ref-color-gray-100);--lat-color-foreground-pink-boldest:var(--lat-ref-color-pink-100);--lat-color-foreground-primary-default:var(--lat-ref-color-gray-50);--lat-color-foreground-primary-disabled:var(--lat-ref-color-gray-700);--lat-color-foreground-purple-boldest:var(--lat-ref-color-purple-100);--lat-color-foreground-secondary-default:var(--lat-ref-color-gray-300);--lat-color-foreground-secondary-disabled:var(--lat-ref-color-gray-600);--lat-color-foreground-success-boldest:var(--lat-ref-color-green-100);--lat-color-foreground-success-default:var(--lat-ref-color-green-500);--lat-color-foreground-teal-boldest:var(--lat-ref-color-teal-100);--lat-color-foreground-warning-boldest:var(--lat-ref-color-gold-100);--lat-color-foreground-warning-default:var(--lat-ref-color-gold-500);--lat-color-page-primary:var(--lat-ref-color-gray-1050);--lat-color-page-secondary:var(--lat-ref-color-gray-1100);--lat-gradient-rainbow:linear-gradient(90deg, #F96E10, #FFC305, #FFE84F, #78E898, #3EDFFF, #0298EC);--lat-shadow-popover:0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35);--lat-shadow-focus:0 4px 8px rgba(0, 0, 0, 0.20);--lat-shadow-tooltip:0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35);--lat-shadow-small:0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35);--lat-shadow-medium:0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.40);--lat-shadow-large:0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.45);--lat-shadow-overflow-left:-4px 0 8px rgba(0, 0, 0, 0.35);--lat-shadow-overflow-right:4px 0 8px rgba(0, 0, 0, 0.35);--lat-shadow-overflow-bottom:0 4px 8px rgba(0, 0, 0, 0.35);--lat-comp-badge-background-critical-bold:var(--lat-color-background-critical-bold);--lat-comp-badge-background-critical-default:#e65b534d;--lat-comp-badge-background-informational-default:#0296ec4d;--lat-comp-badge-background-neutral-default:#8f94a94d;--lat-comp-badge-background-success-default:#73ca0d4d;--lat-comp-badge-background-warning-default:#ffbc044d;--lat-comp-badge-border-contrast-default:var(--lat-color-border-contrast);--lat-comp-badge-foreground-critical-default:var(--lat-color-foreground-critical-subtle);--lat-comp-badge-foreground-informational-default:var(--lat-color-foreground-informational-subtle);--lat-comp-badge-foreground-inverse-default:var(--lat-color-foreground-inverse-default);--lat-comp-badge-foreground-neutral-default:var(--lat-color-foreground-neutral-subtle);--lat-comp-badge-foreground-success-default:var(--lat-color-foreground-success-boldest);--lat-comp-badge-foreground-warning-default:var(--lat-color-foreground-warning-boldest);--lat-comp-banner-background-critical-default:#e65b534d;--lat-comp-banner-background-critical-hover:var(--lat-color-background-critical-hover);--lat-comp-banner-background-informational-default:#0296ec4d;--lat-comp-banner-background-informational-hover:var(--lat-color-background-informational-hover);--lat-comp-banner-background-neutral-default:#8f94a94d;--lat-comp-banner-background-neutral-hover:var(--lat-color-background-neutral-hover);--lat-comp-banner-background-success-default:#73ca0d4d;--lat-comp-banner-background-success-hover:var(--lat-color-background-success-hover);--lat-comp-banner-background-warning-default:#ffbc044d;--lat-comp-banner-background-warning-hover:var(--lat-color-background-warning-hover);--lat-comp-banner-border-critical-default:var(--lat-color-border-critical-subtle);--lat-comp-banner-border-informational-default:var(--lat-color-border-informational-subtle);--lat-comp-banner-border-neutral-default:var(--lat-color-border-neutral-subtle);--lat-comp-banner-border-success-default:var(--lat-color-border-success-subtle);--lat-comp-banner-border-warning-default:var(--lat-color-border-warning-subtle);--lat-comp-banner-foreground-critical-default:var(--lat-color-foreground-critical-subtle);--lat-comp-banner-foreground-informational-default:var(--lat-color-foreground-informational-subtle);--lat-comp-banner-foreground-neutral-default:var(--lat-color-foreground-neutral-subtle);--lat-comp-banner-foreground-success-default:var(--lat-color-foreground-success-boldest);--lat-comp-banner-foreground-warning-default:var(--lat-color-foreground-warning-boldest);--lat-comp-toast-background-primary-default:var(--lat-color-background-neutral-default);--lat-comp-toast-background-primary-hover:var(--lat-color-background-neutral-hover);--lat-comp-toast-foreground-critical-default:var(--lat-color-foreground-critical-default);--lat-comp-toast-foreground-link-active:var(--lat-color-foreground-link-active);--lat-comp-toast-foreground-link-default:var(--lat-color-foreground-link-default);--lat-comp-toast-foreground-link-hover:var(--lat-color-foreground-link-hover);--lat-comp-toast-foreground-link-visited:var(--lat-color-foreground-link-visited);--lat-comp-toast-foreground-primary-default:var(--lat-color-foreground-primary-default);--lat-comp-toast-foreground-success-default:var(--lat-color-foreground-success-default);--lat-comp-tooltip-background-primary-default:var(--lat-color-background-neutral-default);--lat-comp-tooltip-foreground-primary-default:var(--lat-color-foreground-primary-default)}#navbar-transition{background-color:var(--lat-color-background-secondary-default)}"}],"page":{"pagePath":"send-data/go/libhoney","slug":"/send-data/go/libhoney","pageMetadata":{"title":"Send Logs with Libhoney for Go","description":"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb's low-level structured logging library for the Events API.","sidebarTitle":"Libhoney for Go","href":"/send-data/go/libhoney"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb’s low-level structured logging library for the Events API.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Libhoney for Go is Honeycomb’s structured logging library for Go applications.\nIt is a low-level library that helps you send structured events to Honeycomb’s `,_jsx(_components.a,{href:`/api/events/`,children:`Events API`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you are instrumenting a new application for tracing, we recommend that you use `,_jsx(_components.a,{href:`/send-data/opentelemetry/`,children:`OpenTelemetry`}),` instead.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -v`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` github.com/honeycombio/libhoney-go`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`links`,children:`Links`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://godoc.org/github.com/honeycombio/libhoney-go`,children:`API Reference`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://github.com/honeycombio/libhoney-go`,children:`Source Code`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://github.com/honeycombio/libhoney-go/tree/main/examples`,children:`Examples`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`initialization`,children:`Initialization`}),`\n`,_jsxs(_components.p,{children:[`Initialize the library by passing in your Team API key and the default dataset name to which it should send events.\nWhen you call the library’s initialization routine, it spins up background threads to handle sending all the events.\nYou must shut down these background threads on shutdown by calling `,_jsx(_components.code,{children:`libhoney.Close()`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WriteKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Dataset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"honeycomb-golang-example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Flush any pending calls to Honeycomb`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Further configuration options can be found `,_jsx(_components.a,{href:`https://godoc.org/github.com/honeycombio/libhoney-go#Config`,children:`in the API reference`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`libhoney.Config`}),` also contains an `,_jsx(_components.code,{children:`APIHost`}),` key, which defaults to Honeycomb’s API server.\nOverriding this with an empty string is a good way to drop events in a test environment.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`building-and-sending-events`,children:`Building and Sending Events`}),`\n`,_jsxs(_components.p,{children:[`Once initialized, `,_jsx(_components.code,{children:`libhoney`}),` is ready to send events.\nEvents go through three phases:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Creation `,_jsx(_components.code,{children:`event := builder.NewEvent()`})]}),`\n`,_jsxs(_components.li,{children:[`Adding fields `,_jsx(_components.code,{children:`event.AddField(\"key\", \"val\")`}),`, `,_jsx(_components.code,{children:`event.Add(dataMap)`})]}),`\n`,_jsxs(_components.li,{children:[`Transmission `,_jsx(_components.code,{children:`event.Send()`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Upon calling `,_jsx(_components.code,{children:`.Send()`}),`, the event is dispatched to be sent to Honeycomb.\nAll libraries set defaults that will allow your application to function as smoothly as possible during error conditions.\nWhen creating events faster than they can be sent, overflowed events will be dropped instead of backing up and slowing down your application.`]}),`\n`,_jsxs(_components.p,{children:[`In its simplest form, you can add a single attribute to an event with the `,_jsx(_components.code,{children:`.AddField(k, v)`}),` method.\nIf you add the same key multiple times, only the last value added will be kept.`]}),`\n`,_jsxs(_components.p,{children:[`More complex structures (maps and structs—things that can be serialized into a JSON object) can be added to an event with the `,_jsx(_components.code,{children:`.Add(data)`}),` method.`]}),`\n`,_jsx(_components.p,{children:`Events can have metadata associated with them that is not sent to Honeycomb.\nThis metadata is used to identify the event when processing the response.\nMore detail about metadata is below in the Response section.`}),`\n`,_jsx(Heading,{level:`2`,id:`handling-responses`,children:`Handling Responses`}),`\n`,_jsxs(_components.p,{children:[`Sending an event is an asynchronous action and will avoid blocking by default.\n`,_jsx(_components.code,{children:`.Send()`}),` will enqueue the event to be sent as soon as possible (thus, the return value does not indicate that the event was successfully sent).\nUse the `,_jsx(_components.code,{children:`chan`}),` returned by `,_jsx(_components.code,{children:`.Responses()`}),` to check whether events were successfully received by Honeycomb’s servers.`]}),`\n`,_jsxs(_components.p,{children:[`Before sending an event, you have the option to attach metadata to that event.\nThis metadata is not sent to Honeycomb; instead, it is used to help you match up individual responses with sent events.\nWhen sending an event, `,_jsx(_components.code,{children:`libhoney`}),` will take the metadata from the event and attach it to the response object for you to consume.\nAdd metadata by populating the `,_jsx(_components.code,{children:`.Metadata`}),` attribute directly on an event.`]}),`\n`,_jsx(_components.p,{children:`Responses have a number of fields describing the result of an attempted event send:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Metadata`}),`: the metadata you attached to the event to which this response corresponds`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`StatusCode`}),`: the HTTP status code returned by Honeycomb when trying to send the event.\n`,_jsx(_components.code,{children:`2xx`}),` indicates success.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Duration`}),`: the `,_jsx(_components.code,{children:`time.Duration`}),` it took to send the event.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Body`}),`: the body of the HTTP response from Honeycomb.\nOn failures, this body contains some more information about the failure.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Err`}),`: when the event does not even get to create a HTTP attempt, the reason will be in this field.\n(For example, when sampled or dropped because of a queue overflow.)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You do not have to process responses if you are not interested in them—simply ignoring them is perfectly safe.\nUnread responses will be dropped.`}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(_components.p,{children:`Honeycomb can calculate all sorts of statistics, so send the data you care about and let us crunch the averages, percentiles, lower/upper bounds, cardinality—whatever you want—for you.`}),`\n`,_jsx(Heading,{level:`3`,id:`simple-send-an-event`,children:`Simple: Send an Event`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/honeycombio/libhoney-go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Call Init to configure libhoney`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WriteKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Dataset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"honeycomb-golang-example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Flush any pending calls to Honeycomb`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ev`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`153.12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"appserver15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payload_length\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`27`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`intermediate-populate-an-event-over-time`,children:`Intermediate: Populate an Event Over Time`}),`\n`,_jsx(_components.p,{children:`You do not need to know all of the fields that should be added to an event up front.\nIn fact, it is very common to add fields to an event as circumstances change or as new information comes in.\nFor example, you might want to indicate success or failure, and if a failure occurred, you will want to submit the associated error message.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`33`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`33`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/honeycombio/libhoney-go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Call Init to configure libhoney`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WriteKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_WRITE_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Dataset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"honeycomb-golang-example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Flush any pending calls to Honeycomb before exiting`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Create an event, add some data`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"appserver15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payload_length\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`27`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }))`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // This event will be sent regardless of how we exit`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` myOtherFunc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // do some work, maybe measure some things`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`153.12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ev`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`intermediate-override-some-attributes`,children:`Intermediate: Override Some Attributes`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// ... Initialization code ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"foo.local\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"built\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` libhoney`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"built\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Spawn a new event and override the timestamp`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"latency_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Since`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Milliseconds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2016`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`February`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`29`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`UTC`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Further examples can be found `,_jsx(_components.a,{href:`https://github.com/honeycombio/libhoney-go`,children:`on GitHub`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-usage-utilizing-builders`,children:`Advanced Usage: Utilizing Builders`}),`\n`,_jsx(_components.p,{children:`Builders are, at their simplest, a convenient way to avoid repeating common attributes that may not apply globally.\nCreating a builder for a given component allows a variety of different events to be spawned and sent within the component, without having to repeat the component name as an attribute for each.`}),`\n`,_jsx(_components.p,{children:`You can clone builders—the cloned builder will have a copy of all the fields and dynamic fields in the original.\nAs your application forks down into more and more specific functionality, you can create more detailed builders.\nThe final event creation in the leaves of your application’s tree will have all the data you have added along the way in addition to the specifics of this event.`}),`\n`,_jsx(_components.p,{children:`The global scope is essentially a specialized builder, for capturing attributes that are likely useful to all events (for example, hostname or environment).\nAdding this kind of peripheral and normally unavailable information to every event gives you enormous power to identify patterns that would otherwise be invisible in the context of a single request.`}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-usage-dynamic-fields`,children:`Advanced Usage: Dynamic Fields`}),`\n`,_jsxs(_components.p,{children:[`The top-level `,_jsx(_components.code,{children:`libhoney`}),` and Builders support `,_jsx(_components.code,{children:`.AddDynamicField(func)`}),`.\nAdding a dynamic field to a Builder or top-level `,_jsx(_components.code,{children:`libhoney`}),` ensures that each time an event is created, the provided function is executed and the returned key/value pair is added to the event.\nThis may be useful for including dynamic process information such as memory used, number of threads, concurrent requests, and so on to each event.\nAdding this kind of dynamic data to an event makes it easy to understand the application’s context when looking at an individual event or error condition.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.p,{children:[`Refer to `,_jsx(_components.a,{href:`/troubleshoot/common-issues/sending-data/#libhoney`,children:`Common Issues with Sending Data in Honeycomb`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`contributions`,children:`Contributions`}),`\n`,_jsxs(_components.p,{children:[`Features, bug fixes and other changes to `,_jsx(_components.code,{children:`libhoney`}),` are gladly accepted.\nPlease open issues or a pull request with your change.\nRemember to add your name to the CONTRIBUTORS file!`]}),`\n`,_jsx(_components.p,{children:`All contributions will be released under the Apache License 2.0.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{},"config":{},"pageMetadata":{"title":"Send Logs with Libhoney for Go","description":"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb's low-level structured logging library for the Events API.","sidebarTitle":"Libhoney for Go","href":"/send-data/go/libhoney"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Links","slug":"links","depth":2,"children":[]},{"title":"Initialization","slug":"initialization","depth":2,"children":[]},{"title":"Building and Sending Events","slug":"building-and-sending-events","depth":2,"children":[]},{"title":"Handling Responses","slug":"handling-responses","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Simple: Send an Event","slug":"simple-send-an-event","depth":3,"children":[]},{"title":"Intermediate: Populate an Event Over Time","slug":"intermediate-populate-an-event-over-time","depth":3,"children":[]},{"title":"Intermediate: Override Some Attributes","slug":"intermediate-override-some-attributes","depth":3,"children":[]}]},{"title":"Advanced Usage: Utilizing Builders","slug":"advanced-usage-utilizing-builders","depth":2,"children":[]},{"title":"Advanced Usage: Dynamic Fields","slug":"advanced-usage-dynamic-fields","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Contributions","slug":"contributions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/honeycomb/b94dfbf0ae869e30/_assets/scripts/kapa.js","/_mintlify/custom/honeycomb/0eb253641253d1ce/main.js","/_mintlify/custom/honeycomb/a0f1d373bf4aece9/tracing.js"],"subdomain":"honeycomb","siteName":"Honeycomb Docs","title":"Send Logs with Libhoney for Go - Honeycomb Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-11T06:51:32.029Z","originalFileLocation":"send-data/go/libhoney.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb\u0026#x27;s low-level structured logging library for the Events API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Honeycomb Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send Logs with Libhoney for Go - Honeycomb Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb\u0026#x27;s low-level structured logging library for the Events API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Honeycomb Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.honeycomb.io/send-data/go/libhoney\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://honeycomb.mintlify.app/_mintlify/api/og/v2?division=Go\u0026amp;title=Send+Logs+with+Libhoney+for+Go\u0026amp;description=Send+structured+events+to+Honeycomb+from+your+Go+application+using+Libhoney%2C+Honeycomb%27s+low-level+structured+logging+library+for+the+Events+API.\u0026amp;theme=93661a4477bec396dfc2bcd6\u0026amp;signature=8a9194876510befe1cf622475a95a97525524f73b67b04b1ec59fa6aafbe3b88\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send Logs with Libhoney for Go - Honeycomb Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb\u0026#x27;s low-level structured logging library for the Events API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://honeycomb.mintlify.app/_mintlify/api/og/v2?division=Go\u0026amp;title=Send+Logs+with+Libhoney+for+Go\u0026amp;description=Send+structured+events+to+Honeycomb+from+your+Go+application+using+Libhoney%2C+Honeycomb%27s+low-level+structured+logging+library+for+the+Events+API.\u0026amp;theme=93661a4477bec396dfc2bcd6\u0026amp;signature=8a9194876510befe1cf622475a95a97525524f73b67b04b1ec59fa6aafbe3b88\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/honeycomb/7YUY9epdPvOVWjv6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Honeycomb Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0298ec\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.honeycomb.io/send-data/go/libhoney\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/send-data/go/libhoney.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.honeycomb.io/#organization\",\"name\":\"Honeycomb Docs\",\"url\":\"https://docs.honeycomb.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/honeycomb/TYbxiKcJ1fL3Sm5n/_assets/logos/light.svg?fit=max\u0026auto=format\u0026n=TYbxiKcJ1fL3Sm5n\u0026q=85\u0026s=27a1eaed720bce94471b9408761a57a5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.honeycomb.io#website\",\"name\":\"Honeycomb Docs\",\"url\":\"https://docs.honeycomb.io\",\"publisher\":{\"@id\":\"https://docs.honeycomb.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.honeycomb.io/send-data/go/libhoney#webpage\",\"url\":\"https://docs.honeycomb.io/send-data/go/libhoney\",\"name\":\"Send Logs with Libhoney for Go\",\"description\":\"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb's low-level structured logging library for the Events API.\",\"dateModified\":\"2026-03-11T06:51:32.029Z\",\"isPartOf\":{\"@id\":\"https://docs.honeycomb.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.honeycomb.io/send-data/go/libhoney#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.honeycomb.io/send-data/go/libhoney#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Instrument Applications\",\"item\":\"https://docs.honeycomb.io/send-data/opentelemetry\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backend\",\"item\":\"https://docs.honeycomb.io/send-data/javascript-nodejs/opentelemetry-sdk\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Go\",\"item\":\"https://docs.honeycomb.io/send-data/go\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Send Logs with Libhoney for Go\",\"item\":\"https://docs.honeycomb.io/send-data/go/libhoney\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.honeycomb.io/send-data/go/libhoney#article\",\"headline\":\"Send Logs with Libhoney for Go\",\"name\":\"Send Logs with Libhoney for Go\",\"description\":\"Send structured events to Honeycomb from your Go application using Libhoney, Honeycomb's low-level structured logging library for the Events API.\",\"url\":\"https://docs.honeycomb.io/send-data/go/libhoney\",\"mainEntityOfPage\":{\"@id\":\"https://docs.honeycomb.io/send-data/go/libhoney#webpage\"},\"dateModified\":\"2026-03-11T06:51:32.029Z\",\"publisher\":{\"@id\":\"https://docs.honeycomb.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.honeycomb.io#website\"}}]}\u003c/script>","siteName":"Honeycomb Docs","nav":{"global":{"anchors":[{"anchor":"Docs Home","icon":"home","href":"/"},{"anchor":"Blog","icon":"bullhorn","href":"https://www.honeycomb.io/blog"},{"anchor":"Honeycomb Academy","icon":"book","href":"https://academy.honeycomb.io/"}]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started"}]},{"tab":"Send Data","pages":[{"title":"Send Data to Honeycomb: Overview","sidebarTitle":"Overview","icon":"location-pin","mode":"wide","href":"/send-data"},{"group":"Send Data with AI","public":true,"expanded":true,"pages":[{"title":"Send Data with AI Agent","sidebarTitle":"Send Data with AI Agent","href":"/send-data/ai"}]},{"group":"Instrument Applications","public":true,"expanded":true,"pages":[{"title":"Send Data from Applications","sidebarTitle":"Overview","href":"/send-data/opentelemetry"},{"group":"Backend","public":true,"pages":[{"group":"Node.js","public":true,"root":{"title":"Send Data to Honeycomb with Node.js","sidebarTitle":"Node.js","mode":"wide","href":"/send-data/javascript-nodejs"},"pages":[{"title":"Send Data with the OpenTelemetry JavaScript SDK","sidebarTitle":"OpenTelemetry for JavaScript SDK","href":"/send-data/javascript-nodejs/opentelemetry-sdk"},{"title":"Send Logs with Libhoney for JavaScript","sidebarTitle":"Libhoney for JavaScript","href":"/send-data/javascript-nodejs/libhoney"}]},{"group":"Python","public":true,"root":{"title":"Send Data to Honeycomb with Python","sidebarTitle":"Python","mode":"wide","href":"/send-data/python"},"pages":[{"title":"Send Data with the OpenTelemetry Python SDK","sidebarTitle":"OpenTelemetry for Python SDK","href":"/send-data/python/opentelemetry-sdk"},{"title":"Send Logs with Libhoney for Python","sidebarTitle":"Libhoney for Python","href":"/send-data/python/libhoney"}]},{"group":"Go","public":true,"root":{"title":"Send Data to Honeycomb with Go","sidebarTitle":"Go","mode":"wide","href":"/send-data/go"},"pages":[{"title":"Send Data with the OpenTelemetry Go SDK","description":"Instrument your Go application with the OpenTelemetry Go SDK and send traces and metrics to Honeycomb.","sidebarTitle":"OpenTelemetry for Go SDK","href":"/send-data/go/opentelemetry-sdk"},{"title":"Send Logs with Libhoney for Go","sidebarTitle":"Libhoney for Go","href":"/send-data/go/libhoney"}]},{"group":"Java","public":true,"root":{"title":"Send Data to Honeycomb with Java","description":"Explore available methods for sending telemetry from your Java application to Honeycomb.","sidebarTitle":"Java","mode":"wide","href":"/send-data/java"},"pages":[{"title":"Send Data with the OpenTelemetry Java Agent","sidebarTitle":"OpenTelemetry Java Agent","href":"/send-data/java/opentelemetry-agent"},{"title":"Send Logs with Libhoney for Java","sidebarTitle":"Libhoney for Java","href":"/send-data/java/libhoney"}]},{"group":"Ruby","public":true,"root":{"title":"Send Data to Honeycomb with Ruby","sidebarTitle":"Ruby","mode":"wide","href":"/send-data/ruby"},"pages":[{"title":"Send Data with the OpenTelemetry Ruby SDK","sidebarTitle":"OpenTelemetry for Ruby SDK","href":"/send-data/ruby/opentelemetry-sdk"},{"title":"Send Logs with Libhoney for Ruby","sidebarTitle":"Libhoney for Ruby","href":"/send-data/ruby/libhoney"}]},{"title":"Send Data with the OpenTelemetry .NET SDK","sidebarTitle":".NET","href":"/send-data/dotnet"}]},{"group":"Web and Mobile","public":true,"pages":[{"group":"Browser JavaScript","public":true,"root":{"title":"Instrument Frontend Web Applications with OpenTelemetry","sidebarTitle":"Web JavaScript","href":"/send-data/javascript-browser"},"pages":[{"title":"Symbolicate JavaScript Stack Traces with the OpenTelemetry Collector","sidebarTitle":"Symbolicate Stack Traces","href":"/send-data/javascript-browser/symbolicate"}]},{"group":"Android","public":true,"root":{"title":"Send Android Data to Honeycomb","sidebarTitle":"Android","href":"/send-data/android"},"pages":[{"title":"Attributes in the Honeycomb OpenTelemetry Android SDK","sidebarTitle":"Available Attributes","href":"/send-data/android/attributes"},{"title":"Symbolicate Android Stack Traces with the OpenTelemetry Collector","sidebarTitle":"Symbolicate Stack Traces","href":"/send-data/android/symbolicate"}]},{"group":"iOS","public":true,"root":{"title":"Send iOS Data to Honeycomb with Swift","sidebarTitle":"Swift","href":"/send-data/ios"},"pages":[{"title":"Attributes in the Honeycomb OpenTelemetry Swift SDK","sidebarTitle":"Available Attributes","href":"/send-data/ios/attributes"},{"title":"Symbolicate iOS Stack Traces with the OpenTelemetry Collector","sidebarTitle":"Symbolicate Stack Traces","href":"/send-data/ios/symbolicate"}]},{"title":"Instrument React Native Applications with OpenTelemetry","sidebarTitle":"React Native","href":"/send-data/react-native"}]},{"title":"Add Custom Instrumentation","sidebarTitle":"Customize Instrumentation","href":"/send-data/standardize/add-custom-instrumentation"},{"title":"Add Context","sidebarTitle":"Add Context","href":"/send-data/standardize/add-context"},{"title":"Send Application Metrics to Honeycomb","sidebarTitle":"Send Application Metrics","href":"/send-data/metrics/application"},{"group":"Send Logs with SDKs","public":true,"root":{"title":"Send Logs from OpenTelemetry SDKs","sidebarTitle":"SDKs","href":"/send-data/logs/opentelemetry/sdk"},"pages":[{"title":"Example: Send OpenTelemetry Logs with the OpenTelemetry .NET SDK","sidebarTitle":"Example: SDK Logs + .NET","href":"/send-data/logs/opentelemetry/sdk/dotnet"},{"title":"Example: Send OpenTelemetry Logs with the OpenTelemetry Python SDK","sidebarTitle":"Example: SDK Logs + Python","href":"/send-data/logs/opentelemetry/sdk/python"},{"title":"Example: Send OpenTelemetry Logs with the OpenTelemetry Java SDK","sidebarTitle":"Example: SDK Logs + Java","href":"/send-data/logs/opentelemetry/sdk/java"},{"title":"Example: Send OpenTelemetry Logs with the OpenTelemetry JavaScript SDK","sidebarTitle":"Example: SDK Logs + JavaScript","href":"/send-data/logs/opentelemetry/sdk/javascript"},{"title":"Example: Send OpenTelemetry Logs with the OpenTelemetry Go SDK","sidebarTitle":"Example: SDK Logs + Go","href":"/send-data/logs/opentelemetry/sdk/go"}]}]},{"group":"Instrument Infrastructure","public":true,"expanded":true,"pages":[{"group":"Kubernetes","public":true,"root":{"title":"Send Data from Kubernetes","sidebarTitle":"Kubernetes","href":"/send-data/kubernetes"},"pages":[{"title":"Create a Telemetry Pipeline","sidebarTitle":"Create Telemetry Pipeline","tag":"Ent+","href":"/send-data/kubernetes/opentelemetry/create-telemetry-pipeline"},{"title":"Add Automatic Instrumentation (Low Code)","sidebarTitle":"Add Automatic Instrumentation","href":"/send-data/kubernetes/opentelemetry/add-automatic-instrumentation"},{"title":"Send Data from Instrumented Code to Collectors","href":"/send-data/kubernetes/opentelemetry/collect-instrumented-code"},{"title":"OpenTelemetry's Kubernetes Components","href":"/send-data/kubernetes/opentelemetry/components"},{"title":"Send Events with the Kubernetes Objects Receiver","sidebarTitle":"Send Events with Kubernetes Objects Receiver","href":"/send-data/kubernetes/send-events-objects-receiver"},{"title":"Send Logs with OpenTelemetry's Filelog Receiver","sidebarTitle":"Send Logs with OpenTelemetry's Filelog Receiver","href":"/send-data/kubernetes/send-logs-filelog-receiver"}]},{"group":"AWS","public":true,"root":{"title":"Send Data from Amazon Web Services (AWS)","sidebarTitle":"AWS","href":"/send-data/aws"},"pages":[{"title":"How Honeycomb's AWS Integrations Work","sidebarTitle":"How Integrations Work","href":"/send-data/aws/how-aws-integrations-work"},{"title":"Send Data from AWS via AWS CloudFormation","sidebarTitle":"AWS + AWS CloudFormation","href":"/send-data/aws/aws-cloudformation"},{"title":"Send Data from AWS via HashiCorp Terraform","sidebarTitle":"AWS + HashiCorp Terraform","href":"/send-data/aws/hashicorp-terraform"},{"group":"AWS Lambda","public":true,"root":{"title":"Send Data from AWS Lambda","sidebarTitle":"AWS Lambda","mode":"wide","href":"/send-data/aws/lambda"},"pages":[{"title":"Export Data with AWS Lambda Layer + OpenTelemetry","sidebarTitle":"AWS Lambda + OpenTelemetry","href":"/send-data/aws/lambda/opentelemetry"},{"title":"Export Data with AWS Lambda + Honeycomb Lambda Extension","sidebarTitle":"Honeycomb Lambda Extension","href":"/send-data/aws/lambda/honeycomb-lambda-extension"}]},{"title":"Send Metrics from AWS CloudWatch","sidebarTitle":"AWS CloudWatch","href":"/integrations/metrics/aws-cloudwatch"},{"title":"Connect to Honeycomb with AWS PrivateLink","sidebarTitle":"AWS PrivateLink","tag":"Ent","href":"/integrations/aws-privatelink"}]},{"title":"Collect Telemetry from Azure","sidebarTitle":"Azure","href":"/send-data/azure"},{"title":"Collect Telemetry from Google Cloud Platform","sidebarTitle":"GCP","href":"/send-data/gcp"},{"group":"HashiCorp","public":true,"pages":[{"title":"Send Metrics from HashiCorp Consul","sidebarTitle":"HashiCorp Consul","href":"/integrations/metrics/hashicorp-consul"},{"title":"Send Metrics from HashiCorp Nomad","sidebarTitle":"HashiCorp Nomad","href":"/integrations/metrics/hashicorp-nomad"},{"title":"Send Metrics from HashiCorp Vault","sidebarTitle":"HashiCorp Vault","href":"/integrations/metrics/hashicorp-vault"}]},{"title":"Send Data from Service Meshes and API Gateways","sidebarTitle":"Service Meshes \u0026 API Gateways","href":"/integrations/traces/service-meshes-api-gateways"},{"group":"Log Sources","public":true,"pages":[{"title":"Send JSON Logs","sidebarTitle":"JSON","href":"/send-data/logs/structured/json"},{"title":"Send NGINX Logs","sidebarTitle":"NGINX","href":"/send-data/logs/structured/nginx"},{"title":"Send MySQL Logs","sidebarTitle":"MySQL","href":"/send-data/logs/structured/mysql"},{"title":"Send PostgreSQL Logs","sidebarTitle":"PostgreSQL","href":"/send-data/logs/structured/postgresql"},{"title":"Send Other Webserver Logs","sidebarTitle":"Other Webserver","href":"/send-data/logs/structured/other-webserver"},{"title":"Send Structured Logs with Honeytail","sidebarTitle":"Other","href":"/send-data/logs/structured/honeytail"},{"title":"Send Logs with the OpenTelemetry Collector","sidebarTitle":"Logs with the OpenTelemetry Collector","href":"/send-data/logs/unstructured/collector"},{"title":"Send Unstructured Logs with Honeytail + Custom Regex","sidebarTitle":"Logs with Honeytail + Regex","href":"/send-data/logs/unstructured/honeytail-regex"},{"group":"Log Shippers","public":true,"pages":[{"title":"Stream Logs from Fastly","sidebarTitle":"Fastly","href":"/integrations/logs/fastly"},{"title":"Forward Fluentd Data","sidebarTitle":"Fluentd","href":"/integrations/logs/fluentd"},{"title":"Filter and Send Logstash Data","sidebarTitle":"Logstash","href":"/integrations/logs/logstash"}]}]},{"group":"Metrics Sources","public":true,"root":{"title":"Send Metrics to Honeycomb","sidebarTitle":"Metrics","href":"/send-data/metrics"},"pages":[{"title":"Send System Metrics with the OpenTelemetry Collector","sidebarTitle":"Host System Metrics","href":"/send-data/metrics/system"},{"title":"Send Metrics from Prometheus Clients","sidebarTitle":"Prometheus","href":"/integrations/metrics/prometheus"}]}]},{"group":"CI/CD Observability","public":true,"pages":[{"title":"Generate Traces from Build Pipelines","sidebarTitle":"Build Pipelines","href":"/integrations/build-pipelines"},{"title":"Gate Deployments with GitHub Actions Deployment Protection Rules","sidebarTitle":"GitHub Deployment Protection Rules","tag":"Beta","href":"/integrations/github-deployment-protection-rules"}]},{"group":"Manage Pipelines","public":true,"pages":[{"group":"OpenTelemetry Collector","public":true,"root":{"title":"Send Data with the OpenTelemetry Collector","sidebarTitle":"OpenTelemetry Collector","href":"/send-data/opentelemetry/collector"},"pages":[{"title":"Handle Sensitive Information with the OpenTelemetry Collector","sidebarTitle":"Handle Sensitive Information","href":"/send-data/opentelemetry/collector/handle-sensitive-information"},{"title":"Group Logs by Pattern with the OpenTelemetry Drain Processor","sidebarTitle":"Group Logs by Pattern","href":"/send-data/opentelemetry/collector/group-logs-by-pattern"},{"title":"Migrate Telemetry Schemas with the OpenTelemetry Schema Processor","sidebarTitle":"Migrate Telemetry Schemas","href":"/send-data/opentelemetry/collector/migrate-telemetry-schemas"}]},{"group":"Honeycomb Telemetry Pipeline","public":true,"root":{"title":"Honeycomb Telemetry Pipeline","sidebarTitle":"Honeycomb Telemetry Pipeline","tag":"Ent+","href":"/send-data/telemetry-pipeline"},"pages":[{"group":"Pipeline Manager","public":true,"root":{"title":"Pipeline Manager","sidebarTitle":"Pipeline Manager","tag":"Ent+","href":"/send-data/telemetry-pipeline/manager"},"pages":[{"title":"Install Pipeline Manager","tag":"Ent+","href":"/send-data/telemetry-pipeline/install"},{"group":"Sources","public":true,"root":{"title":"Pipeline Manager Sources","sidebarTitle":"Sources","tag":"Ent+","mode":"wide","href":"/send-data/telemetry-pipeline/sources"},"pages":[{"title":"Active Directory","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/active-directory"},{"title":"Aerospike","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/aerospike"},{"title":"Apache Combined","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/apache-combined"},{"title":"Apache Common","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/apache-common"},{"title":"Apache HTTP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/apache-http"},{"title":"Apache Spark","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/apache-spark"},{"title":"AWS Cloudwatch","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/aws-cloudwatch"},{"title":"AWS S3 Event","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/aws-s3-event"},{"title":"AWS S3 Rehydration","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/aws-s3-rehydration"},{"title":"Azure Blob Storage","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/azure-blob-storage"},{"title":"Azure Blob Rehydration","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/azure-blob-rehydration"},{"title":"Azure Event Hub","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/azure-event-hub"},{"title":"Cassandra","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cassandra"},{"title":"Cisco ASA","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cisco-asa"},{"title":"Cisco Catalyst","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cisco-catalyst"},{"title":"Cisco Meraki","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cisco-meraki"},{"title":"Cloudflare","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cloudflare"},{"title":"CockroachDB","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/cockroachdb"},{"title":"Common Event Format","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/common-event-format"},{"title":"Couchbase","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/couchbase"},{"title":"CouchDB","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/couchdb"},{"title":"Crowdstrike FDR","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/crowdstrike-fdr"},{"title":"CSV","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/csv"},{"title":"Custom","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/custom"},{"title":"Elasticsearch","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/elasticsearch"},{"title":"F5 BIG-IP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/f5-big-ip"},{"title":"File","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/filelog"},{"title":"Filestats","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/filestats"},{"title":"Fluent Forward","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/fluent-forward"},{"title":"Google Cloud PubSub","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/google-cloud-pubsub"},{"title":"Google Cloud Storage Rehydration","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/google-cloud-storage-rehydration"},{"title":"Hadoop","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/hadoop"},{"title":"HAProxy","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/haproxy"},{"title":"HBase","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/hbase"},{"title":"Honeycomb Telemetry Pipeline Agent","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/honeycomb-telemetry-pipeline-agent"},{"title":"Honeycomb Telemetry Pipeline Gateway","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/honeycomb-telemetry-pipeline-gateway"},{"title":"Honeycomb Telemetry Pipeline","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/honeycomb-telemetry-pipeline"},{"title":"Host Metrics","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/host-metrics"},{"title":"HTTP Check","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/http-check"},{"title":"HTTP Log","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/http-log"},{"title":"JBoss","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/jboss"},{"title":"Journald","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/journald"},{"title":"JVM","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/jvm"},{"title":"Kafka Cluster","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kafka-cluster"},{"title":"Kafka Node","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kafka-node"},{"title":"Kafka OTLP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kafka-otlp"},{"title":"Kubernetes Cluster Events","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kubernetes-cluster-events"},{"title":"Kubernetes Cluster Metrics","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kubernetes-cluster-metrics"},{"title":"Kubernetes Container Logs","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kubernetes-container-logs"},{"title":"Kubernetes Kubelet Metrics","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kubernetes-kubelet-metrics"},{"title":"Kubernetes Prometheus Node","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/kubernetes-prometheus-metrics"},{"title":"Logstash","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/logstash"},{"title":"macOS","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/macos"},{"title":"macOS Unified Logging","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/macos-unified-logging"},{"title":"Microsoft 365","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/microsoft-365"},{"title":"Microsoft IIS","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/microsoft-iis"},{"title":"Microsoft SQL Server","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/microsoft-sql-server"},{"title":"MongoDB","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/mongodb"},{"title":"MongoDB Atlas","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/mongodb-atlas"},{"title":"MySQL","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/mysql"},{"title":"NetFlow","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/netflow"},{"title":"Nginx","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/nginx"},{"title":"Okta","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/okta"},{"title":"OpenTelemetry (OTLP)","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/opentelemetry"},{"title":"Oracle Database","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/oracle-database"},{"title":"Packet Capture","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/packet-capture"},{"title":"PgBouncer","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/pgbouncer"},{"title":"PostgreSQL","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/postgresql"},{"title":"Prometheus","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/prometheus"},{"title":"RabbitMQ","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/rabbitmq"},{"title":"Redis","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/redis"},{"title":"SAP HANA","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/sap-hana"},{"title":"SAP NetWeaver","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/sap-netweaver"},{"title":"Solr","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/solr"},{"title":"Splunk (HEC)","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/splunk-hec"},{"title":"Splunk (TCP)","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/splunk-tcp"},{"title":"Splunk Search API","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/splunk-search-api"},{"title":"SQL Query","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/sql-query"},{"title":"StatsD","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/statsd"},{"title":"Syslog","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/syslog"},{"title":"TCP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/tcp"},{"title":"Telemetry Generator","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/telemetry-generator"},{"title":"Tomcat","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/tomcat"},{"title":"Ubiquiti","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/ubiquiti"},{"title":"UDP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/udp"},{"title":"VMware ESXi","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/vmware-esxi"},{"title":"VMware vCenter","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/vmware-vcenter"},{"title":"W3C","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/w3c"},{"title":"WildFly","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/wildfly"},{"title":"Windows DHCP","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/windows-dhcp"},{"title":"Windows Events","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/windows-events"},{"title":"Windows Event Trace (ETW)","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/windows-event-trace-etw"},{"title":"ZooKeeper","tag":"Ent+","href":"/send-data/telemetry-pipeline/sources/zookeeper"}]},{"group":"Destinations","public":true,"root":{"title":"Pipeline Manager Destinations","sidebarTitle":"Destinations","tag":"Ent+","mode":"wide","href":"/send-data/telemetry-pipeline/destinations"},"pages":[{"title":"AWS S3","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/aws-s3"},{"title":"Azure Blob Storage","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/azure-blob"},{"title":"Honeycomb","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/honeycomb"},{"title":"Honeycomb","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/honeycomb-enhance-indexing-s3"},{"title":"Honeycomb Refinery","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/honeycomb-refinery"},{"title":"Bindplane Gateway","tag":"Ent+","href":"/send-data/telemetry-pipeline/destinations/bindplane-gateway"}]},{"group":"Processors","public":true,"root":{"title":"Pipeline Manager Processors","sidebarTitle":"Processors","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors"},"pages":[{"title":"Add Fields","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/add-fields"},{"title":"Batch","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/batch"},{"title":"Coalesce","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/coalesce"},{"title":"Compute Metric Statistics","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/compute-metric-stats"},{"title":"Concat","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/concat"},{"title":"Copy Field","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/copy-field"},{"title":"Count Telemetry","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/count-telemetry"},{"title":"Custom","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/custom"},{"title":"Deduplicate Logs","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/deduplicate-logs"},{"title":"Delete Fields","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/delete-fields"},{"title":"Delete Empty Values","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/delete-empty-values"},{"title":"Resource Detection","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/detect-resource"},{"title":"Extract Metric","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/extract-metric"},{"title":"Filter by Condition","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-condition"},{"title":"Filter by Field","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-field"},{"title":"Filter HTTP Status","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-http-status"},{"title":"Filter Metric Name","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-metric-name"},{"title":"Filter by Regex","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-regex"},{"title":"Filter Severity","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/filter-by-severity"},{"title":"Google SecOps Standardization","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/google-secops-standardization"},{"title":"Group by Attributes","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/group-by-attributes"},{"title":"Log Sampling","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/log-sampling"},{"title":"Lookup Fields","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/lookup-fields"},{"title":"Marshal","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/marshal"},{"title":"Mask Sensitive Data","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/mask-sensitive-data"},{"title":"Move Field","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/move-field"},{"title":"Parse CSV","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-csv"},{"title":"Parse JSON","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-json"},{"title":"Parse Key Value","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-key-value"},{"title":"Parse Severity","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-severity"},{"title":"Parse Timestamp","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-timestamp"},{"title":"Parse with Regex","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-regex"},{"title":"Parse XML","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/parse-xml"},{"title":"Redact Sensitive Data","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/redact-sensitive-data"},{"title":"Rename Field","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/rename-field"},{"title":"Rename Metric","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/rename-metric"},{"title":"Resource Detection","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/resource-detection"},{"title":"Rewrite Timestamp","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/rewrite-timestamp"},{"title":"Split","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/split"},{"title":"Transform","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/transform"},{"title":"Unroll","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/unroll"}]},{"title":"Processor Impact on Agent Performance","tag":"Ent+","href":"/send-data/telemetry-pipeline/processors/performance"}]},{"group":"Enhance with Archive","public":true,"root":{"title":"Enhance with Archive","sidebarTitle":"Enhance with Archive","tag":"Ent+","href":"/send-data/telemetry-pipeline/enhance"},"pages":[{"title":"Set Up an Amazon S3 Archive with Terraform","sidebarTitle":"Terraform Setup","tag":"Ent+","href":"/send-data/telemetry-pipeline/enhance/terraform-setup"},{"title":"Set Up an Amazon S3 Archive with AWS Console","sidebarTitle":"AWS Console Setup","tag":"Ent+","href":"/send-data/telemetry-pipeline/enhance/aws-console-setup"},{"title":"Collector Export to Amazon S3 Archive","sidebarTitle":"Configure OTel Collector Export","tag":"Ent+","href":"/send-data/telemetry-pipeline/enhance/collector-export-s3"}]}]}]},{"group":"Shape Data","public":true,"expanded":true,"pages":[{"title":"Map Your Data","sidebarTitle":"Map Data","href":"/send-data/standardize/map-data"},{"title":"Transform Your Data","sidebarTitle":"Transform Data","href":"/send-data/standardize/transform-data"},{"title":"Calculated Field Reference","url":"https://docs.honeycomb.io/reference/calculated-field-expression","href":"/reference/calculated-field-reference"}]},{"group":"Control Data Volume","public":true,"expanded":true,"pages":[{"group":"Sample","public":true,"pages":[{"title":"Sampling","sidebarTitle":"About Sampling","href":"/manage-data-volume/sample"},{"title":"When to Sample","sidebarTitle":"When to Sample","href":"/manage-data-volume/sample/guidelines"},{"title":"Avoid Sampling Gen AI Telemetry","sidebarTitle":"Gen AI Telemetry","href":"/manage-data-volume/sample/gen-ai"},{"title":"Sampled Data in Honeycomb","sidebarTitle":"Sampled Data in Honeycomb","href":"/manage-data-volume/sample/sampled-data-in-honeycomb"},{"group":"Honeycomb Refinery","root":{"title":"Honeycomb Refinery","sidebarTitle":"Honeycomb Refinery","href":"/manage-data-volume/sample/honeycomb-refinery"},"pages":[{"title":"Set Up Honeycomb Refinery","sidebarTitle":"Set Up","href":"/manage-data-volume/sample/honeycomb-refinery/set-up"},{"title":"Configure Honeycomb Refinery","sidebarTitle":"Configure","href":"/manage-data-volume/sample/honeycomb-refinery/configure"},{"title":"Specify Sampling Methods in Honeycomb Refinery","sidebarTitle":"Specify Sampling Methods","href":"/manage-data-volume/sample/honeycomb-refinery/sampling-methods"},{"title":"Scale and Size Honeycomb Refinery","sidebarTitle":"Scale \u0026 Size","href":"/manage-data-volume/sample/honeycomb-refinery/scale-size"},{"title":"Diagnose Refinery Performance Through Trace Patterns","sidebarTitle":"Diagnose Performance Through Trace Patterns","href":"/manage-data-volume/sample/honeycomb-refinery/diagnose"},{"title":"Monitor Honeycomb Refinery","sidebarTitle":"Monitor","href":"/manage-data-volume/sample/honeycomb-refinery/monitor"}]}]},{"group":"Filter","public":true,"pages":[{"title":"Filter Processor for OpenTelemetry Collector","sidebarTitle":"Filter Processor (OTel Collector)","href":"/manage-data-volume/filter/filter-processor"}]},{"group":"Adjust Metrics Granularity","public":true,"pages":[{"title":"Manage Metrics Events","sidebarTitle":"Manage Metrics Events","href":"/manage-data-volume/adjust-granularity/metrics-events"},{"title":"Metrics-to-Event Mapping","sidebarTitle":"Metric-to-Event Mapping","href":"/manage-data-volume/adjust-granularity/metrics-event-mapping"}]}]},{"group":"Use Cases","public":true,"expanded":true,"pages":[{"group":"Correlate Web and Mobile Data with Embrace","pages":[{"title":"Connect Honeycomb and Embrace","sidebarTitle":"Overview","tag":"Partner","href":"/integrations/embrace/overview"},{"title":"Investigate Backend Latency","tag":"Partner","href":"/integrations/embrace/use-cases/investigate-backend-latency"},{"title":"Diagnose Mobile ANRs and Hangs","tag":"Partner","href":"/integrations/embrace/use-cases/diagnose-mobile-anrs"},{"title":"Investigate with Embrace and Honeycomb MCP","tag":"Partner","href":"/integrations/embrace/use-cases/investigate-with-mcp"}]},{"title":"Monitor Anthropic Usage \u0026 Cost","href":"/send-data/use-cases/anthropic-usage-monitoring"},{"title":"Send Claude Platform Traces to Honeycomb","sidebarTitle":"Claude Platform Traces","tag":"Beta","href":"/send-data/use-cases/claude-platform"},{"title":"Instrumenting AI Agents","sidebarTitle":"Instrument AI Agents","playground":"none","href":"/send-data/use-cases/agents"},{"group":"Monitor LLMs","pages":[{"title":"Monitor LLM-Powered Applications","sidebarTitle":"Overview","href":"/send-data/use-cases/llm"},{"title":"Text to JSON Quick Start","href":"/send-data/use-cases/llm/text-to-json-quickstart"}]}]},{"title":"UI Changelog","url":"https://changelog.honeycomb.io/","icon":"clock","href":"/ui-changelog"},{"title":"API Changelog","url":"https://api-changelog.honeycomb.io/","icon":"code","href":"/api-changelog"}]},{"tab":"Investigate","pages":[{"title":"Investigate","href":"/investigate"}]},{"tab":"Notify \u0026 Alert","pages":[{"title":"Notify \u0026 Alert","href":"/notify"}]},{"tab":"Configure","pages":[{"title":"Configure","href":"/configure"}]},{"tab":"Troubleshoot","pages":[{"title":"Troubleshoot","href":"/troubleshoot"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api/introduction"}]}]},"title":"Send Logs with Libhoney for Go - Honeycomb Docs","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":[],"chunks":[]}