Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

or " "

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

logger.info("hogehoge")

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

OpenCensus OpenTelemetry

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

compile 'io.opencensus:opencensus-api:0.16.0' compile 'io.opencensus:opencensus-exporter-trace-Stackdriver:0.16.0' runtime 'io.opencensus:opencensus-impl:0.16.0'

Slide 51

Slide 51 text

class Foo { private static final Tracer tracer = Tracing.getTracer(); public static void main(String ...args) { try { setupOpenCensusAndStackdriverExporter(); } catch (IOException e) { return; } yourMethod() } void yourMethod() { try (Scope ss = tracer.spanBuilder("yourMethod").startScopedSpan()) { // Span span = tracer.getCurrentSpan(); span.addAnnotation("name_of_tag", "foobarbaz"); } } }

Slide 52

Slide 52 text

public static void main(String ...args) { try { // setupOpenCensusAndStackdriverExporter(); } catch (IOException e) { return; } }

Slide 53

Slide 53 text

void yourMethod() { // span // try-with-resources close try (Scope ss = tracer.spanBuilder("do_something").startScopedSpan()) { // // // // Span Span span = tracer.getCurrentSpan(); // span.addAnnotation("name_of_tag", "foobarbaz"); } }

Slide 54

Slide 54 text

@Configuration

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

@Configuration

Slide 57

Slide 57 text

compile 'com.m3.tracing:spring-boot:1.0.1' M3_TRACER_FQCN com.m3.tracing.tracer.opencensus.M3OpenCensusTracer

Slide 58

Slide 58 text

public static void main(String ...args) { try { // initTracingSdk(); } catch (IOException e) { return; } }

Slide 59

Slide 59 text

@Service class Foo { private final M3Tracer tracer; // Constructor Injection (DI) public Foo(M3Tracer tracer) { this.tracer = tracer; } void yourMethod() { try (TraceSpan span = tracer.startSpan("do_something")) { // span.set("name_of_tag", "foobarbaz"); } } }

Slide 60

Slide 60 text

void yourMethod() { // span // try-with-resources close try (TraceSpan span = tracer.startSpan("do_something")) { // // // // span.set("name_of_tag", "foobarbaz"); } }

Slide 61

Slide 61 text

void yourMethod() { // span // try-with-resources close try (TraceSpan span = tracer.startSpan("do_something")) { // // // // span.set("name_of_tag", "foobarbaz"); } }

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content