Skip to content

Commit

Permalink
Merge branch 'main' into update_user_events_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Jan 13, 2025
2 parents 075d946 + a4d3681 commit d4ee4ac
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
image: ["ubuntu:24.04", "debian:11", "alpine:3.20", "amazonlinux:2", "amazonlinux:2023"]
nginx: ["1.27.3", "1.27.1", "1.26.2", "1.24.0", "1.22.1"]
nginx: ["1.27.3", "1.27.2", "1.27.1", "1.26.2", "1.24.0", "1.22.1"]
steps:
- name: checkout otel nginx
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion exporters/geneva/src/exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

#include "opentelemetry/exporters/geneva/metrics/exporter.h"
#include "opentelemetry/exporters/geneva/metrics/macros.h"
#include "opentelemetry/exporters/geneva/metrics/unix_domain_socket_data_transport.h"
#ifdef _WIN32
#include "opentelemetry/exporters/geneva/metrics/etw_data_transport.h"
#else
#include "opentelemetry/exporters/geneva/metrics/unix_domain_socket_data_transport.h"
#endif
#include "opentelemetry/sdk/metrics/export/metric_producer.h"
#include "opentelemetry/sdk_config.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ class Exporter final : public opentelemetry::sdk::logs::LogRecordExporter
bool Shutdown(
std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept override;

bool ForceFlush(
std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept override {
// TODO: implement forceflush
return true;
}

bool isShutdown() const noexcept;

private:
Expand Down
1 change: 1 addition & 0 deletions exporters/user_events/src/recordable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void Recordable::SetBody(const opentelemetry::common::AttributeValue &message) n
// Set intial bookmark size to 1 for body below.
cs_part_b_bookmark_size_++;
event_builder_.AddStruct("PartB", 1, 0, &cs_part_b_bookmark_);
utils::PopulateAttribute("_typeName", "Log", event_builder_);
utils::PopulateAttribute("body", message, event_builder_);
}

Expand Down
3 changes: 1 addition & 2 deletions instrumentation/nginx/test/Dockerfile_amazonlinux
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ FROM $image AS build
ARG otel_cpp_version=1.17.0
ARG nginx_version=1.27.3

RUN yum check-update && \
yum install -y git gcc-c++ make tar curl-devel unzip zlib-devel pcre2-devel
RUN yum install -y git gcc-c++ make tar curl-devel unzip zlib-devel pcre2-devel

RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.31.1/cmake-3.31.1-linux-x86_64.tar.gz && tar xf cmake-3.31.1-linux-x86_64.tar.gz && mv cmake-3.31.1-linux-x86_64 cmake

Expand Down

0 comments on commit d4ee4ac

Please sign in to comment.