Skip to content

add geo.source#13

Open
jay-418 wants to merge 1 commit intomainfrom
jay/geo-source
Open

add geo.source#13
jay-418 wants to merge 1 commit intomainfrom
jay/geo-source

Conversation

@jay-418
Copy link
Copy Markdown
Contributor

@jay-418 jay-418 commented Apr 6, 2026

Because geolocation is a best-effort practice, it's good to identify the source of geo information.

@jay-418 jay-418 marked this pull request as ready for review April 6, 2026 02:11
Copilot AI review requested due to automatic review settings April 6, 2026 02:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Lantern-specific semantic convention key to record the provenance of geolocation data, complementing the existing standard OTel geo.* attributes re-exported in standard.go.

Changes:

  • Introduces GeoSourceKey ("geo.source") as a new attribute.Key constant for tracking geolocation source metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +146 to +149
const (
// GeoSourceKey defines how a geolocation was determined.
// - geolocation database (e.g. "maxmind")
// - client attestation (e.g. "client")
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new attribute key is added as its own const block without a section header comment, whereas other groups in custom.go are introduced with a category header (e.g., // Client Info, // Proxy resource attributes). Consider adding a // Geo (or similar) header above this block for consistency and easier discoverability.

Also, to render better in GoDoc, consider using a blank line before the examples list and formatting the bullets as // - ... (single space after //) rather than // - ....

Suggested change
const (
// GeoSourceKey defines how a geolocation was determined.
// - geolocation database (e.g. "maxmind")
// - client attestation (e.g. "client")
// Geo
const (
// GeoSourceKey defines how a geolocation was determined.
//
// - geolocation database (e.g. "maxmind")
// - client attestation (e.g. "client")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants