Skip to content

Commit

Permalink
update for changes from the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwatson committed Sep 11, 2020
1 parent 947edab commit 3dfeff1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,50 +255,40 @@ public final class SemanticAttributes {
public static final StringKey THREAD_NAME = stringKey("thread.name");

/** Type of the trigger on which the function is executed. */
public static final StringAttributeSetter FAAS_TRIGGER =
StringAttributeSetter.create("faas.trigger");
public static final StringKey FAAS_TRIGGER = stringKey("faas.trigger");
/** String containing the execution id of the function. */
public static final StringAttributeSetter FAAS_EXECUTION =
StringAttributeSetter.create("faas.execution");
public static final StringKey FAAS_EXECUTION = stringKey("faas.execution");
/** Indicates that the serverless function is executed for the first time (aka cold start). */
public static final BooleanAttributeSetter FAAS_COLDSTART =
BooleanAttributeSetter.create("faas.coldstart");
public static final BooleanKey FAAS_COLDSTART = booleanKey("faas.coldstart");
/** The name of the invoked function. */
public static final StringAttributeSetter FAAS_INVOKED_NAME =
StringAttributeSetter.create("faas.invoked_name");
public static final StringKey FAAS_INVOKED_NAME = stringKey("faas.invoked_name");
/** The cloud provider of the invoked function. */
public static final StringAttributeSetter FAAS_INVOKED_PROVIDER =
StringAttributeSetter.create("faas.invoked_provider");
public static final StringKey FAAS_INVOKED_PROVIDER = stringKey("faas.invoked_provider");
/** The cloud region of the invoked function. */
public static final StringAttributeSetter FAAS_INVOKED_REGION =
StringAttributeSetter.create("faas.invoked_region");
public static final StringKey FAAS_INVOKED_REGION = stringKey("faas.invoked_region");

/** For faas.trigger == datasource, the name of the source on which the operation was perfomed. */
public static final StringAttributeSetter FAAS_DOCUMENT_COLLECTION =
StringAttributeSetter.create("faas.document.collection");
public static final StringKey FAAS_DOCUMENT_COLLECTION = stringKey("faas.document.collection");
/**
* For faas.trigger == datasource, describes the type of the operation that was performed on the
* data.
*/
public static final StringAttributeSetter FAAS_DOCUMENT_OPERATION =
StringAttributeSetter.create("faas.document.operation");
public static final StringKey FAAS_DOCUMENT_OPERATION = stringKey("faas.document.operation");
/**
* For faas.trigger == datasource, a string containing the time when the data was accessed in the
* ISO 8601 format expressed in UTC.
*/
public static final StringAttributeSetter FAAS_DOCUMENT_TIME =
StringAttributeSetter.create("faas.document.time");
public static final StringKey FAAS_DOCUMENT_TIME = stringKey("faas.document.time");
/** For faas.trigger == datasource, the document name/table subjected to the operation. */
public static final StringAttributeSetter FAAS_DOCUMENT_NAME =
StringAttributeSetter.create("faas.document.name");
public static final StringKey FAAS_DOCUMENT_NAME = stringKey("faas.document.name");

/**
* For faas.trigger == time, a string containing the function invocation time in the ISO 8601
* format expressed in UTC.
*/
public static final StringAttributeSetter FAAS_TIME = StringAttributeSetter.create("faas.time");
public static final StringKey FAAS_TIME = stringKey("faas.time");
/** For faas.trigger == time, a string containing the schedule period as Cron Expression. */
public static final StringAttributeSetter FAAS_CRON = StringAttributeSetter.create("faas.cron");
public static final StringKey FAAS_CRON = stringKey("faas.cron");

private SemanticAttributes() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,13 @@ public final class ResourceAttributes {
public static final StringKey CLOUD_ZONE = stringKey("cloud.zone");

/** The name of the function being executed. */
public static final StringAttributeSetter FAAS_NAME = StringAttributeSetter.create("faas.name");
public static final StringKey FAAS_NAME = stringKey("faas.name");
/** The unique ID of the function being executed. */
public static final StringAttributeSetter FAAS_ID = StringAttributeSetter.create("faas.id");
public static final StringKey FAAS_ID = stringKey("faas.id");
/** The version string of the function being executed. */
public static final StringAttributeSetter FAAS_VERSION =
StringAttributeSetter.create("faas.version");
public static final StringKey FAAS_VERSION = stringKey("faas.version");
/** The execution environment ID as a string. */
public static final StringAttributeSetter FAAS_INSTANCE =
StringAttributeSetter.create("faas.instance");
public static final StringKey FAAS_INSTANCE = stringKey("faas.instance");

private ResourceAttributes() {}
}

0 comments on commit 3dfeff1

Please sign in to comment.