github gofr-dev/gofr v1.39.1

latest releases: v1.46.3, v1.46.2, v1.46.1...
5 months ago

v1.39.1

🛠 Improvements

  1. Disable Logs for Health & Alive Probes

    Logging for health check routes (/.well-known/health and /.well-known/alive) can now be disabled to reduce log clutter in environments with frequent probe calls (e.g., Kubernetes).

    Set the following environment variable:

    LOG_DISABLE_PROBES=true
  2. TraceID Now Included in Context-Based Logging

    Logs emitted using ctx.Logger() now automatically include the request traceID. This enhances traceability across services and allows easier debugging in distributed systems.

    Example log before:

    {"message": "User created", "level": "INFO"}

    After:

    {"message": "User created", "trace_id": "3ac9f5e7c12e...", "level": "INFO"}

    No additional configuration needed—this is now built-in.

  3. Enhanced ArangoDB Query Options Support

    You can now pass advanced query and subquery options when executing AQL queries via GoFr’s ArangoDB client.

    options := map[string]any{
        "count":     true,
        "batchSize": 100,
        "options": map[string]any{
            "fullCount": true,
            "profile":   2,
        },
    }

    Supported keys include (but are not limited to):

    • QueryOptions:

      • count, batchSize, ttl, cache, memoryLimit
    • QuerySubOptions (under options key):

      • fullCount, allowRetry, stream, optimizer, profile, maxRuntime, skipInaccessibleCollections, and more

    Example usage:

    err := ctx.ArangoDB.Query(ctx, "myDatabase", query, bindVars, &results, options)

    This update gives you full control over AQL query execution for performance tuning, streaming, profiling, and more.

Don't miss a new gofr release

NewReleases is sending notifications on new releases.