Skip to content

Fix README install command, usage example, and batch defaults#4

Open
LiKang6688 wants to merge 1 commit into
v3.0from
fix/readme-accuracy
Open

Fix README install command, usage example, and batch defaults#4
LiKang6688 wants to merge 1 commit into
v3.0from
fix/readme-accuracy

Conversation

@LiKang6688

Copy link
Copy Markdown

Summary

  • Fix invalid go get https://... install command
  • Fix usage example: use client.Enqueue consistently and remove unused import
  • Correct default batch size from 20 to 250 (matches DefaultBatchSize in config.go)
  • Standardize env var name to DREAMDATA_API_KEY (aligned with developer docs)

Test plan

  • Verify README examples match config.go defaults
  • Confirm go get github.com/dreamdata-io/analytics-go works

Made with Cursor

Align env var naming with developer docs and correct the default BatchSize to 250.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings June 18, 2026 17:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates Readme.md to correct installation and usage instructions so they match the actual Go module import path, current client API usage, and library defaults.

Changes:

  • Fixes go get command to use a valid module path (no https:// scheme).
  • Updates usage example to consistently use client.Enqueue, removes unused import, and standardizes env var name to DREAMDATA_API_KEY.
  • Corrects documented default batch size from 20 to 250 to match DefaultBatchSize in config.go.

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

Comment thread Readme.md
If you don’t want to batch messages, you can turn batching off by setting the BatchSize option to 1, like so:
```go
c, err := analytics.NewWithConfig(os.Getenv("DREAMDATA_WRITE_KEY"), analytics.Config{BatchSize: 1})
client, err := analytics.NewWithConfig(os.Getenv("DREAMDATA_API_KEY"), analytics.Config{BatchSize: 1})
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