Skip to content

How to Not Add Default Options/Params to Write Requests #902

@weihao

Description

@weihao

Sample code

        Point build = Point.measurement("test")
                .addField("metrics", 0.23)
                .tag("tag", "tag_a")
                .build();
        influxDB.write(build);

        influxDB.flush();

Real

Request{method=POST, url=https://influx-prod-06-prod-us-central-0.grafana.net/api/v1/push/influx/write?rp=autogen&precision=n&consistency=one}

Expected

Request{method=POST, url=https://influx-prod-06-prod-us-central-0.grafana.net/api/v1/push/influx/write}

I am using default options and I noticed the default params will automatically append to outgoing request when writing line protocol. How can I disable it? I can't seem to set a no time unit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions