diff --git a/src/pg_tracing.c b/src/pg_tracing.c index 07b3e50..75242fa 100644 --- a/src/pg_tracing.c +++ b/src/pg_tracing.c @@ -4,7 +4,7 @@ * Generate spans for distributed tracing from SQL query * * Spans will only be generated for sampled queries. A query is sampled if: - * - It has a tracecontext propagated throught SQLCommenter and it passes the + * - It has a tracecontext propagated through SQLCommenter and it passes the * caller_sample_rate. * - It has no SQLCommenter but the query randomly passes the global sample_rate * diff --git a/src/pg_tracing_query_process.c b/src/pg_tracing_query_process.c index dd81f71..f7b54aa 100644 --- a/src/pg_tracing_query_process.c +++ b/src/pg_tracing_query_process.c @@ -4,7 +4,7 @@ * pg_tracing query processing functions. * * IDENTIFICATION - * contrib/pg_tracing/pg_tracing_explain.c + * src/pg_tracing_explain.c * *------------------------------------------------------------------------- */ @@ -12,9 +12,10 @@ #include #include + +#include "nodes/extensible.h" #include "parser/scanner.h" #include "pg_tracing.h" -#include "nodes/extensible.h" /* * Check if we have a comment that could store SQLComment information at the @@ -37,7 +38,7 @@ has_possible_sql_comment(const char *query) if (query_len < 55 + 13 + 4) return -1; - /* Check if we have comment at the begining */ + /* Check if we have comment at the beginning */ if (query[0] == '/' && query[1] == '*') return 0; diff --git a/src/pg_tracing_span.c b/src/pg_tracing_span.c index 946f280..003413f 100644 --- a/src/pg_tracing_span.c +++ b/src/pg_tracing_span.c @@ -4,15 +4,15 @@ * pg_tracing span functions. * * IDENTIFICATION - * contrib/pg_tracing/pg_tracing_span.c + * src/pg_tracing_span.c * *------------------------------------------------------------------------- */ #include "postgres.h" +#include "common/pg_prng.h" #include "nodes/extensible.h" #include "pg_tracing.h" -#include "common/pg_prng.h" /* * Convert a node CmdType to the matching SpanType