All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.turbospaces.gcp.pubsub.producer.PubsubSpanContextWriter Maven / Gradle / Ivy

There is a newer version: 2.0.33
Show newest version
package com.turbospaces.gcp.pubsub.producer;

import java.util.Iterator;
import java.util.Map;

import com.google.pubsub.v1.PubsubMessage;

import io.opentracing.propagation.TextMap;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class PubsubSpanContextWriter implements TextMap {
    private final PubsubMessage.Builder record;

    @Override
    public void put(String k, String v) {
        record.putAttributes(k, v);
    }
    @Override
    public Iterator> iterator() {
        throw new UnsupportedOperationException();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy